Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8090
| From | Dizzee <slightlyandy@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | multi browser forms issue |
| Date | 2011-11-06 14:07 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <a9622d31-d06a-4886-8a6d-b90e8a1781ef@o19g2000vbk.googlegroups.com> (permalink) |
I'm baffled...
how can I make a simple button multi browser compatible.. or at least
the top 5 browsers....
thank you
<?php
echo date("H:i:s");
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Button Test</title>
</head>
<script type="text/javascript">
function b_changeImage()
{
document.images["BigButton"].src= "big_button_purple_over.png";
return true;
}
function b_changeImageBack()
{
document.images["BigButton"].src = "big_button_purple.png";
return true;
}
function b_handleMDown()
{
document.images["BigButton"].src = "big_button_white.png";
return true;
}
function b_handleMUp()
{
b_changeImage();
return true;
}
function formSubmit()
{
alert("clicked");
document.getElementById("dataform").submit();
}
</script>
<body>
<form name="dataform" method="post" action="button.php">
<input type="text" name="one" id="one" value="who won">
<br>
<input type="text" name="two" id="two" value="you too">
<br>
<input type="text" name="three" id="three" value="three dom">
<br>
<input type="text" name="four" id="four" value="go forth">
</form>
<A href="javascript:formSubmit()" onMouseOver="return
b_changeImage()" onMouseOut= "return b_changeImageBack()"
onMouseDown="return b_handleMDown()" onMouseUp="return
b_handleMUp()"><img id="BigButton" src="images/big_button_purple.png"
class="bigbutt" alt="Big Button"></A>
<?php
echo "<br>";
foreach ($_POST as $key => $value) {
echo "$key => $value<br>\n";
}
?>
</body>
</html>
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
multi browser forms issue Dizzee <slightlyandy@gmail.com> - 2011-11-06 14:07 -0800
Re: multi browser forms issue Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-06 22:38 +0000
Re: multi browser forms issue David Mark <dmark.cinsoft@gmail.com> - 2011-11-07 04:40 -0800
Re: multi browser forms issue Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2011-11-07 14:01 +0100
Re: multi browser forms issue Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-07 14:13 +0100
Re: multi browser forms issue Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2011-11-07 14:58 +0100
Re: multi browser forms issue Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-07 15:51 +0100
Re: multi browser forms issue "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-11-07 16:08 +0200
Re: multi browser forms issue David Mark <dmark.cinsoft@gmail.com> - 2011-11-07 13:05 -0800
Re: multi browser forms issue Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2011-11-07 23:07 +0100
Re: multi browser forms issue Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-07 23:26 +0100
Re: multi browser forms issue Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2011-11-09 20:17 +0100
Re: multi browser forms issue Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-10 18:42 +0100
Re: multi browser forms issue Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2011-11-11 23:38 +0100
csiph-web