I am fascinated with AJAX and Bookmarklets. So I figured I would use the two together.
The main goal is to demonstrate bookmarklets and AJAX.
Bookmarklets are simply javascript placed into a url to do something.
Bookmarklets do someting only in the webpage in which the javascript is added into the url.
The javascript in the url is prefaced with javascript:.
This exercise uses javascript and bookmarklets technique to store bookmarks in a MySQL table.
Just for fun I also coded the PHP script and created a MySQL table.
After a bookmark is stored click DISPLAY and the new bookmark will appear.
I was thinking of adding catagories, and a log in for security in the future.
The bookmarklet works on Chrome and Opera when on any site that is not https hosted(shows alert error when on https site and trying to us this bookmarlet.).
Some drawbacks. This bookmarklet does not work in firefox and Internet explorer(unless your on this domain) as I was not able to get around CORS.
Cross-origin resource sharing (Cors) is when one site makes a request from another site. Most browsers restrict cors when requests
are made from scripts such as AJAX.