NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Displaying Content When A Checkbox Is Checked??

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-23-2005, 03:03 PM THREAD STARTER               #1 (permalink)
TWM
Web Marketing Specialist
Join Date: Oct 2003
Location: Texas, USA
Posts: 1,335
TWM is a jewel in the roughTWM is a jewel in the roughTWM is a jewel in the rough
 



Displaying Content When A Checkbox Is Checked??


I did this before, but i just cant remember how. I thought it was with javascript. Can someone show me a script that will do this?

When you check a checkbox, content is displayed, and when you uncheck it, the content goes away.

THANKS ALOT!!
TWM is offline  
Old 06-23-2005, 04:38 PM   #2 (permalink)
NamePros Member
Join Date: Jun 2005
Location: Indianapolis, IN
Posts: 61
Kupo? is an unknown quantity at this point
 



This should work: http://www.webmasterworld.com/forum91/441.htm

Post if you have any problems.
__________________

Kupo?
Kupo? is offline  
Old 06-23-2005, 10:13 PM THREAD STARTER               #3 (permalink)
TWM
Web Marketing Specialist
Join Date: Oct 2003
Location: Texas, USA
Posts: 1,335
TWM is a jewel in the roughTWM is a jewel in the roughTWM is a jewel in the rough
 



exactly what i needed, thanks
TWM is offline  
Old 06-29-2005, 03:57 PM   #4 (permalink)
NamePros Member
Join Date: Oct 2003
Posts: 126
i386 is an unknown quantity at this point
 



Isn't it possible to use onClick and go to http://CURRENT_PAGE?checkboxClicked=true?
i386 is offline  
Old 06-29-2005, 04:25 PM   #5 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
Join Date: Aug 2004
Posts: 3,809
stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of
 



Originally Posted by Kupo?
This should work: http://www.webmasterworld.com/forum91/441.htm
????: NamePros.com http://www.namepros.com/programming/101273-displaying-content-when-a-checkbox-checked.html

Post if you have any problems.
some people do not have accounts there or have been blocked because of someone elses wrong doing on the isp. please post the content in this thread.

-Steve
stscac is offline  
Old 06-30-2005, 12:12 PM   #6 (permalink)
NamePros Member
Join Date: Jun 2005
Location: Indianapolis, IN
Posts: 61
Kupo? is an unknown quantity at this point
 



Originally Posted by stscac
some people do not have accounts there or have been blocked because of someone elses wrong doing on the isp. please post the content in this thread.

-Steve
Do you need it? The thread starter idevisedesign already posted his problem was solved.
__________________

Kupo?
Kupo? is offline  
Old 07-01-2005, 08:58 AM THREAD STARTER               #7 (permalink)
TWM
Web Marketing Specialist
Join Date: Oct 2003
Location: Texas, USA
Posts: 1,335
TWM is a jewel in the roughTWM is a jewel in the roughTWM is a jewel in the rough
 



Get a new ISP

Quote:
<head> tags put this java script in

<script language=javascript type='text/javascript'>
function hideDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
????: NamePros.com http://www.namepros.com/showthread.php?t=101273
document.getElementById('hideShow').style.visibili ty = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hideShow.visibility = 'hidden';
}
else { // IE 4
document.all.hideShow.style.visibility = 'hidden';
}
}
}

function showDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hideShow').style.visibili ty = 'visible';
}
else {
if (document.layers) { // Netscape 4
document.hideShow.visibility = 'visible';
}
else { // IE 4
document.all.hideShow.style.visibility = 'visible';
}
}
}
</script>

As you can see it gets the div ID for each of the browsers and hides it or shows it. I named the Div Id hideShow to make it easy for you.

Then in your document put in your Div element the id name hideShow you can change this of course

<div id="hideShow" ..etc>
My content
</div>

and this to call the javascript to hide it

<a href="javascript:hideDiv()">Hide Div</a>

and this to show it

<a href="javascript:showDiv()">show Div</a>
TWM is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Content Isn't King ... vimkar Search Engines 12 06-22-2005 03:27 PM
Good Article: An SEO Checklist Ferman Search Engines 2 05-28-2005 11:51 AM
Start Making Money With Your Own Content Rich Website trishan Content For Sale 13 04-05-2005 11:29 PM
Chapter 18 Other Content WebForging Webmaster Tutorials 3 03-20-2005 04:15 PM
Page Rank 7 names, 50k+ LinkPop names, etc. Huge sale! including counter.li domplace.info Domains For Sale - Make Offer 0 11-18-2004 09:38 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 04:02 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger