473,803 Members | 4,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using AJAX in a masked forwarded Domain

I have a domain www.lomas21.es.
That domain is masked forwarded, by the server, to the real stuff at
www.solicon.com.es/lomas21/

AJAX is only working:
- When you go to www.solicon.com.es/lomas21/ and clicks "Cinturones ".

AJAX does not work (it rewrites the whole page):
- When you go to www.lomas21.es and clicks "Cinturones ".
It gives only there also a script warning 'Sys' not found.

Yake into account that I am talking about the same files where I can go to
with to URL names.

What I want is that the URL www.lomas21.es is working.

--
Regards,
André Teunissen
www.solicon.es
Oct 22 '07 #1
2 1836
I AM VERY HAPPY TO INFORM YOU THAT WE HAVE SOLVED THE MISTERY.
THE SOLUCION FOR MASKED FORWARDED DOMAINS USING EXTERNAL SCRIPTS
----------
IN MY CASE THE SOLUCION FOR ASP.NET 2.0 / AJAX
1 - download the FOR FREE UrlRewritingNet .UrlRewrite 2.0 Binary from
http://www.urlrewriting.net/en/Download.aspx
2 - read with a smile THE SPLENDED help from
http://meadowsdesign.com/blog/?cat=9
3 - add to your bin directory: UrlRewritingNet .UrlRewriter.dl l
4 - update Web.Config as follows
a) remove section <configSections >
b) add the new section <configSections >
<configSections >
<section name="urlrewrit ingnet"
restartOnExtern alChanges="true "
requirePermissi on ="false"
type="UrlRewrit ingNet.Configur ation.UrlRewrit eSection,
UrlRewritingNet .UrlRewriter" />
</configSections>
5 - add new section below the </configSections>
<urlrewritingne t>
<rewrites>
<add name="WebResour ceFix" virtualUrl="^~/WebResource.axd (.*)"
rewriteUrlParam eter="IncludeQu eryStringForRew rite"
destinationUrl= "~/WebResource.axd $1″”" ignoreCase="tru e"/>
<add name="ScriptRes ource"
virtualUrl="^~/(.*)/ScriptResource. axd(.*)"
rewriteUrlParam eter="IncludeQu eryStringForRew rite"
destinationUrl= "~/ScriptResource. axd$2″”" ignoreCase="tru e"/>
<add name="ReplaceRo ot" virtualUrl="^~/(.*)/(.*)"
rewriteUrlParam eter="IncludeQu eryStringForRew rite" destinationUrl= "~/$2″”"
ignoreCase="tru e"/>
</rewrites>
</urlrewritingnet >

6 - remove the complete section <system.web.ext ensions>
7 - add in the <httpModules>
<add name="UrlRewrit eModule"
type="UrlRewrit ingNet.Web.UrlR ewriteModule, UrlRewritingNet .UrlRewriter" />

¡ THATS ALL ! HAVE A VERY NICE DAY
--
Regards,
André Teunissen
www.solicon.es
"André" wrote:
I have a domain www.lomas21.es.
That domain is masked forwarded, by the server, to the real stuff at
www.solicon.com.es/lomas21/

AJAX is only working:
- When you go to www.solicon.com.es/lomas21/ and clicks "Cinturones ".

AJAX does not work (it rewrites the whole page):
- When you go to www.lomas21.es and clicks "Cinturones ".
It gives only there also a script warning 'Sys' not found.

Yake into account that I am talking about the same files where I can go to
with to URL names.

What I want is that the URL www.lomas21.es is working.

--
Regards,
André Teunissen
www.solicon.es
Nov 5 '07 #2
I AM VERY HAPPY TO INFORM YOU THAT WE HAVE SOLVED THE MISTERY.
THE SOLUCION FOR MASKED FORWARDED DOMAINS USING EXTERNAL SCRIPTS
----------
IN MY CASE THE SOLUCION FOR ASP.NET 2.0 / AJAX
1 - download the FOR FREE UrlRewritingNet .UrlRewrite 2.0 Binary from
http://www.urlrewriting.net/en/Download.aspx
2 - read with a smile THE SPLENDED help from
http://meadowsdesign.com/blog/?cat=9
3 - add to your bin directory: UrlRewritingNet .UrlRewriter.dl l
4 - update Web.Config as follows
a) remove section <configSections >
b) add the new section <configSections >
<configSections >
<section name="urlrewrit ingnet"
restartOnExtern alChanges="true "
requirePermissi on ="false"
type="UrlRewrit ingNet.Configur ation.UrlRewrit eSection,
UrlRewritingNet .UrlRewriter" />
</configSections>
5 - add new section below the </configSections>
<urlrewritingne t>
<rewrites>
<add name="WebResour ceFix" virtualUrl="^~/WebResource.axd (.*)"
rewriteUrlParam eter="IncludeQu eryStringForRew rite"
destinationUrl= "~/WebResource.axd $1″”" ignoreCase="tru e"/>
<add name="ScriptRes ource"
virtualUrl="^~/(.*)/ScriptResource. axd(.*)"
rewriteUrlParam eter="IncludeQu eryStringForRew rite"
destinationUrl= "~/ScriptResource. axd$2″”" ignoreCase="tru e"/>
<add name="ReplaceRo ot" virtualUrl="^~/(.*)/(.*)"
rewriteUrlParam eter="IncludeQu eryStringForRew rite" destinationUrl= "~/$2″”"
ignoreCase="tru e"/>
</rewrites>
</urlrewritingnet >

