As a feature of the application I am creating – I wish to enable the importing of bookmarks from different browsers. I have two questions, the first is a bit silly:
-
Is it possible to import bookmarks from the browser using JavaScript – I am guessing no?
-
Does anyone know of any pre-written classes that I can make use of to allow me to import bookmarks from different browsers when a bookmark.html file is supplied by the user?
Pointing me in the right direction will also help or letting me know of a better implementation method.
I am using PHP and Javascript
(JQuery). More specifically
Codeigniter.
Thanks all
Update
As I thought question 1 is not possible.
What about 2? Anyone know of any php classes to parse bookmarks from different browsers?
You need access to the file system to import the bookmarks, so no. Well you could if you used the Microsoft FileSystemObject, but that would only work for IE and the security settings of the browser would have to be modified. In FireFox/Mozilla you would be able to access the file system if you wrote a chrome application, i.e. add-on, but then all your users need to install your addon as well and that does not sound ideal for what you want to do.
Depending on your app maybe you could tap into a service like Del.icio.us or some other online bookmarking service to do what you want.
My two cents while waiting for the coffee to brew.