Re: [jQuery] Ready blocks not always firing

2006-09-26 Thread Brandon Aaron
Glad you where able to narrow the issue down. I would assume that it
is the combination of SWFObject+jQuery and not the general technique
of inline SCRIPT blocks. Looking over the compacted swfobject.js, it
doesn't seem that there should be a conflict.

Brandon

On 9/25/06, Dave Benjamin [EMAIL PROTECTED] wrote:
 Well, I removed some code that was creating the Flash-based MP3 player and
 the erratic behavior on IE went away. The other site that I had this
 problem with had Flash as well, and in both sites I was using the
 SWFObject JavaScript library according to the instructions, by creating a
 DIV to receive the Flash movie, and immediately following that a SCRIPT
 block that loads the movie into the DIV. If I put this code in a
 $(document).ready(...), the problem goes away. However, doing this results
 in the DIV's no-Flash placeholder content displaying for a second before
 being replaced with the SWF, which isn't really desirable.

 I don't know at this point if it's specifically SWFObject+JQuery, or if
 it's due to the general technique of inline SCRIPT blocks that manipulate
 the document.

 Thanks for the help,
 Dave

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Ready blocks not always firing

2006-09-25 Thread Brandon Aaron
The current revision in SVN is 346. A quick glance over the check-ins
didn't show a particular reversion # that the issue you are having was
fixed in. I have been using the latest SVN revision since around 289
and haven't seen this issue.

Brandon

On 9/25/06, Dave Benjamin [EMAIL PROTECTED] wrote:
 On Mon, 25 Sep 2006, Matt Stith wrote:
 
  On 9/25/06, Dave Benjamin [EMAIL PROTECTED] wrote:
 
  Am I the only one here that finds $(document).ready() to be completely
  unreliable? IE seems to be the main culprit. If I don't put the
  $(document).ready() call in a script block after the HTML I'm trying to
  modify, it seems to break every other page load.
 
  That should be fixed in the newest jquery, old versions had problems.

 Which version was it fixed in? I'm experiencing these problems in the
 version with this header:

   * $Date: 2006-08-31 13:26:31 -0400 (Thu, 31 Aug 2006) $
   * $Rev: 249 $

 Thanks,
 Dave

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Ready blocks not always firing

2006-09-25 Thread Dave Benjamin
On Mon, 25 Sep 2006, Brandon Aaron wrote:

 The current revision in SVN is 346. A quick glance over the check-ins
 didn't show a particular reversion # that the issue you are having was
 fixed in. I have been using the latest SVN revision since around 289
 and haven't seen this issue.

I can't find a link anywhere on jquery.com for the latest SVN release, and 
I don't have a Java environment handy to build it with ant at the moment, 
but I did manage to get revision 303 at 
http://jquery.com/src/jquery-svn.js so I tried that. Still having the same 
problem.

One place where the problem occurs for me is here:
http://spoomusic.com/

If you look at the list of links on the left-hand navigation under 
Net.Radio, there should be a link that says (more). If this link does 
not appear (and instead you see the full list of net radio links at page 
load), then the $(document).ready(...) did not fire. One way I'm able to 
reliably produce this effect on IE is to click the spoomusic logo in the 
top-left corner of the page. If I hit reload, it works fine, but if I 
click that logo, the (more) link doesn't show up when the page redraws.

Thanks,
Dave

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Ready blocks not always firing

2006-09-25 Thread Dave Benjamin
Well, I removed some code that was creating the Flash-based MP3 player and 
the erratic behavior on IE went away. The other site that I had this 
problem with had Flash as well, and in both sites I was using the 
SWFObject JavaScript library according to the instructions, by creating a 
DIV to receive the Flash movie, and immediately following that a SCRIPT 
block that loads the movie into the DIV. If I put this code in a 
$(document).ready(...), the problem goes away. However, doing this results 
in the DIV's no-Flash placeholder content displaying for a second before 
being replaced with the SWF, which isn't really desirable.

I don't know at this point if it's specifically SWFObject+JQuery, or if 
it's due to the general technique of inline SCRIPT blocks that manipulate 
the document.

Thanks for the help,
Dave

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/