PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Nov 28, 2014 11:56 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Thu Jun 28, 2012 9:47 am 
Offline
Forum Contributor
User avatar

Joined: Tue Apr 17, 2012 8:24 pm
Posts: 135
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.

Top
 Profile  
 
PostPosted: Fri Jun 29, 2012 5:40 am 
Offline
DevNet Master
User avatar

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


Top
 Profile  
 
PostPosted: Fri Jun 29, 2012 6:33 am 
Offline
Forum Contributor
User avatar

Joined: Tue Apr 17, 2012 8:24 pm
Posts: 135
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?


Top
 Profile  
 
PostPosted: Sun Jul 01, 2012 4:14 pm 
Offline
DevNet Master
User avatar

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


Top
 Profile  
 
PostPosted: Mon Jul 02, 2012 7:19 pm 
Offline
Forum Contributor
User avatar

Joined: Tue Apr 17, 2012 8:24 pm
Posts: 135
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group