Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 11-15-2006, 10:52 PM   #1 (permalink)
Contributing Member
 
I like pie's Avatar
 
Join Date: 10-12-03
Location: California
Posts: 254
iTrader: 0 / 0%
Latest Blog:
None

I like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the rough
Send a message via ICQ to I like pie Send a message via AIM to I like pie Send a message via MSN to I like pie Send a message via Yahoo to I like pie
hiding checkboxes with JS

I've got a function that creates checkboxes that I'm going to be using in a form, and I want it to be hidden by default. There's a checkbox that's "parent" to these other ones that should reveal the other checkboxes when checked, and hide them again unchecked.

I know I need javascript, and I know that I've got to use the on click event, but other than that I'm lost.

Could anybody help me hide a simple string with on-click to get me started? Or point me in the right direction?

Or even better yet, does anybody know of a way to do something like this without javascript?
__________________
Foohon Pie Productions
I like pie is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 11-15-2006, 11:06 PM   #2 (permalink)
Inactive
 
wulf2001's Avatar
 
Join Date: 08-01-05
Posts: 199
iTrader: 0 / 0%
Latest Blog:
None

wulf2001 is liked by somebodywulf2001 is liked by somebodywulf2001 is liked by somebodywulf2001 is liked by somebodywulf2001 is liked by somebody
If I were you I'd stay far far far away from javascript. All these new browsers have that install attachment crap whenever you use certain JS commands... and it makes it seem so untrustworthy to allow these "attachments" which means most of your JS isn't even shown...

If I were you I'd just use some if commands in PHP or ASP... a lot safer results...
wulf2001 is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-15-2006, 11:10 PM   #3 (permalink)
Contributing Member
 
I like pie's Avatar
 
Join Date: 10-12-03
Location: California
Posts: 254
iTrader: 0 / 0%
Latest Blog:
None

I like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the rough
Send a message via ICQ to I like pie Send a message via AIM to I like pie Send a message via MSN to I like pie Send a message via Yahoo to I like pie
I'd like to stay away from javascript if I could, but this is a client-side problem and php can't help me there.

Unless there's a tricky way to do it, in which case I'd be glad to learn it.
__________________
Foohon Pie Productions
I like pie is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-17-2006, 11:06 AM   #4 (permalink)
Contributing Member
 
I like pie's Avatar
 
Join Date: 10-12-03
Location: California
Posts: 254
iTrader: 0 / 0%
Latest Blog:
None

I like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the rough
Send a message via ICQ to I like pie Send a message via AIM to I like pie Send a message via MSN to I like pie Send a message via Yahoo to I like pie
any javascript gurus have any ideas on this?
__________________
Foohon Pie Productions
I like pie is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-17-2006, 01:23 PM   #5 (permalink)
Contributing Member
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,067
iTrader: 0 / 0%
Latest Blog:
Moved In!

Izzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to beholdIzzmo is a splendid one to behold
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
Quote:
Originally Posted by I like pie View Post
I'd like to stay away from javascript if I could, but this is a client-side problem and php can't help me there.

Unless there's a tricky way to do it, in which case I'd be glad to learn it.
PHP is server-side, so Javascript would be the answer

I'm not that great at JScript.. so I can't really help you, sorry.
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-17-2006, 06:45 PM   #6 (permalink)
Contributing Member
 
I like pie's Avatar
 
Join Date: 10-12-03
Location: California
Posts: 254
iTrader: 0 / 0%
Latest Blog:
None

I like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the roughI like pie is a jewel in the rough
Send a message via ICQ to I like pie Send a message via AIM to I like pie Send a message via MSN to I like pie Send a message via Yahoo to I like pie
Yeah, I'm pretty sure JS is the only way I can make this happen.

Ah well, off I go to W3S. hopefully this won't take too long
__________________
Foohon Pie Productions
I like pie is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB 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
Excel: Hiding Overflow chicgeek Computers & Internet 5 10-30-2007 01:37 PM
Hiding video source ZigZag86z Coding Forum 2 01-19-2007 11:59 AM
Hiding URL SVB Coding Forum 16 09-12-2004 04:44 PM
Hiding URL in STAUS BAR GoldDust Coding Forum 15 03-02-2004 03:43 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 07:46 PM.
© Copyright 2008 V7 Inc