IE input event OnChange?

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

User avatar
wvoyance
Forum Contributor
Posts: 135
Joined: Tue Apr 17, 2012 8:24 pm

Re: IE input event OnChange?

Post 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>
Last edited by wvoyance on Thu Jun 28, 2012 8:21 pm, edited 1 time in total.
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: IE input event OnChange?

Post 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
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
wvoyance
Forum Contributor
Posts: 135
Joined: Tue Apr 17, 2012 8:24 pm

Re: IE input event OnChange?

Post 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?
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: IE input event OnChange?

Post 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
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
wvoyance
Forum Contributor
Posts: 135
Joined: Tue Apr 17, 2012 8:24 pm

Re: IE input event OnChange?

Post 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.
Post Reply