How to create a CrossBrowser Bookmarklet?
January 24, 2007 10:08 PM
Subscribe
I have written a bookmarklet that works in Firefox but not in IE6. How can I change it to be supported cross browser or even as a separate bookmarklet to get the same results.
javascript:Qr=document.getSelection();if(Qr)location.href='http://jobsearchlog.com/ba.cfm?ad='+escape(Qr)+'&description='+encodeURIComponent(document.title)+'&tags=%s'+'&ad4user=mickbw&url2job='+window.location.href;
Much of the JS was taken from the send to Delicious bookmarklet but I've never seen it work in IE anyway.
The purpose of the 'let is to send whatever text in a page has been selected, the URL and page title and submit the values into a database for use in my web application. In Firefox they would also be able to specify tags to be included in the insert.
Any suggestions on making this work in IE?
posted by mickbw to computers & internet (5 comments total)
posted by Rhomboid at 11:07 PM on January 24, 2007