Javascript bookmark dialogs stopped working

I have some bookmarks on my Bookmarks Toolbar whose address is a Javascript snippet:<br />
<br />
<pre><nowiki>javascript:Qr=document.getSelection();if(!Qr){void(Qr=prompt('Enter subject to lookup in Wikipedia:',''))}if(Qr)location.href='http://en.wikipedia.org/wiki/Special:Search/'+escape(Qr)+'%20'</nowiki></pre>
This will open a dialog box asking "Enter subject to lookup in Wikipedia", and takes that word or phrase and passes it on to Wikipedia's search page. With some editing, this code can also work for other sites, like dictionary.com.
So, when I upgraded to Firefox 8, these JS bookmarks turned into dotted squares for icons, and they no longer open a dialog box. Instead, only the site itself displays.
I've searched for a solution, but all I found were references to "keyword bookmarks". But AFAIK this is a different concept, because they're meant to be typed in the address bar, e.g. "w searchterm", and I don't know how it could be made into an item on the bookmark toolbar.
Any ideas for a workaround?

In Firefox 8 getSelection() returns an object and no longer a string.<br />
So you need to force it to a string by either adding +"" or use the toString() method.
Qr=document.getSelection()+"";
Qr=document.getSelection().toString();
* https://developer.mozilla.org/en/DOM/Selection

