Hey there,

nvleer a écrit :
> I have a page which uses Ajax.Request().  I am serving up the page from
> an embedded device using thttpd.  The page works fine in IE, but the
> calls to Ajax.Request fail in Firefox because of security.  I've read
> about signing scripts and pages, but honestly haven't been able to make
> heads nor tails of it.  The thing which confuses me is why other
> tutorials on the web which use xmlhttprequest work fine in Firefox, but
> do not appear to be signed.

Any XHR call in FF and other Moz browsers will be bound by the security
policy, that mandates the call targets the same [sub]domain as the one
the calling page originated from.

Most AJAX books (or solid tutorials) go for a "proxy" feature on their
server side:  a small script on the server side that basically receives
the target URL you're trying to hit, the HTTP method (get/post) and your
intended parameters, does the call, and sends the result (status code,
headers, body) all back to you.

It's pretty straightforward in most situations, as it doesn't have to be
*that* generic: it just has to fit your needs.

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---

Reply via email to