[jQuery] Re: load callback doesn't wait for completion

2009-09-25 Thread amuhlou
can you post a snippet or test page of how you're using the load method? it's really hard to figure out why it might not be working without any code samples. On Sep 25, 5:07 pm, rodeored in...@reenie.org wrote: How do I get the callback for load() to wait until the load is complete?

[jQuery] Re: .load() callback

2009-01-12 Thread BlueStunt
I've had a minor success now that it's defined inside document.ready, one of the pages is now working, however my main nav bar ( ulli emName/emText /li li etc etc/ul ) isn't working. You can see the page at: http://www.ispycreativity.com/concept07.htm the relevant jQuery is at

[jQuery] Re: .load() callback

2009-01-11 Thread BlueStunt
This still doesn't work, I've stripped it down to this: $(document).click(function(e) { var $linkClicked = $(e.target); if( $linkClicked.is(a) ) { alert(Hi); return false; } }); but nothing registers, the return false doesn't work and neither is

[jQuery] Re: .load() callback

2009-01-11 Thread Mike Alsup
This still doesn't work, I've stripped it down to this: $(document).click(function(e)     {       var $linkClicked = $(e.target);       if( $linkClicked.is(a) )       {         alert(Hi);         return false;       }     }); but nothing registers, the return false doesn't work and

[jQuery] Re: .load() callback

2009-01-11 Thread Ricardo Tomasi
You are defining your watchLinks function outside document.ready, so it's not available. it should look like this (pay attention to the closing brackets/parenthesis, you had extra ones at the end): $(document).ready(function(){ / CHECK URL var pageHash =

[jQuery] Re: load() callback only performs once every two click

2008-12-29 Thread Ricardo Tomasi
I don't see any click event handlers, and from what it looks you can't tell visually if the load() was successful because on the 2nd time the background is already red. On Dec 29, 9:07 pm, Alexandre Plennevaux aplennev...@gmail.com wrote: Strange... i'm loading html inside a div, and have

[jQuery] Re: load() callback only performs once every two click

2008-12-29 Thread Alexandre Plennevaux
hey ricardo, thanks for the input. I found the error: i was actually hiding the load container somewhere else in the code. *sight*... On Tue, Dec 30, 2008 at 5:52 AM, Ricardo Tomasi ricardob...@gmail.com wrote: I don't see any click event handlers, and from what it looks you can't tell

[jQuery] Re: $.load callback calls hide, but element doesn't hide

2008-12-06 Thread Jess Mann
I realized after I posted that the hide() function might be returning as finished as the element is being unhidden. I'm not sure why this would be (doesn't the element's display property get set to inline immediately? Perhaps the display attrib gets set in that way on -every- size and opacity

[jQuery] Re: .load() callback and hide, show DIV problem

2007-05-03 Thread summea
Is there something about using .click with a callback that I don't know? Everytime do a click on a target, the callback is called increasingly multiple times thereafter.