Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello, I have a browser problem

Status
Not open for further replies.

112055

Programmer
May 13, 2002
61
US
Hello,
I have a browser problem. An XML file with data is called, on Netscape the file showed up no problem but when it goes through IE, I got a javascript error that keep pointing to the following code..

Error: 'getTitle().getLiens().0' is null or not an object
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
var theLiens = "";
var theLienholder = "";
if(ucFieldName.indexOf("LIENHOLDER1") != -1 && NumLiens > 0)
{
theLiens = theVehicle.getTitle().getLiens()[0];<~the error points to this line

theLienholder = theLiens.getLienHolder();
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Can anybody shed some light on this mystery?
many thanks

ngai
 
Can you post the code for the getTitle() and getLiens() methods?

Adam
 
Hi Adam,
Thanks for your interest.
The piece of code you ask is owned by another engineer and presumably proven to work on all other products that call that method. This is the first time the javascript integrate with JSP and runs on IE. I've tested the same piece of code on Netscape, no problem at all.
I have found one thing which I suspect all along, is this method. getClass() is not an IE thing.
I might have to take other alternative to this. But once again, thanks Adam.

Ngai
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top