troubleshooting Question

Missing Value From Javascript to Classic ASP

Avatar of Bob Schneider
Bob SchneiderFlag for United States of America asked on
14 Comments2 Solutions11 ViewsLast Modified:

I have a working utility on one domain that sets the exact time that a button is pressed (for logging the start time of a running race).  I moved it to a new domain and am now not passing the time to the classic asp.  Is there a missing jquery reference or javascript that I am not seeing?  Hmmm...  Here is what I have:

The form that sends the request:

                                            <form role="form" class="form-inline" name="set_start" method="post" 
                                            action="set_time.asp?software=<%=sSoftware%>&amp;event_id=<%=lEventID%>&race_id=<%=lRaceID%>">                                             <input type="hidden" id="time" name="time">                                             <input type="hidden" name="submit_start" id="submit_start" value="submit_start">                                             <button type="submit" class="btn btn-primary btn-lg btn-block" name="get_start" id="get_start" value="get_start"><i class="icon-unlock2"></i>Start Now!</button>                                             </form>

The javascript that grabs the time:

    document.getElementsByTagName("form")[3].onsubmit = function() {     var t = new Date().getTime();     document.getElementById("time").value = t; // number of millisecond from 01/01/1970     } </script>

And the asp where the error is returned:

    ephochTime_RaceStart = Request.Form.Item("time")  ' #### EXAMPLE DATA:  1572891578547      'CONVERT DATA TO MONTH USING BIG MONTY'S FORMULA     UTC_RaceStart = DateAdd("s", ephochTime_RaceStart/1000, CDate("1970-01-01 00:00:00"))

It appears that there is no value being returned on the 


Any help would be much appreciated!  I thought I copied everything from the page on the other domain correctly.  It is still working fine there.

Join our community to see this answer!
Unlock 2 Answers and 14 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros