aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Name to a function ! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Name to a function !" Watch "Name to a function !" New topic
Author

Name to a function !

Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 335
WHen i call the function my 2 alert shows:

[object]
null

My print line gives me the correct name, can anyone see something that is wrong here.....

The onblur is replaced with frank, otherweise i cant add this topic, i get i error mesage ....






Frank
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1318

Originally posted by Frank Jacobsen:
i get i error mesage ....


what is "i" means ?



Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
you can chaneg your onblur to be just onblur="yourFunc(this)"

In the future if you want to reference an object, you need to use document.getElementById or document.formName.elementName. IE IS BAD in the fact that if it can not find a variable named XXXX, it looks for form element ids/names that are XXXX. No other browser does that.

Another IE quirk is the name and id have to be the same if you use document.getElementById

Eric
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Name to a function !
 
Similar Threads
input field in jsp "between disapers"
Problem border / gif ????
cursor place i text field ????
problem with mouse over "alt"
Javascript works in explorer but not in mozillza ???