Page 2 of 2

Re: IE input event OnChange?

Posted: Thu Jun 28, 2012 9:47 am
by wvoyance
social_experiment wrote:
wvoyance wrote:retype? You simply need to copy and paste. I don't believe it will wok.
I did copy and paste it. Then i retyped it and it worked; 9.0.8112.16421 is the same version is use.

Code: Select all

<html>
<head> 
 <title>Testing onChange again</title>
</head>
<body>
 <script type="text/javascript" ><!--
	function foo(str)
	{
		alert(str);
	}
 //--></script>
 <form method="get" >
 enter one ISBN:
 <input type="text" name="field1" onchange="foo(this.value);" />
 <button type="submit">Submit</button>
 </form>
</body>
</html>
Here is a snippet i created from scratch; it also works in IE 9
o.k. I have got your version done.
It is because my browser blocked active code.
But my version still cannot.
What is the difference?

<html>
<head>
<title>insert many books</title>
</head>
<body>
<script type="text/javascript"><!--
function start(str){
alert("enetr start");
}
//--></script>
<form method="get">
enter one ISBN:
<input type="text" name="fisbn"
onChange="start(this.value)">
<button type="submit">Submit</button>
</form>
</body>
</html>

Re: IE input event OnChange?

Posted: Fri Jun 29, 2012 5:40 am
by social_experiment
wvoyance wrote:But my version still cannot.
What is the difference?
Honestly i have no idea; My revision isn't the same as the value you pasted (9.0.3 to be precise), though i don't think that could be a factor. IE isn't the smartest or best browser but even for MS it would be a stupid move to remove functionality from a browser when you update it

Re: IE input event OnChange?

Posted: Fri Jun 29, 2012 6:33 am
by wvoyance
social_experiment wrote:
wvoyance wrote:But my version still cannot.
What is the difference?
Honestly i have no idea; My revision isn't the same as the value you pasted (9.0.3 to be precise), though i don't think that could be a factor. IE isn't the smartest or best browser but even for MS it would be a stupid move to remove functionality from a browser when you update it

o.k. I got it.
start is a reserved name?

Re: IE input event OnChange?

Posted: Sun Jul 01, 2012 4:14 pm
by social_experiment
wvoyance wrote:start is a reserved name?
no; a list of those at the url below
http://www.javascripter.net/faq/reserved.htm

Re: IE input event OnChange?

Posted: Mon Jul 02, 2012 7:19 pm
by wvoyance
social_experiment wrote:
wvoyance wrote:start is a reserved name?
no; a list of those at the url below
http://www.javascripter.net/faq/reserved.htm
anyway, but it cause problem in IE9.

You can try it. Simply change the name 'start' everything goes well in IE.