I am trying to create a bookmarklet that, after clicking, asks the user for some information from the user (URL and a couple of other fields in this case), and then sends this data to the php page on my server, and then displays the result.
I would like to make an Ajax call for this, so that I donβt actually get redirected to a new page, I just get the data, but I assume that I came across an Ajax restriction of "Same origin" .... is there any known way in basically do the same?
Also, what would be the best way to pass parameters? I already have a mechanism for getting parameters as a message from a form ... is there a way I could just reuse it?
javascript ajax bookmarklet
Adam haile
source share