S.Isaac Dealey wrote:
> last I knew javascript try-catch wasn't cross-browser... I think IE
> allows it but Mozilla browsers tell you that you can't use the keyword
> "try" when you attempt it. Or at least that was my experience
> previously.
Nope, it's definitely cross-browser. Drop this into the Mozilla
addressbar to test:
javascript:try { 1 == 1; } catch (e) { }
It should write out "true" if it works, or complain if it doesn't.
I've been using try .. catch with Firefox since v0.8, so it ought to
work everywhere. I also opened up Opera (v7.54u2), and it works there
too.
K.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206425
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54