Similar Messages

  • Bookmark links stop working after security applied - v7.1.0

    System:
    Windows XP SP2
    Office 2007 SP1
    Acrobat Pro 7.1.0
    In Word 2007, I created a top menu of links that use bookmarks to jump down the page to various topics. When I Save As to PDF, the created PDF top menu links work. When I secure the PDF with a password, the top menu links stop working. However, Web links continue to work. What is causing the top menu links to stop working?

    >The links are in the document, not the Bookmark panel.
    Ok, that's fine. They are form fields, almost certainly.
    > How does one allow form filling for a document that is not a form?
    Actually, if the links are form fields, it really is a form. But that
    doesn't matter.
    You just have to set Changes allowed: filling in form fields and
    signing existing signature fields in the Permissions box.
    Aandi Inston

  • Bookmark Widget Stopped Working

    Please help!
    My Bookmark Widget from cpguru suddenly stopped working for no apparent reason. I did not add any quizes nor did I make changes to the widget properties.
    I did recently upgraded my Captivate to version 5.0.2.630 . . . could this be the problem? Please help
    Thanks,
    Roger

    Cpguru himself would be the best person to look into your problem: http://www.cpguru.com/
    I hear he's on vacation in east Asia at the moment, but should have recovered from the hangovers enough to answer emails sometime around the end of this month.  If you're lucky, he might be watching email from some Internet Cafe in the jungle occasionally.
    In the meantime, have you tried experimenting to see if the issue is only with one project or exists even on brand new projects you create?  That would help a lot.

  • My bookmarks randomly stop working until I restart firefox

    I can be browsing just about anywhere, and randomly, my bookmarks will stop responding. They're all visible, I can edit them, and if I drag one to the address bar it will navigate to the site, but just clicking on them in the toolbar or menu will not work. It works for a while if I restart firefox, but eventually, they'll cease functioning again regardless.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    See also:
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    You can also try to repair the places database with this extension:
    *https://addons.mozilla.org/firefox/addon/places-maintenance/

  • JavaScript code frequently stops working in Firefox 2.0.0

    == Issue
    ==
    Firefox is having problems with certain web sites
    == Description
    ==
    I have the following code in my JSP page. Based on some certain business logic I need to hide some toolbar buttons.
    <code>function displayToolbar()
    var oPageHeader = parent.window.frames[0];
    var aTDItems = oPageHeader.document.getElementsByTagName("td");
    for (i = 0; i < aTDItems.length; i++)
    if ("Loading view..." == aTDItems[i].getAttribute("title"))
    if(aTDItems[i].style.display == "none")
    aTDItems[i].style.display = "block";
    }</code>
    This works fine in Firefox 3.6.3.
    When it comes to FF2.0 it works for some time and then stops working. If I manually clear the browser cache, again it starts working.
    I can upgrade the browser to latest FF to fix it, but some of our customers use FF2.0.
    Any help or suggestion will be well appreciated.
    <br/> <br/>''(Edited by Moderator: placed code in a CODE block - c)''<br/> <br/>
    Thanks
    == URL of affected sites
    ==
    http://
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-Cooliris embedded in a tab
    *Version 1.2.0.0
    *Default Plug-in
    *Google Update
    *Shockwave Flash 10.0 r32
    *iTunes Detector Plug-in
    *DivX Web Player version 1.5.0.52
    *npdivxplayerplugin
    *Picasa plugin
    *Yahoo Application State Plugin version 1.0.0.7
    *6.0.12.46
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *Rhapsody Player Engine Plugin
    *Version 0.8.6c, copyright 1996-2006 The VideoLAN Teamhttp://www.videolan.org/
    *Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *DRM Netscape Network Object
    *DRM Store Netscape Plugin
    *Npdsplay dll

    Which extensions do you have installed?
    Are you using the default theme or a custom theme?
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I can browse the rest of the web fine but am locked out of wikipedia and bit.ly and javascript has suddenly stopped working in my website. Has something fallen over and if so, what??

    Since last night, I can't load wikipedia or bit.ly The rest of the web seems to work fine, albeit *some* sites, but not others are a bit slow. The reason I think it might be a Firefox thing is that when I use a proxy server I can get in immediately (but free proxy servers are annoying and I still can't edit Wikipedia).
    I'm on a mac so don't think I have a virus, but it is odd that things are very selectively going wrong. Any clue what it might be?

    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Firefox > Preferences > Privacy > Cookies: "Show Cookies"

  • My history and bookmarks have stopped working on location bar. how do I fix it?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/921356]]</blockquote>
    My history does not appear when I click on the drop arrow. It used to. I have been in tools and done everything told to do but even that will not save changes.
    Also I cannot create bookmarks any more. What has happened and how can i fix this problem.

    Try restarting your iPhone by holding down the on/off and the home buttons at the same time until you see the Apple logo. 

  • HT1222 Anyone having trouble with this update?  My open / save dialogs stopped working after this update...

    Affected applications seem to be Rosetta ones... 
    HT1222: Apple security updates

    Security Update 2012-001 Bricks Rosetta programs
    Restore method.
    #1 Backup your personal data off the machine.
    Backup files off the computer (not TimeMachine) and disconnect. If you don't have a external drive, get one and connect to the USB port and simply drag and drop copy your User folder to the external drive, it will copy all your files. But installed programs are more complicated and best left to reinstalling via original sources.
    #2 Try Restoring from a TimeMachine or option bootable clone
    If you have TimeMachine drive, or a hold the option key bootable clone use that to erase and restore from.
    Note: A TM restore can take a awfully long time, a clone restore takes under 2 hours in most cases.
    #3 Reinstall OS X 10.6 from disk
    If no TM or bootable clone then:
    Get out your 10.6 install disk and make sure it's clean and polished (very soft cloth and a bit of rubbing alcohol, no scratches) If your disk is borked, you'll have to order a new one from Apple with your serial number.
    Hold c boot off the 10.6 disk (wired keyboard, internal optical drive), use Disk Utility to >Repair Disk and Permissions  (do not format or erase!!), Quit DU and simply re-install 10.6.
    Note: If Disk Repair gives a error that is not repaired, then you have to consider erasing the drive (with Zeros) and try reinstalling 10.6 fresh or replacing the drive.
    Note: Simply reinstalling 10.6 version from disk (without erasing the drive) only replaces 10.6.8 with 10.6.x and bundled Apple programs, won't touch your files (backup anyway)  or most programs, unless they installed a kext file into OS X itself. (only a few on average do this)
    #4 Update to 10.6.8 without Security Update 2012-001
    Reboot and log in, update to 10.6.8 via Software Update, but EXCLUDE THE Security Update 2012-001.
    #5 Reinstall any non-working third party programs
    When you reboot, make sure to reinstall any programs that require kext files installed into OS X, you'll know, they won't work when you launch them or hang for some reason.
    If you get gray screen at any time when booting (possible it might occur when you reinstall old programs), hold the shift key down while booting (Safe Mode, disables kext files) and update your installed third party software so it's compatible with 10.6.8.
    #6 Learn how to have a OS X drive restore ability using TimeMachine or cloning software
    Learn how to clone here
    http://www.bombich.com/get_ready_for_lion.html
    TM help here
    http://pondini.org/OSX/Home.html
    #7 Make copies of your original Snow Leopard
    Learn how to make copies of your 10.6 disks here
    http://www.walterjessen.com/make-a-bootable-backup-snow-leopard-install-disc/
    Learn how to make a bootable SL USB
    http://www.maciverse.com/install-os-x-snow-leopard-from-usb-flash-drive.html
    #8 Deciding on upgrading to Lion?
    Learn which programs ARE NOT compatible with Lion
    http://roaringapps.com/apps:table
    #9 Unverified hacks
    Note: You may see a "hack" for this issue floating around, it has had mixed results as people's software is different.
    You may want to try it, but it's at your own risk. It has worked fast for some and not at all for others, hopefully over time it will work for all.
    The above methods I outline are Apple approved restore methods + based upon experience here and not a quick fix, but are sure to work as Apple recommends such steps themselves.
    https://support.apple.com/kb/TS2570
    If at any time you feel this is beyond your capability, please seek local professional assistance before you lose your data.
    Please maintain at least a TM drive, just hook up a external drive and TM will ask you to make a backup
    If your a bit more skilled, a option bootable clone is much superior than TM drive.
    Good luck
    <Edited by Host>

  • Some RSS feeds have stopped working.

    when i picked up the latest update to firefox a few of my rss live bookmarks have stopped working
    and example is http://kaitou-fansubs.com/?feed=rss2
    this feed works when you navigate to to but wont display as a live bookmark
    as it is only some sites then i don't think its just a firefox issue however as the issues only occurred after the update then i think something changed with firefox that has triggered the incompatibility

    Ahh well then i guess what changed in the update was improved validation, which has killed some badly formed feeds

  • Automounting & Power off from XFCE stopped working

    Hello, after the latest xorg update my automounting as well as my shutdown/reboot options from XFCE's logout dialog stopped working. I can't also mount other partitions as non-root user. This is one of the most common problems that appear once in a while and I usually tweak my .xinitrc and/or pam.d files to get functionality back, but this time I have no luck. My display manager is plain XDM. I should mention that if I startx from a tty everything is working properly.
    Relevant files
    .xinitrc
    xrdb -merge ~/.Xdefaults
    exec ck-launch-session dbus-launch --auto-syntax --exit-with-session startxfce4
    /etc/pam.d/xdm
    auth required pam_unix.so
    auth required pam_nologin.so
    auth required pam_env.so
    auth optional pam_gnome_keyring.so
    account required pam_unix.so
    password required pam_unix.so
    session required pam_unix.so
    session optional pam_loginuid.so
    session optional pam_ck_connector.so nox11
    session optional pam_gnome_keyring.so auto_start
    session required pam_limits.so
    /etc/pam.d/login
    auth required pam_securetty.so
    auth requisite pam_nologin.so
    auth required pam_unix.so nullok
    auth required pam_tally.so onerr=succeed file=/var/log/faillog
    account required pam_access.so
    account required pam_time.so
    account required pam_unix.so
    session required pam_unix.so
    session required pam_env.so
    session required pam_motd.so
    session required pam_limits.so
    session optional pam_mail.so dir=/var/spool/mail standard
    session optional pam_lastlog.so
    session optional pam_loginuid.so
    -session optional pam_ck_connector.so nox11
    # session optional pam_ck_connector.so # same results as above with this
    Output of ck-list-sessions
    Session8:
    unix-user = '1000'
    realname = '...'
    seat = 'Seat1'
    session-type = ''
    active = TRUE
    x11-display = ':0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2011-10-12T23:08:23.442789Z'
    login-session-id = '4'
    Session9:
    unix-user = '1000'
    realname = '...'
    seat = 'Seat1'
    session-type = ''
    active = FALSE
    x11-display = ':0'
    x11-display-device = '/dev/tty7'
    display-device = ''
    remote-host-name = ''
    is-local = TRUE
    on-since = '2011-10-12T23:08:23.554858Z'
    login-session-id = '4'
    and the groups I'm in
    disk lp wheel utmp network video audio optical storage power users vboxusers foucault sentaurus
    Any ideas? Could this be an XDM issue or any misconfiguration? The same thing happens with slim as well. I could really use some help here. All four bullets mentioned in the wiki are true.
    Thanks in advance!
    Last edited by Foucault (2011-10-12 23:36:53)

    The problem seems to reappear.  The changelogs for xfce4-session 4.8.2-2 say: "Remove .pkla files; shutdown/suspend/etc should continue to work for people with correct ConsoleKit sessions."
    So I need a consolekit session to be able to shutdown. However if I  start xfce with no displaymanager using 'exec ck-launch-session startxfce4' in my .xinitrc. and check my sessions with 'ck-list-sessions' I get:
    Session2:
    unix-user = '1001'
    realname = '(null)'
    seat = 'Seat1'
    session-type = ''
    active = FALSE
    x11-display = ''
    x11-display-device = ''
    display-device = '/dev/tty2'
    remote-host-name = ''
    is-local = TRUE
    on-since = '2011-11-21T18:13:26.929832Z'
    login-session-id = '2'
    idle-since-hint = '2011-11-21T18:13:58.225846Z'
    Session4:
    unix-user = '1000'
    realname = '(null)'
    seat = 'Seat3'
    session-type = ''
    active = FALSE
    x11-display = ':0'
    x11-display-device = '/dev/tty8'
    display-device = '/dev/tty1'
    remote-host-name = ''
    is-local = FALSE
    on-since = '2011-11-21T18:19:24.067561Z'
    login-session-id = '1'
    That would explain why I can't shutdown, but it makes me wonder how do I get get a valid session. The wiki on consolekit seems to imply that I need a displaymanager, but I rather would not use one. Does anyone know how to fix this?
    Last edited by rwd (2011-11-21 22:58:56)

  • I am trying to use pinterest on my computer.  i had it installed in the bookmark bar, working fine and now today mysteriously it stopped working.  help!

    i am trying to use pinterest on my computer.  i had it installed, in the bookmark bar, it was working properly, and today it has stopped working.  i have deleted it, and reinstalled, but still the same problem.  please help!

    It looks like that "button" is just a JavaScript with a web link. Have you tried clearing your browser's cache and cookies? Also, confirm that JavaScript is still active; there will be a setting in your brower's preferences; it's in the Security pane in some versions of Safari.
    Regards.

  • Acrobat 8.1.2 Stops Working When Opening a Drop-Down Dialog Box

    Whenever I try to open a drop-down dialog box in Acrobat the application stops working and Vista requests that the application be closed and that I will be notified of a solution when one is available. I've experienced the problem for six months. I must now solve this problem.
    I've already tried repairing the Acrobat installation without any improvement. What should I do next?

    Thanks, seems to solve some of the problem, perhaps I need to uncheck more in this dialogue box...  May be 'a' correct answer but not the complete solution.  Anyway if all I need to do is uncheck a choice in a dialogue box then it must be a bug or driver incompatability as there seems to be no reason why I shouldn't be able to use 2D graphics acceleration.
    Works if you highlight several PDFs in File Manager and then right click and 'Open with Adobe Acrobat', the error still occurs if I drag these files into an open instance of Acrobat beyond two files.  Also seems to be more of a problem if one of the files is a 'colour document ' or 'greyscale document' scanned by Acrobat itself.

  • Javascript in batch sequence stopped working

    The following javascript used in a batch sequence is causing Acrobat to stop working. It was working fine, this problem has happened sometime in the last 2 weeks. This has affected all of our PCs regardless of Acrobat update version. We are running Acrobat 8 (8.15, 8.17, 8.21, 8.25). The only update common to all PCs is Windows Update.
    /* Extract single pages to c:/Adobe */
    // Regular expression used to acquire the base name of file
    var re = /\.pdf$/i;
    // filename is the base name of the file Acrobat is working on
    var filename = this.documentFileName.replace(re,"");
    try {for (var i = 0; i < this.numPages; i++)
    this.extractPages({
    nStart: i,
    cPath: "C:\\Adobe\\"+filename+"_" + i +".pdf"
    } catch (e) { console.println("Aborted: " + e) }
    Any Clues?

    Thanks for the speedy response. I tried this and the problem is still there.
    I did some further testing and the original script, and the new one modified to include your correction, both work if the PDF only has one page.
    With more than one page Acrobat 'has stopped working'

  • Two days ago two of the forum I use stopped working as they did. Google Chrome can open these sites without problem. I have checked that Javascript is working. What can I do to get the sites back to the way they were?

    Two days ago two forums I regularly use stopped working properly. One of them is www.mobileread.com, and the main problem is with marking the forums read. The staff there suggested that I check that Javascript is enabled. It is, but the problem remains.
    The other site just looks as though there is no styling on the index page; it just shows a list of links.
    I can use both sites with Google Chrome just as I did before, so it has to be a problem with Firefox.
    There are many other sites I visit, and I have not had the same problem there.

    For the one with a styling problem, see what you have for View > Page Style
    the normal style is default and "No Style" would wipe out styling but in this area it would apply to all pages.
    I don't know of an extension that would selectively turn page styling or off, but look at your extensions.
    Both problems could be caused by filters added to "Adblock Plus" extension.
    Bring up "Open blockable items [Ctrl+Shift+V]" in ADP by right-clicking on the toolbar/addons bar icon or in the add-on's options. See what is being blocked and the filter that is blocking it. You can easily test filters there and turn them on/off and retest. You can see the filter that is blocking an item, you can use the mouse to see where that filter came from. Choices of what columns to display can be made with the little icon to the right of the column headings in the list.
    Attached is a picture of blockable items I see for the www.mobileread.com page. To view a page that you need to view or use, you can try modifying your filters or toggling the "State" column (preferred). You can disable Adblock Plus from the extensions options but that defeats the protection it offers.
    If seems that the problem would be an extension, or a style, or theme.

  • The function to combine pdf files and the function to add bookmarks stopped working in 10.x

    We had VBA scripts in Access 2003 running with Acrobat 7.0 standard version to combine pdf files and to add bookmarks. The scripts worked fine. Now we installed 10.x and the functions stopped working. Does anyone share the same experience?
    In the scripts, we just call the OLE object with the code like:
        Set acroOrigPdfDoc = CreateObject("AcroExch.PDDoc")
        Set acroNewPdfDoc = CreateObject("AcroExch.PDDoc")
    Then we have the call "acroOrigPdfDoc.InsertPages" and "acroOrigPdfDoc.Save" to save the combined pdf files. All these functions work fine under 7.x. Under 10.x, they stopped working without any error messages.
    Can anyone help me?

    Post your problem in the forum for Acrobat SDK.

Maybe you are looking for