Can someone tell me why IE is erroring out and not FF?

Ok..this is driving me batty...
This code works just fine in FF 2.0, but not IE6:
function addFavorite(owner,faveUser){
var empRow =
dsNames.findRowsWithColumnValues({"employee":faveUser},true);
if (empRow == ""){
alert('User not found');
return false;
}else{
var faveUserID = empRow.@username;
I have the above function called when I click an Add button
on an Autosuggest form. Works flawlessly in Firefox. But I get a
scripting error with IE. "Error: conditional compilation turned
off".
And the other thing is, this function gets executed when the
page loads. It should only get executed when I click the Add
button. Anyone have a clue? I'm totally lost.... :(
Thanks!
Chris

That cured my problems Kinblas! muchos gracias....now I have
another problem..
I'll post it in another message...
but can you explain why .@username works in FF and not in IE
but ["@username"] works in both?

Similar Messages

Maybe you are looking for