I’m trying to create an jquery “inside” bookmarklet to my website like facebook share.
I need to get all images on a link. I mean if I give http://www.domain.com in my form, ajax request is needed to get all image links in that webpage and images should be shown in the form to select by user.
I’m sure there is a jquery plugin in order to do this, but I couldn’t find any. I hope anyone can help me with this.
You can do this for the actual site where the script will reside. The following code will get you all images.
No, you can’t do this for a remote site. It’s restricted by the same origin policy. You would be able to do this if you fetched the remote page with a server side handler on the same domain jQuery code will reside.