Run query on page load

by Peter Tyrrell Monday, October 17, 2005 10:39 AM

To run a canned query when a web page is loaded, instead of a user having to manually begin the query by clicking a link:

<head> <script type="text/javascript"> window.location.replace("http://localhost/dbtw-wpd/exec/dbtwpub.dll ?AC=QBE_QUERY&TN=cars&RF=Full+information&QY=Findall"); </script> </head>

Obviously the query itself will change depending on your needs, but the key is to set the window.location to the canned query url.


blog comments powered by Disqus

Month List