[FX.php List] [off] JQuery question

Chris Hansen chris at iViking.org
Mon Aug 4 10:10:50 MDT 2014


Bob,

Yes, you need to use the optional callback parameter of load to do that last bit via a callback.  Something like this:

.load(page_id, function (response, status, xhr) { $('.the_fee').html('this probably will not work'); });

That's the load bit at any rate.  You could also stick another parameter in load to pass in those server variables if you wanted.

HTH

--Chris

On Aug 3, 2014, at 2:51 PM, Bob Patin <bob at patin.com> wrote:

> I’m trying to do this:
> 
> a) load a DIV with a page - this works fine
> b) load a DIV inside the loaded page with a variable 
> 
> Here’s what I have:
> 
> $('.main')
> 	.html('<div align="center"><img src="images/ajax-loader_large.gif"></div>')
> 	.fadeOut(100)
> 	.load(page_id)
> 	.fadeIn(200);
> 			
> $('.the_fee').html('this probably will not work');   
> 
> The text displayed above never loads; is it because the DIV ‘.main’ hasn’t finished loading? Do I need to put a callback in there, and if so, how do I structure it?
> 
> Thanks,
> 
> Bob
> 
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> FileMaker 9, 10, 11, 12 & 13 Certified Developer
> http://www.longtermsolutions.com
> -
> iChat: bobpatin at me.com
> Twitter: bobpatin
>> FileMaker Consulting 
> FileMaker Hosting 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