[FX.php List] Browser problem
Michael Layne
fx at 9degrees.com
Tue Aug 8 15:18:34 MDT 2006
Florence,
I use this all the time - works fine in all browsers...
// javascript:
<script type="text/javascript" language="javascript">
// <!--
function doCheck() {
if (document.auth.user.value == "") {
alert("Please provide a user name.");
document.auth.user.focus();
return;
}
if (document.auth.pass.value == "") {
alert("Please provide an password.");
document.auth.pass.focus();
return;
}
document.auth.submit();
}
// -->
</script>
//form:
<form action="authenticate.php" method="post" name="auth"
onsubmit="doCheck();return false;">
<table id="login">
<tr>
<td class="desc">user:</td>
<td><input type="text" name="user" size="20" /></td>
</tr>
<tr>
<td class="desc">password:</td>
<td><input type="password" name="pass" size="20" /></td>
</tr>
<tr>
<td></td>
<td>
<!-- <a href="./" onclick="doAuth(); return false;"
class="button">login</a> --> // this works as well... an href...
<input type="image" src="i/login.png" value="submit" /> // this is
an input...
</td>
</tr>
</table>
</form>
HTH,
Michael
On Aug 7, 2006, at 8:54 PM, FHASELTINE at aol.com wrote:
> Erik
> The problem I had with windows using the Java Script was one for
> validating fields before posting them. The Java Script does work
> with the strange characters in them "//-->" I probably should find
> another script that would do the same thing. I am requiring that
> the name and password field be filled in before the Submit is accepted
> I will look for another script to do the work.
> thanks
> Florence Haseltine
> AIM: Fhaseltine
> fhaseltine at aol.com
> 240-476-7837
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
Michael Layne | 9 degrees development | www.9degrees.com |
404.226.7835 | Skype: LayneBay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060808/7dd74876/attachment-0001.html
More information about the FX.php_List
mailing list