Ajax.Updater, unfortunately, fails to propagate-throw an error that it
chokes on.
That error is "Permission denied to call method
XMLHttpRequest.open" (in Firefox).
Take a look at http://en.wikipedia.org/wiki/Same_origin_policy for
more info.
- kangax
On Apr 28, 6:14 pm, Scott Phillips
<drbigfr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I am trying to display a remote url on a web page, and I can''t
seem to
> get it to work. Is there anyway to show remote content?
>
> This is the example I was working on:
>
> <h2>Our fantastic products</h2>
> <div id="products">(fetching product list ...)</div>
>
> <script type="text/javascript">
> new Ajax.Updater(''products'',
''http://www.espn.com'', { method:
> ''get'' });
> </script>
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---