473,473 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Nov 2 '08 #1
3 1567
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: PK | last post by:
Hello, I am looking for help on the following. I'm trying to create a custom browser toolbar button that will do a few things. One that I'm trying to do at the moment is just simply return the...
1
by: Jeppe 1971 | last post by:
Hi Does anyone know of a way to load a HTML-page and examine the document without activating the code? I am trying to create a search-function in javascript. The idea is that the function...
4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
1
by: lauren quantrell | last post by:
I use the following code to create a combobox in a toolbar: 'You must set a reference to the Microsoft Office x.0 Object Library to run this code! Dim newcombo Set newcombo =...
1
by: John | last post by:
Hi all, My app is using the toolbar webcontrol. Adding to and removing from the toolbar is fine but I want to add something like an 'onclick' event to a particular toolbaritem I'm adding to the...
3
by: John | last post by:
Hi all, I have a web toolbar and a few buttons on it. On one of the buttons, I need to execute some Javascript. I did put <span onclick="Javascript:alert('test');"></span> in the text property...
1
by: Dino Buljubasic | last post by:
Hi, I have a toolbar with several buttons on it, one of which is set up to be as a DropDown button. I also have a context menu with menu items assigend to it so when I click that button, my...
1
by: Curtis | last post by:
Somehow I'm just missing something. I don't know how to catch when a user clicks on an item in a dropdown list for a dropdown style button on a toolbar. I create a new app. Form1. Add a...
5
by: chadlupkes | last post by:
I'm working with an internal website with a form with a bunch of checkboxes indicating records that I need to work with. Part of my job is printing all those records, meaning I need to check each...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.