| 4:46 pm on Feb 17, 2012 (gmt 0)|
What error are you getting?
| 6:06 pm on Feb 17, 2012 (gmt 0)|
I'm in IE6. Not sure how to get the error's information.
Anyways, I took out .hasOwnProperty and it works fine. I figured I just don't need that statement. Weird quirk though.
| 6:29 pm on Feb 17, 2012 (gmt 0)|
|Not sure how to get the error's information. |
How did you know there was an error?
| 6:39 pm on Feb 17, 2012 (gmt 0)|
When the code comes to the alert with the .hasOwnProperty, my code catches the error and throws a new error with a custom message to tell the form user there is invalid input.
| 6:52 pm on Feb 17, 2012 (gmt 0)|
Ah OK, you would need to examine the 'message' and 'name' properties of the original error object in your catch block before throwing a new exception.
| 6:54 pm on Feb 17, 2012 (gmt 0)|
I could be wrong about this, but:
dimFeetSelector = $(dimSelect + ' input.rebar-dimension-feet');
dimFeetSelect = dimFeetSelector;
Is this jQuery? If so, I'm not sure what dimFeetSelector would return. Is it an HTMLElement object? Or another jQuery object? The jQuery object defines its own prototype that does not include a hasOwnProperty method. However, it does have a "hasOwn" method (which is a reference to Object.prototype.hasOwnProperty). So if dimFeetSelect is a jQuery object, then you can probably call hasOwn instead of hasOwnProperty (though it doesn't explain why it would work in Chrome).
| 9:03 pm on Feb 17, 2012 (gmt 0)|
dimFeetSelector is an HTMLElement object, and yes, I am using jQuery.