I have an MVC application with several forms. When the form is submitted, it passes the coordinates of the gps users to the server. I also want to give clients the current time and time.
Does anyone have any ideas on the best way to do this?
Forms are standard html formats and use basic submit.
My form will look like below. So, what is the best way for me to bind a javascript date and time value to a send call?
@using (Ajax.BeginForm("CheckIn", "Home", "Nothing", new AjaxOptions { }))
{
<fieldset>
<p>Move your Tile here to let those around you see it...</p>
<input type="hidden" name="lat" id="hckLat" value="" />
<input type="hidden" name="lon" id="hckLon" value="" />
<input type="hidden" name="date" id="hckDate" value="" />
<input type="submit" value="Check In!" />
</fieldset>
}
source
share