Hi,

I'm running the exact code and do not get any IE7 hangs:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/js/prototype.js"></script>
<script type="text/javascript">
Event.observe(window, 'load', function() {
    Event.observe($('btn'), 'click', function() {
        var j = ' {"easting": "518353", "northing": "168119"} ';
        var c = j.evalJSON();
        alert(c.easting);
    });
});
</script>

</head>

<body>
<input type="button" id="btn" name="test" value="poo" />
</body>
</html>

Regards,
Kevin

gingerbbm wrote:
> Dear all
>
> I'm looking for inspiration. Take a look at this code:
>
> http://pastie.org/313941
>
> In a simple HTML page this does what one would expect.
> But the exact same code on a page in my application hangs IE7 on the
> evalJSON() line (eventually I get a "Stop running this script?"
> prompt).
>
> I would appreciate absolutely any suggestions as to why this might be
> happening.
>
> Thanks
> Stuart
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to