[jQuery] Re: Can't seem to figure out this simple toggle situation...

2009-09-23 Thread morris...@ingenious.org
On Sep 23, 11:11 pm, "morris...@ingenious.org" wrote: > Rick, > > lets assume that you are calling your function on document ready ... > and your select statement is getting the correct image ... with this > line ... (if its not getting called and your not getting the

[jQuery] Re: Can't seem to figure out this simple toggle situation...

2009-09-23 Thread morris...@ingenious.org
Rick, lets assume that you are calling your function on document read ... and your select statement is getting the correct image ... with this line ... (if its not getting called and your not getting the correct image then this needs to be fixed first) var img = $(this).parent().previous(

[jQuery] Re: jQuery in loaded content doesn't work

2009-09-23 Thread morris...@ingenious.org
Matt, Because he is not just binding events, but doing other things i would highly recommend the livequery plugin. Chris On Sep 23, 5:49 pm, Matt Quackenbush wrote: > If you're using jQuery 1.3.x (and you should be), there's no need for the > livequery plugin. > > http://docs.jquery.com/Events

[jQuery] Re: ajax returned data format

2009-09-23 Thread morris...@ingenious.org
Flo, I would suggest using $.getJSON() instead of the straight $.get() if you have the json_encode function available to you (PHP 5.2.x+ should have this). This is because you may have some extra white space at the end of what you are returning now. in your php do this 'ok')); ?> in js do thi

[jQuery] Re: Update Div after ajax submit

2009-09-23 Thread morris...@ingenious.org
Dave, You will need to set the 'success' callback in your ajaxForm options, in your function you would then set the h1 tag to what ever your input fields val was. $('#myForm1').ajaxForm({ success: function(responseText, statusText){ $('h1').html($('#title').val()); } });

[jQuery] Re: jQuery in loaded content doesn't work

2009-09-23 Thread morris...@ingenious.org
Mitch, Try this plug-in. http://plugins.jquery.com/project/livequery Chris On Sep 23, 3:00 pm, mstone42 wrote: > I am trying to convert a website currently implemented in PHP with > server-side includes, to not use only Javascript (and jQuery & AJAX). > The main navigation page has a list of