473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

programmatically click button problem

Hi

I need to programmatically click imagebutton from javascript

so I write in a link navigate url

document.forms[0].nextBtn.fireEvent('onclick');

!!!!! it says nextBtn undefined
it is a web page not control
and when I do view source it is nextBtn !!!!

other input controls I see just fine like checkboxes etc
Help!!!
Nov 19 '05 #1
3 2348
Greg,

Try:

document.getElementById('nextBtn').click();

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"greg" <in**@ebsdevelopmentNOSPAM.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi

I need to programmatically click imagebutton from javascript

so I write in a link navigate url

document.forms[0].nextBtn.fireEvent('onclick');

!!!!! it says nextBtn undefined
it is a web page not control
and when I do view source it is nextBtn !!!!

other input controls I see just fine like checkboxes etc
Help!!!

Nov 19 '05 #2
Justin

you are the man
thanks
was getting nuts on this stuff

"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:%2******************@TK2MSFTNGP15.phx.gbl...
Greg,

Try:

document.getElementById('nextBtn').click();

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"greg" <in**@ebsdevelopmentNOSPAM.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi

I need to programmatically click imagebutton from javascript

so I write in a link navigate url

document.forms[0].nextBtn.fireEvent('onclick');

!!!!! it says nextBtn undefined
it is a web page not control
and when I do view source it is nextBtn !!!!

other input controls I see just fine like checkboxes etc
Help!!!


Nov 19 '05 #3
if only you'd asked that question earlier....! :(

"greg" wrote:
Justin

you are the man
thanks
was getting nuts on this stuff

"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:%2******************@TK2MSFTNGP15.phx.gbl...
Greg,

Try:

document.getElementById('nextBtn').click();

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"greg" <in**@ebsdevelopmentNOSPAM.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi

I need to programmatically click imagebutton from javascript

so I write in a link navigate url

document.forms[0].nextBtn.fireEvent('onclick');

!!!!! it says nextBtn undefined
it is a web page not control
and when I do view source it is nextBtn !!!!

other input controls I see just fine like checkboxes etc
Help!!!



Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Carlo Marchesoni | last post by:
From an aspx page (A.aspx) I open another one (B.aspx - for table lookup). When the user selects an entry in B.aspx I would like to force a button's event in A.aspx to be fired. I guess the only...
4
by: RN | last post by:
In certain situations, I add a datagrid and a button beneath it. All programmatically added in the "code behind". I add them to a cell with cell.add(datagrid) and cell.add(button). Take the...
4
by: Bob | last post by:
Hi, I'm working with VWD and i defined programmatically a button (in code-behind) with an ID. So I expect to see beside "Page Events" and "Form1" my button "b1" in order to use the Click event....
2
by: ChrisCicc | last post by:
Hi All, I got a real doozy here. I have read hundreds upon hundreds of forum posts and found numerous others who have replicated this problem, but have yet to find a solution. Through testing I have...
15
by: ChrisCicc | last post by:
Hi All, I got a real doozy here. I have read hundreds upon hundreds of forum posts and found numerous others who have replicated this problem, but have yet to find a solution. Through testing I have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.