[FX.php List] [OFF] A JQuery question

Bob Patin bob at patin.com
Tue May 21 12:49:50 MDT 2013


Never mind, I think I solved it by moving the function into the page that gets loaded in with ticket pulldowns...


On May 21, 2013, at 1:43 PM, Bob Patin <bob at patin.com> wrote:

> I have a web app that uses JQuery; here's a quick rundown:
> 
> On load of the index page, all of my JS is loaded in; I use some preset session variables to populate the Javascript, so that I can do live calculations of ticket prices.
> 
> HERE'S THE RUB:
> 
> They want to increase the prices for a certain date range; what I need to do is to somehow "update" that Javascript function with these new prices, but since the JS is embedded in my index page, it's not going to reload, and thus my calc isn't going to reflect the new values in my session variables.
> 
> I was thinking about putting the function into its own JS file, but it'll get loaded when the index page loads, because the INCLUDE is going to tell it to... so it'll still have the original prices in it.
> 
> So here is my question:
> 
> Let's assume I have a session var set to equal 10; how do I somehow update my JS function to catch the newly-changed session variable, without reloading the index page?
> 
> I hope my explanation made sense... :)
> 
> 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
> 
> _______________________________________________
> 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