Activating toolbar item from javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DanaBulpett@gmail.com

    #1

    Activating toolbar item from javascript

    How can I activate an item in the toolbar from javascript as if the
    user had clicked on that item?

    Thanks in advance
  • Thomas 'PointedEars' Lahn

    #2
    Re: Activating toolbar item from javascript

    DanaBulpett@gma il.com wrote:
    How can I activate an item in the toolbar from javascript as if the
    user had clicked on that item?
    Which toolbar?


    PointedEars
    --
    var bugRiddenCrashP ronePieceOfJunk = (
    navigator.userA gent.indexOf('M SIE 5') != -1
    && navigator.userA gent.indexOf('M ac') != -1
    ) // Plone, register_functi on.js:16

    Comment

    • DanaBulpett@gmail.com

      #3
      Re: Activating toolbar item from javascript

      On Nov 2, 7:24 pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
      wrote:
      DanaBulp...@gma il.com wrote:
      How can I activate an item in the toolbar from javascript as if the
      user had clicked on that item?
      >
      Which toolbar?
      >
      PointedEars
      --
      var bugRiddenCrashP ronePieceOfJunk = (
          navigator.userA gent.indexOf('M SIE 5') != -1
          && navigator.userA gent.indexOf('M ac') != -1
      )  // Plone, register_functi on.js:16
      The "Check" (spell check) item in the google toolbar.

      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: Activating toolbar item from javascript

        DanaBulpett@gma il.com wrote:
        Thomas 'PointedEars' Lahn wrote:
        >DanaBulp...@gm ail.com wrote:
        >>How can I activate an item in the toolbar from javascript as if the
        >>user had clicked on that item?
        >Which toolbar?
        >[...]
        >
        The "Check" (spell check) item in the google toolbar.
        I presume it is not generally possible (so it would not be a question of
        how) since extensions like these usually run outside of the sandbox while
        user code runs within. The Google Toolbar API documentation also provides
        no information to that end, so it would appear you can only try and UTSL.


        PointedEars
        --
        Prototype.js was written by people who don't know javascript for people
        who don't know javascript. People who don't know javascript are not
        the best source of advice on designing systems that use javascript.
        -- Richard Cornford, cljs, <f806at$ail$1$8 300dec7@news.de mon.co.uk>

        Comment

        Working...