How to access to file in another domain by ajax (I don't wa开发者_如何学JAVAnt use any php files)
James Padolsey has a nice plug-in that extends the jQuery ajax function to use YQL. You can find it here: http://james.padolsey.com/javascript/cross-domain-requests-with-jquery/
Thanks to the Same Origin Policy you can not access a file in another domain unless you are dealing with modern age browser that supports CORS or you are just requesting a webservice with JSONP
You could remove your browser security setting and allow the cross domain calls. Just hand the keys and monsy over to the hackers now. :)
ive done a trick with get values like putting them into 1 string like ape=22;bird=23;tiger=44
than converted that string to base64 (to eliminate character problems) YXBlPTIyO2JpcmQ9MjM7dGlnZXI9NDQ=
than put that string into a domain like http://example.com/YXBlPTIyO2JpcmQ9MjM7dGlnZXI9NDQ=/
on that domain you can convert it back to your original values
精彩评论