By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,795 Members | 1,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,795 IT Pros & Developers. It's quick & easy.

Activating toolbar item from javascript

P: n/a
How can I activate an item in the toolbar from javascript as if the
user had clicked on that item?

Thanks in advance
Nov 2 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Da*********@gmail.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 bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Nov 3 '08 #2

P: n/a
On Nov 2, 7:24*pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
DanaBulp...@gmail.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 bugRiddenCrashPronePieceOfJunk = (
* * navigator.userAgent.indexOf('MSIE 5') != -1
* * && navigator.userAgent.indexOf('Mac') != -1
) *// Plone, register_function.js:16
The "Check" (spell check) item in the google toolbar.
Nov 3 '08 #3

P: n/a
Da*********@gmail.com wrote:
Thomas 'PointedEars' Lahn wrote:
>DanaBulp...@gmail.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, <f8*******************@news.demon.co.uk>
Nov 3 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.