Menu

#163 bookmarklet javascript error

open
nobody
bug (10)
v0.10.0
1
2014-09-04
2013-12-17
No

When trying to bookmark the URL http://www.ocr4linux.com/en:pricing with the bookmarklet in opera, I get:

[17.12.2013 20:23:43] JavaScript - http://www.ocr4linux.com/en:pricing
Javascript URL thread: "javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeU..."
Uncaught exception: TypeError: Cannot convert 'textArea' to object
Error thrown at line 24, column 80983 in getSelection(textArea) in http://www.ocr4linux.com/lib/exe/js.php?tseed=1386861101:
    sel.start=textArea.value.length;
called from line 1, column 79 in javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent(window.getSelection());open('http://bookmarks.home.cweiske.de/bookmarks.php/cweiske?action=add&popup=1&address='+a+'&title='+t+'&description='+d,'bookmarks','modal=1,status=0,scrollbars=1,toolbar=0,resizable=1,width=790,height=465,left='+(screen.width-790)/2+',top='+(screen.height-425)/2);void 0;:
    d=encodeURIComponent(window.getSelection());

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.