IE input event OnChange?

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

Moderator: General Moderators

Re: IE input event OnChange?

Postby wvoyance » Thu Jun 28, 2012 9:47 am

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.

Syntax: [ Download ] [ Hide ]
<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
wvoyance
Forum Contributor
 
Posts: 134
Joined: Tue Apr 17, 2012 8:24 pm

Re: IE input event OnChange?

Postby social_experiment » Fri Jun 29, 2012 5:40 am

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
social_experiment
DevNet Master
 
Posts: 2765
Joined: Sun Feb 15, 2009 12:08 pm
Location: .za

Re: IE input event OnChange?

Postby wvoyance » Fri Jun 29, 2012 6:33 am

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
wvoyance
Forum Contributor
 
Posts: 134
Joined: Tue Apr 17, 2012 8:24 pm

Re: IE input event OnChange?

Postby social_experiment » Sun Jul 01, 2012 4:14 pm

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
social_experiment
DevNet Master
 
Posts: 2765
Joined: Sun Feb 15, 2009 12:08 pm
Location: .za

Re: IE input event OnChange?

Postby wvoyance » Mon Jul 02, 2012 7:19 pm

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.
User avatar
wvoyance
Forum Contributor
 
Posts: 134
Joined: Tue Apr 17, 2012 8:24 pm

Previous

Return to HTML, CSS and other UI Design Technologies

Who is online

Users browsing this forum: No registered users and 1 guest