Click here to Skip to main content
15,898,020 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: need help to create a dynamic calendar! Pin
V.11-Jul-12 3:13
professionalV.11-Jul-12 3:13 
GeneralRe: need help to create a dynamic calendar! Pin
Erika Silva11-Jul-12 3:49
Erika Silva11-Jul-12 3:49 
GeneralRe: need help to create a dynamic calendar! Pin
V.11-Jul-12 3:54
professionalV.11-Jul-12 3:54 
GeneralRe: need help to create a dynamic calendar! Pin
Erika Silva11-Jul-12 3:58
Erika Silva11-Jul-12 3:58 
GeneralRe: need help to create a dynamic calendar! Pin
V.11-Jul-12 7:19
professionalV.11-Jul-12 7:19 
GeneralRe: need help to create a dynamic calendar! Pin
Erika Silva11-Jul-12 23:46
Erika Silva11-Jul-12 23:46 
QuestionDrag and drop textbox in html using javascript Pin
kankeyan2-Jul-12 1:34
kankeyan2-Jul-12 1:34 
AnswerRe: Drag and drop textbox in html using javascript Pin
CodingLover2-Jul-12 16:20
CodingLover2-Jul-12 16:20 
GeneralRe: Drag and drop textbox in html using javascript Pin
kankeyan2-Jul-12 19:09
kankeyan2-Jul-12 19:09 
GeneralImages with menu Pin
ASPnoob28-Jun-12 4:50
ASPnoob28-Jun-12 4:50 
QuestionWhat's the difference between "prototype" and "__proto__"? Pin
yumeng.liu27-Jun-12 22:09
yumeng.liu27-Jun-12 22:09 
AnswerRe: What's the difference between "prototype" and "__proto__"? Pin
Richard MacCutchan27-Jun-12 22:39
mveRichard MacCutchan27-Jun-12 22:39 
GeneralRe: What's the difference between "prototype" and "__proto__"? Pin
Richard MacCutchan2-Mar-20 21:06
mveRichard MacCutchan2-Mar-20 21:06 
QuestionMoving an object vertically Pin
crzybug27-Jun-12 17:34
crzybug27-Jun-12 17:34 
AnswerRe: Moving an object vertically Pin
Peter_in_278027-Jun-12 18:18
professionalPeter_in_278027-Jun-12 18:18 
GeneralRe: Moving an object vertically Pin
crzybug30-Jun-12 12:51
crzybug30-Jun-12 12:51 
QuestionHow to Show a Div in JavaScript or JQuery Pin
Vimalsoft(Pty) Ltd18-Jun-12 12:15
professionalVimalsoft(Pty) Ltd18-Jun-12 12:15 
AnswerRe: How to Show a Div in JavaScript or JQuery Pin
enhzflep18-Jun-12 14:36
enhzflep18-Jun-12 14:36 
Hmmmm. It does seem a bit strange.

Are you able to see other content in the table? I'm wondering if there's something else keeping it hidden. I.e if the table was display:none then the div will never show.

This code works for me in Chrome 19 and IE7

HTML
<html>
<head>
<script>
function byId(e) {return document.getElementById(e);}

function unhide(elementId)
{
	var tgt = byId(elementId);
	tgt.style.display = 'block';
}

function hide(elementId)
{
	var tgt = byId(elementId);
	tgt.style.display = 'none';
}

function onShowBtn()
{
	unhide("myHidden");
	hide("showBtnDiv");
	unhide("hideBtnDiv");
}

function onHideBtn()
{
	hide("myHidden");
	unhide("showBtnDiv");
	hide("hideBtnDiv");
}
</script>
</head>

<body>
	<table>
		<tr>
			<td> Hidden -> </td>
			<td>
				<div id="myHidden" style="display:none">
					random random random<br/>
				</div>
			</td>
		</tr>
		<tr>
			<td> 
				<div id="showBtnDiv">
					<input type="button" onclick="onShowBtn();" value="Show"/>
				</div>
			</td>
			<td>
				<div id="hideBtnDiv" style="display:none;">
					<input type="button" onclick="onHideBtn();" value="Hide"/>
				</div>
			</td>
		</tr>
</body>
</html>

GeneralRe: How to Show a Div in JavaScript or JQuery Pin
Vimalsoft(Pty) Ltd18-Jun-12 20:18
professionalVimalsoft(Pty) Ltd18-Jun-12 20:18 
GeneralRe: How to Show a Div in JavaScript or JQuery Pin
enhzflep18-Jun-12 20:24
enhzflep18-Jun-12 20:24 
Questionjava script can't receive an event from MFC activex? Pin
creative2617-Jun-12 22:04
creative2617-Jun-12 22:04 
QuestionPython Bulk-Renamer for Date-Modified Pin
johtnkucz10-Jun-12 0:41
johtnkucz10-Jun-12 0:41 
AnswerRe: Python Bulk-Renamer for Date-Modified Pin
Diana Weiss13-Jun-12 1:49
Diana Weiss13-Jun-12 1:49 
QuestionPlotting libraries - spider plots Pin
Wjousts6-Jun-12 4:12
Wjousts6-Jun-12 4:12 
GeneralChange the wallpaper Pin
Weli055-Jun-12 17:18
Weli055-Jun-12 17:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.