Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 06-20-2005, 07:16 PM   #1 (permalink)
falsepride
Regular Contributor
 
Join Date: Oct 2004
Posts: 219
falsepride is on a distinguished road
help debugging. please. im lost

HTML Code:
<form method="POST" action="/admin.php?act=addmember" name="newmember" style="">
<input type="checkbox" name="pic" value="true" onClick="javascript: shownifchecked();">
<input class="file" type="file" name="picsource" size="30" class="input" style="display:none</form>
and heres my java script for that

Code:
function showifchecked() {
  if(document.forms["newmember"].pic.checked == true) {
    document.forms["newmember"].picsource.style.display == "";
  }
}
its gotta be some stupid error. but i cant find it

and heres my second problem.

HTML Code:
<a href="#" onClick=javascript: shownhide("document.forms['newmember']");>Add new member to the line up.</a></form><form method="POST" action="/admin.php?act=addmember" name="newmember" style="">
Code:
function showhide(form){
  if(form.style.display == "none") {
    form.style.display = ""
  } else {
    form.style.display = "none"
  }
}
please help.
falsepride is offline   Reply With Quote
Old 06-20-2005, 07:22 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
1. you are calling shownifchecked(); in your html code. should be showifchecked();

#2, same thing.
__________________
Mike
sde is offline   Reply With Quote
Old 06-20-2005, 07:25 PM   #3 (permalink)
falsepride
Regular Contributor
 
Join Date: Oct 2004
Posts: 219
falsepride is on a distinguished road
ugh. codes still not working. i hate javascript, never gives errors that help.
falsepride is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
No ASP debugging AlexB1234 MS Technologies ( ASP, VB, C#, .NET ) 1 04-19-2005 01:07 PM
Official Long Lost Code Newbie Members Page =P sde Lounge 0 10-27-2004 01:56 PM
Problems debugging visual c++ in vs.net 2003 Engineer MS Technologies ( ASP, VB, C#, .NET ) 2 07-20-2004 12:19 PM
Help debugging a power problem Belisarius Lounge 0 10-25-2003 04:44 PM
lost in flux land revolution Linux / BSD / OS X 1 04-05-2003 12:31 AM


All times are GMT -8. The time now is 03:54 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting