CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Pass Parameters

Print topic Send  topic

Author Message
GreggB
Posted: 06/30/2003, 7:24 AM

I would like to pick up the Date from the clients computer when the page opens and pass the Date parameter back to the “BeforeBuildSelect” Event to process the query using the client’s time zone. Anybody have any ideas?

I have a hidden parameter on the HTML page using NOW() to get the clients date.

Code I’m using in the HTML page to get the clientside Date:

<input type = “hidden” value = "{g_date}" id = "g_date_id" name="g_date">

<script type="text/vbscript">
g_date.value = Month(NOW) & "/" & day(NOW) & "/" & YEAR(NOW)
</script>

Parameter defined with CCS in a grid.
<input class="LightWalkInput" type = “hidden” value="{d_date}" name="{d_date_Name}">


How do I get the g_date into the d_date? Or, is there another way/better approach?

ASP
IIS
MS SQL
CCS 2.1


GreggB
rclayh
Posted: 07/02/2003, 9:35 AM

You could set up a page that in the body onload event submits itself with the data and then send your page in response to that form. I'm not sure how you could otherwise collect it without some form of submit.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.