[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 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 ( NameText etc etc ) isn't working. You can see the page at: http://www.ispycreativity.com/concept07.htm the relevant jQuery is at http://www.ispycreativity.com/

[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 = window.loc

[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 do

[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

[jQuery] Re: .load() callback

2009-01-10 Thread Mike Alsup
> I've read through both the link you suggested > andhttp://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips... > but I can't understand how I would make event delegation work for me. > > This is what I attempted: > > function watchLinks() >   { >     $("a").click(function(e) >    

[jQuery] Re: .load() callback

2009-01-10 Thread BlueStunt
I've read through both the link you suggested and http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips.aspx#tip12 but I can't understand how I would make event delegation work for me. This is what I attempted: function watchLinks() { $("a").click(function(e) { v

[jQuery] Re: .load() callback

2009-01-10 Thread Mike Alsup
> I currently have a problem with the site I am designing, I'm using jQuery to > load the content via AJAX, however. The script I'm using to watch for when > the user clicks a link is: > > function watchLinks() >   { >     $("a").click(function() >     { >       var youWantToGoTo = > $(this).attr(

[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 wrote: > > I don't see any click event handlers, and from what it looks you can't > tell visually if the load() wa

[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" wrote: > Strange... > > i'm loading html inside a div, and have this callback: > >  

[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 opaci

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

2007-05-03 Thread summea
I'm still working on this problem, (and I have poured over the jQuery group trying to find any answers,) and I'm realizing that maybe it's not the callback's fault. I'm thinking it might be more of a problem with (not only me,) but the fact that when you click on any folder in the file tree, the

[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.