[FX.php List] [ off ] Quick JQuery question

Bob Patin bob at patin.com
Sun Jun 30 13:16:53 MDT 2013


Did it a different way... I added JQuery to the process page so that it loads the guest page AFTER the PHP has done its thing... works fine...

But I seem to recall someone (Steve Winter?) telling me about a way to have a 2nd process occur after the 1st has concluded...

BP

On Jun 30, 2013, at 1:31 PM, Bob Patin <bob at patin.com> wrote:

> I have a function that adds an element to an array; after that happens I want to do this
> 	
> 	reload a main page; 
> 	reload a subsidiary page that takes the array and makes a table out of it
> 
> Sometimes it works right, sometimes not, when I use this line:
> 
> 	// process GUEST_ADD form
> 	$('.content').delegate('#guestform', 'submit', function(){
> 		var str = $('#guestform').serialize();
> 		$('.content').fadeOut(200).load('guest_process.php?'+str).load('guest.php').fadeIn(200);
> 		window.scrollTo(0, 0);
> 		return false;
> 	});
> 
> So as you can see, I'm submitting a form, processing it with "guest_process.php"; then, I want to reload "guest.php" which in turn calls a page that loads in my array as a table.
> 
> I'm thinking that the 2nd LOAD needs to wait for the first to finish, is that correct, and if so, how do I write it? I vaguely recall having to do this in a page on another project, but can't find the code now.
> 
> Thanks for any help,
> 
> Bob
> 
> Bob Patin
> Longterm Solutions LLC
> P.O. Box 3408
> Brentwood, TN 37024
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> iChat: bobpatin
> AIM: longterm1954
> Twitter: bobpatin
> Google+: http://www.longtermsolutions.com/plus
> --
> FileMaker 9, 10 & 11 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --
> FileMaker hosting and consulting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting_______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list