473,327 Members | 2,103 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,327 software developers and data experts.

document.getElementById('whatever').click() does not work in Firefox

HI,

I have encountered this:

document.getElementById('Show').click() does not work in Firefox

I also tried:

document.getElementById('Show').submit.click() with the same result.

I have an asp: LinkButton like this:

<asp:LinkButton id="Show" Runat="server"><img name="myimage" src="show.gif"></asp:LinkButton>

I now want the onClick() event of this LinkButton to fire when I actually click another similar button (BUT2) on my form. I want to do this via javascript 'coz there are some other tasks to be done in the event handler of the other button (BUT2) before I actually want this button (Show) to be 'clicked'.

Thanks for your help!
Whiz.
May 3 '07 #1
1 12847
iam_clint
1,208 Expert 1GB
no element.click(); does not work in firefox what you will have todo is read what the onclick event is doing and then run it along with your other buttons on click event

element.getAttribute("onclick");
May 3 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Philip | last post by:
I have just tried my website with Firefox v1.0 and when I try to load a movie using: document.getElementByID('MovieID').LoadMovie(0, 'MovieURL'); the browser tells me that LoadMovie is not a...
4
by: strout | last post by:
I want to do some client-side operation by click different radiobuttonlist. I tried to add "onclick" event for each itemlist, by register startup clientside javascript. But the problem is I...
6
by: zippy | last post by:
My code works fine in IE but not FF. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
4
by: gtalmes | last post by:
I am writing a pretty simple Javascript which makes use of getElementById to work with some divs on the page. The divs are labelled correctly (id="whatever") and there are no duplicate div ids. ...
3
by: edai | last post by:
I am working on a code where I am loading XML data from a file on the server using ....... if (xmlhttp.readyState==4) { value=xmlhttp.responseText; var parser=new DOMParser();...
3
by: palak123i | last post by:
Hi All, I am using a javascript to submit a request using AJAX. Part of javascript code as follows: var favElement = document.getElementById('fav1'); alert(favElement); for (var i = 0; i <...
29
by: Nick | last post by:
I've seen a few frameworks use the following: function $(id) { return document.getElementById(id); } Then to use: $('something').innerHTML = 'blah'; I'm just trying to roll this out to my...
2
by: allan.s.palmer | last post by:
Hello, I have an asp.net pop up that is generating a Word document real time and sending it to the user by sending the appropriate response headers. When it is run on our development environment...
1
by: =?Utf-8?B?Sg==?= | last post by:
Please advise: Find text in Document works sometimes and not others when doing a searh in a 75 page document. If I search for the name Larry, it may bring up 3 names then it freezes. If I search...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.