javascript doesn't work with FORM tag
-
(SORRY FOR MY BAD ENGLISH) hi i have a code , the javascript in the code is working perfectly , but when i surround the code with
javascript stopped working , i tried to remove that
then javascript continue working , please help me how can i solve this problem ? the code is
* Name * Places Select Roma italy totti *
-
(SORRY FOR MY BAD ENGLISH) hi i have a code , the javascript in the code is working perfectly , but when i surround the code with
javascript stopped working , i tried to remove that
then javascript continue working , please help me how can i solve this problem ? the code is
* Name * Places Select Roma italy totti *
williamroma wrote:
when i surround the code with <form> </form> javascript stopped working , i tried to remove that <FORM> then javascript continue working ,
please help me how can i solve this problem ?What problem, and where is the Javascript?
Binding 100,000 items to a list box can be just silly regardless of what pattern you are following. Jeremy Likness
-
(SORRY FOR MY BAD ENGLISH) hi i have a code , the javascript in the code is working perfectly , but when i surround the code with
javascript stopped working , i tried to remove that
then javascript continue working , please help me how can i solve this problem ? the code is
* Name * Places Select Roma italy totti *
-
JavaScript goes in the head tag and not in the form tag.
There are only 10 types of people in the world, those who understand binary and those who don't.
ryanb31 wrote:
JavaScript goes in the head tag and not in the form tag.
Not true! Try this in your favourite browser:
<html>
<body>
<form>
<script type="text/javascript">
document.write("Hello World!");
alert("Told ya!");
</script>
</form>
</body>
</html>Putting it in head might be good style, but it's not for function. Cheers, Peter
Software rusts. Simon Stephenson, ca 1994.
-
ryanb31 wrote:
JavaScript goes in the head tag and not in the form tag.
Not true! Try this in your favourite browser:
<html>
<body>
<form>
<script type="text/javascript">
document.write("Hello World!");
alert("Told ya!");
</script>
</form>
</body>
</html>Putting it in head might be good style, but it's not for function. Cheers, Peter
Software rusts. Simon Stephenson, ca 1994.
-
ryanb31 wrote:
JavaScript goes in the head tag and not in the form tag.
Not true! Try this in your favourite browser:
<html>
<body>
<form>
<script type="text/javascript">
document.write("Hello World!");
alert("Told ya!");
</script>
</form>
</body>
</html>Putting it in head might be good style, but it's not for function. Cheers, Peter
Software rusts. Simon Stephenson, ca 1994.
thanks for your replay i don't mean that javascript doesn't work with me no it words but if i call any javascript function into a form tag , this doesn't work i will explay this works
-
ryanb31 wrote:
JavaScript goes in the head tag and not in the form tag.
Not true! Try this in your favourite browser:
<html>
<body>
<form>
<script type="text/javascript">
document.write("Hello World!");
alert("Told ya!");
</script>
</form>
</body>
</html>Putting it in head might be good style, but it's not for function. Cheers, Peter
Software rusts. Simon Stephenson, ca 1994.
and i don't want to put the javascipt in the same file with html , cos i have many many functions :(
-
thanks for your replay i don't mean that javascript doesn't work with me no it words but if i call any javascript function into a form tag , this doesn't work i will explay this works
There must be something else wrong. Buttons with javascript actions work just fine in forms. Peter
Software rusts. Simon Stephenson, ca 1994.
-
and i don't want to put the javascipt in the same file with html , cos i have many many functions :(
In your html file, you can always write
<script type="text/javascript" src="myurl/myscript.js"></script>
That keeps your script in a separate file for ease of maintenance and reuse. Peter
Software rusts. Simon Stephenson, ca 1994.
-
thanks for your replay i don't mean that javascript doesn't work with me no it words but if i call any javascript function into a form tag , this doesn't work i will explay this works