Ajax call from Bookmarklet

Posted by Adam Haile on Stack Overflow See other posts from Stack Overflow or by Adam Haile
Published on 2009-03-20T01:31:08Z Indexed on 2010/04/28 18:47 UTC
Read the original article Hit count: 392

Filed under:
|
|

I am trying to create a bookmarklet that, upon clicking, would request some information from the user (a url and a couple other fields in this case) and then send that data to a php page on my server and then display the result.

I would like to do an Ajax call for this so that I don't actually redirect to the new page, just get the data but I assume I would run into the "Same Origin Policy" limitation of Ajax.... is there any known way of basically doing the same thing?

Also, what would be the best way to pass the parameters? I already have a mechanism in place to recieve the parameters as a post message from a form...is there any way I could just reuse this?

© Stack Overflow or respective owner

Related posts about bookmarklet

Related posts about AJAX