[thelist] Time Triggered AJAX in ASP.NET 2.0

Anthony Baratta anthony at baratta.com
Wed Sep 13 12:27:24 CDT 2006

Use settimeout to call the appropriate AJAX / JS function you are already using.

In such a scenario, I would have a master JS function that takes the form input (collates/folds/spindles/mutilates) and then passes that on to an AJAX function for server-side processing, and then slaps the returned data into the appropriate location.

Just set the timeout clock to call that master function, and it's off to the races. It would act as if the submit button was clicked.

5 Secs seems like a quick refresh. You really need it that often?

-----Original message-----
From: "Rob Smith" rob.smith at lexjet.com
Date: Wed, 13 Sep 2006 10:09:25 -0700
To: thelist at lists.evolt.org
Subject: [thelist] Time Triggered AJAX in ASP.NET 2.0

> Yes yes... all the hype is to have new data without refreshing the page,
> but I feel like I am missing one key piece to make this happen. I'm
> using ASP.NET 2.0 (VBScript), Atlas in Visual Studio 2005, and SQL
> Server 2005. I have a quick report that shows sales performance by
> region for the whole company. In the existing model, it uses Javascript
> settimeout timers to force refresh the page in a Classic ASP/SQL Server
> 2k setting.. I'd like to do the same in AJAX without a complete page
> refresh in the new ASP.NET 2.0 model. 
> So far I've got four drop downs (Time, Who, Type of $, and Region) all
> of which are AJAX enabled. I can select any one of the drop downs to
> view different sales numbers and it works great. The last piece is to
> set a trigger for a time interval (i.e. every 5 seconds). How is this
> accomplished?
> Rob Smith
> LexJet
> rob.smith at lexjet.com
> http://www.lexjet.com
> (800)453-9538
> (941)330-1210 Int'l
> (941)330-1220 Fax
> 1680 Fruitville Road, 3rd Floor
> Sarasota, FL 34236
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> For unsubscribe and other options, including the Tip Harvester 
> and archives of thelist go to: http://lists.evolt.org 
> Workers of the Web, evolt ! 

More information about the thelist mailing list