473,796 Members | 2,911 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 12937
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
4843
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
19293
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
2734
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
1437
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
9535
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
10244
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10201
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
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...
0
9061
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6802
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
5454
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2931
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.