Link to home
Start Free TrialLog in
Avatar of kadin
kadinFlag for United States of America

asked on

I have located where the program stops, but why?

The program works until I get to this line:
var txt = document.creatTextNode('go go go go');
Is there some JavaScript rule being broken? Is that the problem line or could it be a line above it? Thanks.

function validate(form) {
   document.getElementById('info-container-g').style.display = 'none';
   document.getElementById('info-container-r').style.display = 'block';
   var errNode = document.getElementById('padding-r'); = 'block';
   var txt = document.creatTextNode('go go go go');
   return false;
<form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="multipart/form-data" onsubmit="return validate(this);">
	<div id='info-container-g'></div>
	<div id='info-container-r'></div>
	<div id='padding-r'></div>
	<input name="subject" type="text" 
		value="" size="35" maxlength="70" /> 
	<input type="image" name="submit" src="submit_button.jpg" width="70" height="21"/>

Open in new window

Avatar of chaitu chaitu
chaitu chaitu
Flag of India image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kadin


Excellent. Thanks so much.
var t=document.creatTextNode("go go go go");

you missed "e" in create, use this

var t=document.creatTextNode("go go go go");