jkwasson
asked on
Javascript document.request - what does this do?
I am working on making some changes to an app that I did not write. I have encountered some code that I am unsure what it does...
When the link below is clicked, a little calendar page is loaded as a popup so user can selected a date. Here is the code in question:
<img src="../shared/pics/calend ar.gif" border=0 width=16 height=16 alt="Calendar Selection Wizard" onClick="window.dateField= document.r equest.sta rt_date;wi ndow.open( '../shared /asp/cal.a sp','start _date_cale ndar','wid th=255,hei ght=255'); " style="cursor: hand">
what I am particularly interested in is what is that code in the onClick event doing?
When I click on the link in my app I get an error stating that document.request.start_dat e is either null or not an object.
Thanks!
When the link below is clicked, a little calendar page is loaded as a popup so user can selected a date. Here is the code in question:
<img src="../shared/pics/calend
what I am particularly interested in is what is that code in the onClick event doing?
When I click on the link in my app I get an error stating that document.request.start_dat
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks!
Glad it worked out for you!
Batalf
Glad it worked out for you!
Batalf
ASKER
request is the name of a form on this page. I was thinking request was the request object, which I wasn't finding much info on...
I am going to give you the points Batalf because your idea to search the html page for request.start_date is what led me to find out that was the name of a form!
Thanks!