Avatar

Level 4

Hey Bruce, I'm having a problem with the eval funtion returning a null, can you help me?

Here's my code snippet:

var tempRetCust = objFragment.resolveNode("returnCustomerObj");    //this is good

var objCustomer = myCustomerObject;    

tempRetCust

= objCustomer.toSource();    

app.alert("tempRetCust "

+ tempRetCust);       //  the toSource method works great and the alert here returns proper data

var retCust = eval(tempRetCust.value);  

if

(retCust==null ) app.alert ("return cust is null");     // the eval doesn't seem to work and the retCust variable is null.

Thanks!

Elaine