[Proto-Scripty] Re: javascript widget (using prototypejs)
Hi, On Wed, Sep 17, 2008 at 12:38 AM, Rama <[EMAIL PROTECTED]> wrote: > > iam not violating the same origin policy that which the browers > follow. > > > Scenario1 )Script is loading from mydomain.com,script is > residing on the same mydomain.com > > in this case everything is working fine. > > Scnario2) Script is loading from mydomain.com, script is residing on > other domain say xyza.com > >Even though script is residing on xyza.com > the script downloaded form mydomain.com is making calls > Ajax calls (XHR request/response) to only mydomain.com > >in the above case it is still not violating th same > ORgin policy. Wrong... the domain of the webpage is what counts, not the script domain... But u can always use the appendChild tecnique... > > >in the second scenario also it should work > correctly.but it is not working ... > > i could not able to figure it out the mistake that iam > doing. > > > > > > > > > > > > > On Sep 17, 12:23 am, Diodeus <[EMAIL PROTECTED]> wrote: > > Assuming you are attempting to make an Ajax call to a server that is > > not in your web page's domain, it is a deliberate security restriction > > in the browser designed to prevent cross-site scripting (XSS) attacks. > > > > On Sep 16, 1:34 pm, Rama <[EMAIL PROTECTED]> wrote: > > > > > hi, > > > > > i have developed a widget/badge in javasript. (using prototypejs) > > > > > It is working well on my own site. but when placed on other > > > domains AJAX(XHR) requests are not working porperly. > > > > > Can anyone please guide us on why the ajax(XHR) calls/requests are > > > not working when placed on other doman. > > > > > Regards > > > rama > > > -- Thanks, Diogo Neves Web Developer @ SAPO.pt by PrimeIT.pt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: javascript widget (using prototypejs)
iam not violating the same origin policy that which the browers follow. Scenario1 )Script is loading from mydomain.com,script is residing on the same mydomain.com in this case everything is working fine. Scnario2) Script is loading from mydomain.com, script is residing on other domain say xyza.com Even though script is residing on xyza.com the script downloaded form mydomain.com is making calls Ajax calls (XHR request/response) to only mydomain.com in the above case it is still not violating th same ORgin policy. in the second scenario also it should work correctly.but it is not working ... i could not able to figure it out the mistake that iam doing. On Sep 17, 12:23 am, Diodeus <[EMAIL PROTECTED]> wrote: > Assuming you are attempting to make an Ajax call to a server that is > not in your web page's domain, it is a deliberate security restriction > in the browser designed to prevent cross-site scripting (XSS) attacks. > > On Sep 16, 1:34 pm, Rama <[EMAIL PROTECTED]> wrote: > > > hi, > > > i have developed a widget/badge in javasript. (using prototypejs) > > > It is working well on my own site. but when placed on other > > domains AJAX(XHR) requests are not working porperly. > > > Can anyone please guide us on why the ajax(XHR) calls/requests are > > not working when placed on other doman. > > > Regards > > rama --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: javascript widget (using prototypejs)
The script that is making the ajax request has to be on the same domain where the ajax response is coming from. So just keep your script on your server and use a wrapper function from the other domain that calls your script residing on your domain. On Tue, Sep 16, 2008 at 12:23 PM, Diodeus <[EMAIL PROTECTED]> wrote: > > Assuming you are attempting to make an Ajax call to a server that is > not in your web page's domain, it is a deliberate security restriction > in the browser designed to prevent cross-site scripting (XSS) attacks. > > On Sep 16, 1:34 pm, Rama <[EMAIL PROTECTED]> wrote: > > hi, > > > > i have developed a widget/badge in javasript. (using prototypejs) > > > > It is working well on my own site. but when placed on other > > domains AJAX(XHR) requests are not working porperly. > > > > Can anyone please guide us on why the ajax(XHR) calls/requests are > > not working when placed on other doman. > > > > Regards > > rama > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---
[Proto-Scripty] Re: javascript widget (using prototypejs)
Assuming you are attempting to make an Ajax call to a server that is not in your web page's domain, it is a deliberate security restriction in the browser designed to prevent cross-site scripting (XSS) attacks. On Sep 16, 1:34 pm, Rama <[EMAIL PROTECTED]> wrote: > hi, > > i have developed a widget/badge in javasript. (using prototypejs) > > It is working well on my own site. but when placed on other > domains AJAX(XHR) requests are not working porperly. > > Can anyone please guide us on why the ajax(XHR) calls/requests are > not working when placed on other doman. > > Regards > rama --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~--~~~~--~~--~--~---