Hi, I have some code working on firefox, but not on explorer, and the error I get isn't very clear ("Object expected"). I have this call to a js function (the onclick has the _ to be able to post this, it's ok on my page):
This should call this function:
In firefox, it works ok, it executes with no errors. When I run this on IE, I only get the "hi" alert, which is rigth before the call to the function, but I don't get the "inside showEventData", that is the first sentence of the function, so the error is somewhere in the middle. I suspect IE has some sort of a problem with the 'ORDER-3' parameter but I don't know. Thanks a lot, Pablo.
Thanks for the replies. The parameter is referenced with the 'arguments' array, that contains all the arguments passed to the function. I'm not using the name attribute anywhere in my page... should it be present and the same as id? I don't think so, I never had this problem before. I tried passing nothing, redefining the function so that it only does an alert. Nothing worked. I guess it has some trouble to include the whole .js file because if I do: alert(functionName), where functionName represents every function of the .js, I get an undefined. I get undefined even with functions that only do alert("hello"). This is strange since it works on firefox. I'll keep trying. Is there any reason why the explorer won't recognize a .js that is working ok on firefox?
Done, Somewhere else I was evaluating a json object, and one of the attributes was called "class". Then, I was doing obj.class. It seems IE doesn't like that very much, but doesn't know how to tell you so. Thanks again.