You can add another <script> tag to your document, and point it to a remote source other then your own domain, but that is not part of the AJAX functionality provided in most libraries, including Prototype. You would have to add a new <script> tag programmatically. It's a different beast.
On Oct 2, 9:55 am, Dave <[EMAIL PROTECTED]> wrote: > Thanks guys, I caught this: > > "While it is not possible to directly query websites for data due to > the same origin policy, the <script> tag does not honor the same- > origin policy and can be used in conjunction with JSON." > > I'm assuming prototype is enforcing the same-origin policy then? > > Thanks, > Dave > > On Oct 1, 5:17 pm, "Brian Williams" <[EMAIL PROTECTED]> wrote: > > > ditto, i was just going to say if the sandbox is accessed through a > > different port (ie 8080) it will probably trigger a different origin. > > > On Wed, Oct 1, 2008 at 5:15 PM, T.J. Crowder <[EMAIL PROTECTED]> wrote: > > > > > What am I missing? Is Ajax.Updater limited to the same host? > > > > Ajax.Updater and everything else using XHR: > > >http://en.wikipedia.org/wiki/Same_origin_policy > > > > HTH, > > > -- > > > T.J. Crowder > > > tj / crowder software / com > > > > On Oct 1, 9:23 pm, Dave <[EMAIL PROTECTED]> wrote: > > > > I have a simple html document: > > > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > > > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > > > > <head> > > > > <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/ > > > > > <title>Ajax.Updater</title> > > > > <script type="text/javascript" src="[absolute path to prototype.js > > > > 1.6]"></script> > > > > </head> > > > > <body> > > > > <div id="sandbox"><script type="text/javascript"> > > > > new Ajax.Updater('sandbox', '[absolute path to my ruby cgi > > > > script]'); > > > > </script></div> > > > > </body> > > > > </html> > > > > > When I have this html file on the server that is hosting the ruby cgi > > > > script it works exactly as it's supposed to (content is dumped to the > > > > sandbox). However, when I have the html file to another server the > > > > sandbox remains empty. > > > > > What am I missing? Is Ajax.Updater limited to the same host? I doesn't > > > > seem to be a firewall issue as I can access the script directly no > > > > problem. An SELinux thing maybe? I'm allowing apache to run scripts > > > > though in SELinux, is there something else I need to enable? > > > > > Any ideas as to what I need to do? > > > > > Thanks, > > > > Dave --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---