I'm using Ajax.NET on feature.aspx and all works fine if i browse this
page directly or embedd it into somepage.asp with an IFrame. However,
if i embedd http://supplierdomain/feature.aspx into
http://customerdomain/somepage.asp using AspHttp the Ajax calls break
because all urls are relative. I want
src="/SampleApp/ajaxpro/SampleMethod..." to become
src="http://supplierdomain/SampleApp/ajaxpro/SampleMethod...";

As a hack/workaround, I have implemented a filter on the httpResponse
with this:
                srcStart = content.ToLower().IndexOf("src=\"/");
                while (srcStart > 0)
                {
                    content = content.Insert(srcStart + 5 /*actual url
starts after 'src="' */, string.Format("http://{0}";,
HttpContext.Current.Request.Url.Host));
                    srcStart = content.ToLower().IndexOf("src=\"/",
srcStart + 1);
                }



Thanks
Michel


Michael Schwarz wrote:
> Hi,
>
> if I understood your question correct, you want to use an Ajax.NET
> method on somepage.html or somepage.asp. Are you adding the JavaScript
> includes manual? The main problem is that the Ajax.NET requests can
> only made to the same domain (url) as the page, so if you are using
> http://customerdomain/ you can only invoke methods that are below this
> domain.
>
> Please give me more details if I'm wrong with your question.
> 
> Regards,
> Michael


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to