473,785 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

document.getEle mentById('whate ver').click() does not work in Firefox

1 New Member
HI,

I have encountered this:

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

I also tried:

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

I have an asp: LinkButton like this:

<asp:LinkButt on 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 12932
iam_clint
1,208 Recognized Expert Top Contributor
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.getAttr ibute("onclick" );
May 3 '07 #2

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

Similar topics

3
4841
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 recognized function. This works fine on IE6. I need to change the movie depending on the buttons that the user presses, all on the same page. Is the only way to do this by changing the innerHTML of the 'MovieID'
4
4453
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 cannot get document.getElementById work, because the list item id generated by ASP.net is like myRdoList_0, myRdoList_1 ... and the names are "myRdoList". While document.getElementById is supposed to identify element BY NAME but not by ID attribute. ...
6
28450
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">
4
1840
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. I have tried addressing the divs using: document.getElementById("whatever") as well as document.getElementById('whatever') In all cases, I am getting nothing but a null value returned.
3
9682
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(); xml=parser.parseFromString(value,"text/xml") ........ when I use getElementsByTagName I get ============firebug output==========
3
14374
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 < userGroupArray.length; i++){ for (var j = 0; j < favElement.length; j++){ if(favElement.options.value == userGroupArray){
29
19290
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 site and so far doing this has saved about 8KB of javascript (lots of ajax/dynamic elements). I just
2
2733
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 it works fine in both IE6 and IE7. We recently moved this to our UAT environment and it works fine for IE7, but IE6 users are getting the option to only download or save the .aspx page, not the generated .doc file. Has anyone run into an...
1
1436
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 for the name Laura, it may not work at all but will work If I limit the search to lau -- and of course this is not helpful to me, PLEASE HELP.... Thank you
0
9489
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9959
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7509
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5396
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4061
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 we have to send another system
3
2893
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.