Hi,
Just a, hopefully quick, javascript syntax question,
I thought this would be an easy one.
Im tring to get a submit button, to "auto click", so as to reload another frame, upon loading of the first frame.
Im just a JS cut and paster ( still learning ) and not sure of the syntax.
I get an "document.details.submit" is null or not an object" error.
I thought naming the form would declare the object, but I must be mistaken. ( PHP and javascript are like apples and cinderblocks. )
I would be most grateful for any help, if its not too much trouble.
So much to learn... so little time....
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
document.details.submit.click();
//--> </SCRIPT>
<form NAME='details' method='get' action='detailed_frame.php' target='right'>
<input type='submit' value='http://www.webdeveloper.com/forum/archive/index.php/More Details...'>
</form>
I also tried...
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
document.details.details_button.click();
//--> </SCRIPT>
<form NAME='details' method='get' action='detailed_frame.php' target='right'>
<input type='submit' NAME='details_button' value='http://www.webdeveloper.com/forum/archive/index.php/More Details...'>
</form>
still no good.....
Please pardon a newbe
Thanks again
Virgil
Just a, hopefully quick, javascript syntax question,
I thought this would be an easy one.
Im tring to get a submit button, to "auto click", so as to reload another frame, upon loading of the first frame.
Im just a JS cut and paster ( still learning ) and not sure of the syntax.
I get an "document.details.submit" is null or not an object" error.
I thought naming the form would declare the object, but I must be mistaken. ( PHP and javascript are like apples and cinderblocks. )
I would be most grateful for any help, if its not too much trouble.
So much to learn... so little time....
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
document.details.submit.click();
//--> </SCRIPT>
<form NAME='details' method='get' action='detailed_frame.php' target='right'>
<input type='submit' value='http://www.webdeveloper.com/forum/archive/index.php/More Details...'>
</form>
I also tried...
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
document.details.details_button.click();
//--> </SCRIPT>
<form NAME='details' method='get' action='detailed_frame.php' target='right'>
<input type='submit' NAME='details_button' value='http://www.webdeveloper.com/forum/archive/index.php/More Details...'>
</form>
still no good.....
Please pardon a newbe
Thanks again
Virgil