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

Bob Patin bob at patin.com
Sun Jun 30 17:32:34 MDT 2013


Dale, that does help... I'll have to keep that for when a process takes a while to load.

The one I needed it for happens pretty quickly, and I realized that, since PHP processes first, I simply put a JQuery call at the bottom of my processing page, so that after the processing is done it calls the parent page into which the results are displayed...

Thanks, and thanks to the others who replied; all good info, time to dig a little and figure out some new ways to do things.

Bob

Bob Patin
Longterm Solutions LLC
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
FileMaker 9, 10 & 11 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--
Twitter: bobpatin
AIM: longterm1954
iChat: bobpatin
--
Expert FileMaker Consulting 
FileMaker Hosting for all versions of FileMaker

On Jun 30, 2013, at 3:00 PM, James Dcunha <jdcunha at supportgroup.com> wrote:

> I normally return a status flag value back to the callback function. Based on the flag value it would execute the 2nd process. 
> 
> James 
> 
> Sent from my Phone
> 
> On Jun 30, 2013, at 3:16 PM, Bob Patin <bob at patin.com> wrote:
> 
>> 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
>> 
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
> _______________________________________________
> 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