Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > General Computer Support > javascript not working in Html

Reply
Thread Tools

javascript not working in Html

 
 
kgriffin kgriffin is offline
Junior Member
Join Date: Oct 2008
Posts: 2
 
      10-19-2008
Hi,

I'm new to Java and I really need help with this. This is what I want to do: When a checkbox is changed I want to make an imagebutton on the form visible. I get no errors when executing the code, but it doesn't work.

Here is the java in html:

<script type="text/javascript" language="javascript">



function Show()

{


document.getElementById('<%=ImageButton4.ClientID% ').style.display = 'block';

}
</script>



here is the event to trigger the function:

ID="CheckBox1" runat="server" AutoPostBack="True" onchanged="Show()" CausesValidation="True"

Any and all help would be greatly appreciated!

Thanks
KG
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: Javascript not working in Firefox "event not defined" Wiseman Javascript 1 07-25-2008 03:04 PM
Working with XML in JavaScript / Как работать с XML в Javascript'е? noff Javascript 0 06-14-2007 12:46 PM
Small javascript/html that's not working as I think it should - please help gkellymail@gmail.com Javascript 1 10-26-2006 07:38 AM
wifi not working on new hp, or not working after live update =?Utf-8?B?RHJhZ29ueA==?= Wireless Networking 1 10-01-2005 11:17 PM
two javascript functions in html not working...help please! KathyB Javascript 0 09-08-2003 09:44 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57