Hi Charles,
On Thursday 17 May 2007 21:18, Charles St-Pierre wrote:
> I've been trailing a JS error that appears in IE 6 WinXP. Firefox is
> ok.
>
What does the text of the error say? Long shot, but it might help - the error
text will be completely meaningless, but there is a fairly crude black art of
matching errors to see if they resemble the text produced by other error
conditions.
> I had a "handle" option in Sortable.create, but it gave me an error in
> IE...
>
Just a hunch, this has caught me out several times. FF is more forgiving than
IE when it comes to object literals, and will ignore any trailing commas,
e.g.
Sortable.create(
'myDiv',
{
ghosting:true,
handle: 'myHandle', //<-- here is the offending comma
}
);
whereas IE will carp with an unhelpful error that doesn't immediately make it
obvious what the problem is. Could be if you're adding and removing entries
from the sortable options, you left a comma behind somewhere?
> BTW. does any of you know a GOOD solution to troubleshoot javascript
> inside IE for Win? I downloaded Microsoft Script Debugger, it just
> keep crashing.
>
Nope. I use the Script Editor (bundled with >gulp< FrontPage, or with Vis
Studio if you use it. The freebie versions of Vis Studio might have it as
part of them, if you've got 300MB free disk space needs eating up. Script
Editor is more robust that the free debugger, and gives better immediate pane
output on complex objects, but it still sucks. The biggest problem is that it
doesn't recognise inner-scope functions when it comes to setting
breakpoints, so you can't set breakpoints in your code interactively for
1) functions declared as part of a class prototype - i.e. pretending to be
object methods
2) callback functions passed in anonymously
3) anonymous iterator functions used in the spiffy prototype.js Array methods
which together accounts for over 90% of the code that I write. You can add
debugger; statements to the code to stop the debugger inside these functions,
but that's a PITA.
HTH
Dave
--
----------------------
Author
Ajax in Action http://manning.com/crane
Ajax in Practice http://manning.com/crane2
Prototype & Scriptaculous in Action http://manning.com/crane3
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---