• I added the registry entry to my machine, and i see the “Post to WP: …” item in the right click menu, but if i click it, i get a script error. It says:
    Line:1
    Char:1
    Error: ‘external.menuArguments.document’ is null or not an object
    Code:0
    URL: javascript:doc=external.menuArguments.document;Q=doc.selection.createRange().text;void(btw=window.open(‘http://sharkytm.com/wp-admin/bookmarklet.php?
    any fixes?
    TIA

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sharkytm

    (@sharkytm)

    REGEDIT4
    [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Post To &WP : SharkyTM.com- Welcome!]
    @=”javascript:doc=external.menuArguments.document;Q=doc.selection.createRange().text;void(btw=window.open(‘http://sharkytm.com/wp-admin/bookmarklet.php?text=’+escape(Q)+’&trackback=1&pingback=1&popupurl=’+escape(doc.location.href)+’&popuptitle=’+escape(doc.title),’bookmarklet’,’scrollbars=no,width=480,height=590,left=100,top=150,status=yes’));btw.focus();”
    “contexts”=hex:31”
    thats mine… i know, IE sucks, but i have a university program thats only compatible with IE :).

    For me it didn’t work either, but I found a solution that works. First I had to put the javascript code in a file, putting it in the registry didn’t work. Second I had to change the code because doc.location.href gave me an error. So my registry entry is

    @=C:\Dokumente und Einstellungen\wfleck\WordPress\PostToWP.htm

    The content of PostToWP.htm is

    <SCRIPT LANGUAGE="JavaScript" defer>
    args=external.menuArguments;
    void(btw=window.open('http://XXX/wp-admin/bookmarklet.php?text='+escape(args.document.selection.createRange().text)+'&trackback=1&pingback=1&popupurl='+escape(args.location.href)+'&popuptitle='+escape(args.document.title),'bookmarklet','scrollbars=no,width=480,height=590,left=100,top=150,status=yes'));
    btw.focus();
    </SCRIPT>

    Insert your WordPress URL for XXX.
    Werner

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Getting script error when trying to use the bookma’ is closed to new replies.