[jQuery] Re: .load() doesn't work on first call in FF3 and IE (But works in FF3.5)?

2009-08-26 Thread D A
After a lot more testing, I think I know what's going on. I'm not sure if it's a jQuery issue or javascript in general. I've asked this on the FancyBox group, but thought I'd ask in here too as I have a hunch it's a more universal concept with jQuery that I need to grasp. What my script is

[jQuery] Re: .load() doesn't work on first call in FF3 and IE (But works in FF3.5)?

2009-08-26 Thread Leonard Martin
Looks like a case of asynchronous-itis. You're reading the val() of the load()-ed div before the Ajax call has had a chance to respond. What you'll want to do is add the fancyBox stuff to the callback function for load() like this:

[jQuery] Re: .load() doesn't work on first call in FF3 and IE (But works in FF3.5)?

2009-08-26 Thread D A
Looks like a case of asynchronous-itis. You're reading the val() of the load()-ed div before the Ajax call has had a chance to respond. What you'll want to do is add the fancyBox stuff to the callback function for load() like this:

[jQuery] Re: .load() doesn't work on first call in FF3 and IE (But works in FF3.5)?

2009-08-26 Thread D A
Looks like a case of asynchronous-itis. You're reading the val() of the load()-ed div before the Ajax call has had a chance to respond. What you'll want to do is add the fancyBox stuff to the callback function for load() like this: Leonard: Thanks! You *were* on the right track with that

[jQuery] Re: .load() doesn't work on first call in FF3 and IE (But works in FF3.5)?

2009-08-25 Thread D A
All I can see is you're missing a closing single-quote (') after locatorResults.cfm. Oops. That's a typo on my part in the example. We found out that it's maybe not jQuery that's the issue here. When we run it on the server where we're actually returning content based on the value we're

[jQuery] Re: .load() doesn't work on first call in FF3 and IE (But works in FF3.5)?

2009-08-25 Thread D A
Here's the bit of jQuery we're using: $('#LocatorGoLink').fancybox({                        'hideOnContentClick': false,                        frameWidth: 660,                        frameHeight: 700,                        overlayOpacity: .6,                        padding: 0,