penders

msg:4418850 | 4:46 pm on Feb 17, 2012 (gmt 0) |
What error are you getting?
|
b_radikal

msg:4418890 | 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.
|
penders

msg:4418901 | 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?
|
b_radikal

msg:4418905 | 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.
|
penders

msg:4418909 | 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.
|
Fotiman

msg:4418910 | 6:54 pm on Feb 17, 2012 (gmt 0) |
I could be wrong about this, but: dimFeetSelector = $(dimSelect + ' input.rebar-dimension-feet'); dimFeetSelect = dimFeetSelector[0]; Is this jQuery? If so, I'm not sure what dimFeetSelector[0] 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).
|
b_radikal

msg:4418959 | 9:03 pm on Feb 17, 2012 (gmt 0) |
dimFeetSelector[0] is an HTMLElement object, and yes, I am using jQuery.
|
|