Probably should use $.each( object/array, function ) rather than $(
domObjects ).each( function ).
http://docs.jquery.com/Utilities/jQuery.each#objectcallback
So:
$.each( Data.Music, function(i) {
// this == each object in the Data.Music array
});
Karl Rudd
On Thu, May 1, 2008 at 10:56 AM,
I just posted something around problems with IE counting an object
variable size differently than FF does.
I dont know how to fix it without changing the $.each() statement with
a for() loop.
for(i=0; iJ.length-1; i++){
Karl, thanks -- that's nice but its got the same problem: the length
of the object is 1 item larger in IE than it is supposed to be.
I wonder why jquery adds an extra empty item into the object?!
You've got a stray comma (,) at the end of the last object in the array:
{Band:The Beatles,Title:Help!}, --
Firefox ignores it, IE creates a blank object.
Karl Rudd
On Thu, May 1, 2008 at 11:35 AM, jquertil [EMAIL PROTECTED] wrote:
Karl, thanks -- that's nice but its got the same
OMG !!
Karl, U R the Gr8est!
I should have gone home... but how can you leave work with a silly bug
in your script, right?
The stray comma was of course the culprit.
A, I can go home now..
Dude, if you are in S.F. Bay Area send me a message I will totally buy
you a beer!
*chuckle* Quite alright. I think most programmers have suffered from
TCB (Temporary Comma Blindness), or TSB (Temporary Semi-colon
Blindness) at one time or another. The best cure is usually sleep or
another set of eyes. :)
Karl Rudd
On Thu, May 1, 2008 at 11:46 AM, jquertil [EMAIL PROTECTED]
dont forget TBB, temporary bracket-blindness :)
7 matches
Mail list logo