B
bobo
hello,
I have a script like this
<script language="JavaScript" type="text/javascript">
function cekiraj_vrijeme(ova){
alert("radi");
if (vrijeme.value<25 AND vrijeme.value>-1){
alert("vrijeme je ok");
}else {
alert("vrijem nije ok");
}
return true;
}
</script>
<?php
echo "<form action='$PHP_SELF' method='POST' onsubmit=\"return
checkform(this);\">
<label>Pon: </label> <input type='text' name='pon_od' size='3'
onblur=\"cekiraj_vrijeme(this)\" > - <input type='text'
name='pon_do' size='3' onblur=\"cekiraj_vrijeme(this)\" /><br />
<input type='submit' name='k' value='Unesi' />
</form>";
?>
and, I realize that probably the validation won't work... but I'll work
that out... what's troubling me is that onblur won't work...
Any help is appriciated,
thanks
--
I have a script like this
<script language="JavaScript" type="text/javascript">
function cekiraj_vrijeme(ova){
alert("radi");
if (vrijeme.value<25 AND vrijeme.value>-1){
alert("vrijeme je ok");
}else {
alert("vrijem nije ok");
}
return true;
}
</script>
<?php
echo "<form action='$PHP_SELF' method='POST' onsubmit=\"return
checkform(this);\">
<label>Pon: </label> <input type='text' name='pon_od' size='3'
onblur=\"cekiraj_vrijeme(this)\" > - <input type='text'
name='pon_do' size='3' onblur=\"cekiraj_vrijeme(this)\" /><br />
<input type='submit' name='k' value='Unesi' />
</form>";
?>
and, I realize that probably the validation won't work... but I'll work
that out... what's troubling me is that onblur won't work...
Any help is appriciated,
thanks
--