6 - remove the complete section <system.web.ext ensions>
7 - add in the <httpModules>
<add name="UrlRewrit eModule"
type="UrlRewrit ingNet.Web.UrlR ewriteModule, UrlRewritingNet .UrlRewriter" />

¡ THATS ALL ! HAVE A VERY NICE DAY
--
Regards,
André Teunissen
www.solicon.es
"André" wrote:
I have a domain www.lomas21.es.
That domain is masked forwarded, by the server, to the real stuff at
www.solicon.com.es/lomas21/

AJAX is only working:
- When you go to www.solicon.com.es/lomas21/ and clicks "Cinturones ".

AJAX does not work (it rewrites the whole page):
- When you go to www.lomas21.es and clicks "Cinturones ".
It gives only there also a script warning 'Sys' not found.

Yake into account that I am talking about the same files where I can go to
with to URL names.

What I want is that the URL www.lomas21.es is working.

--
Regards,
André Teunissen
www.solicon.es
Nov 5 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1391
by: Andy | last post by:
Hi All, I have a domain name assume "www.domainnew.com" which I am forwarding to "www.domainold.com/new" with mask. It works fine. My problem is I have a page call login.asp in the directory new.(I don't want to give the link from www.newdomain.com) I want the admin to go directly to www.domainnew.com/new/login.asp.(which I cannot)and not through www.domainold.com/new/login.asp (which I can). Any help will be great.
1
1431
by: Dennis | last post by:
I have a domain name I just purchased and forwarded it to my ISP (free) web server. The forwarding works as expected and gets me to my home page. The links written in HTML (anchors) work as expected, using a relative name (i.e., "main.html" without the domain name preceeding it). One of the links is dynamic, leading to a subpage based on date, and is written in javascript. The script works if the page is on my local disk and if I...
3
3218
JohanK
by: JohanK | last post by:
Hi there, I need some help with exchange. One of the users that i have to add has multiple email addresses. So when adding the Active Directory User an exchange mail box is created for that specific user name. Now the question is how do I forward the emails from the other addresses to that one without creating more AD users because I don't have enough CALs. So in short I have User1 with email address User1@domain.com, but User1 also...
6
5484
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. http://www.ajax-cross-domain.com/ Any comments or suggestions are welcome. --
5
3682
by: plsHelpMe | last post by:
How to create dynamic javascript arrays using dojo toolkits Hello frens, I am in a big trouble. My objective is: I am having some categories shown by differnent radio buttons, on the click of a particular radio button i making an ajax call using dojo and retirieving the data corresponding to that category. Now i am suppose to create array of that data using the javascript dynamically. Can anyone please help me for the same. For your...
9
2084
by: Trapulo | last post by:
Hello, with ASP.NET 2.0 Ajax every unexpected error is managed client-side with a popup that reports the error to the user. In ASP.NET 3.5 this behavor has been changed: how can I have a similar behavor? I'd like that every exception raised from ASP.NET runtime during an asyncpostback is managed in client side with a popup that reports the error message. thanks
1
1950
by: empiresolutions | last post by:
Hi all, I want to set up one hosting account and access it via multiple domain names. Each different domain name will server the user slightly different content without the user knowing about the other domains. How do i do this? Example: User comes to my hosting account via www.siteA.com. The whole time the user is on the site the base URL never changes from www.siteA.com. The user needs to see www.siteA.com/page1.php as so on. (Actually...
8
3604
by: pankaj17 | last post by:
hello, Is it possible to communicate with another domain javascript function using ajax. Suppose i have a iframe and domain is different and in the iframe i have some links. If user clicks on that link i want to call javascript function written in main page (not in iframe). is this possible using ajax to call the java script function of another domain. if possible please tell me the example. if not please tell me the another way. please...
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10309
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10289
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10068
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7600
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5496
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4274
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3795
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.