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.
|
|
|
 |
|