Using client-side and navigating with parameters
Posted on 2004-08-12
I am still having a problem with my coding. Here's the problem. I have a page, page1, which is written in vbscript and accepts, validates and compares two dates that the user selects. I wnat to redirect them to the right page and pass the date values.
The problem that I am having is the only command I can get to work is the window.open
command and that leads to another can of worms.
On page 1, they select two dates and click on a button to choose whither they want a report or if they want a listing, ie "Report" or "Listing"
on the onclick event of each button, i have a routine which validates the two dates, and compares to ensure the ending date is greater than the beginning date. This routines are written in vbscript and work well etc. If the dates are valid, I want to pass the dates to the next page. The problem is window.location.href and the window navigate command simply won't work. It just sits in the same spot.
For the window.location.href = "page2.asp?bd=" & vbeg & "&ed=" & vend
I don't recieve any error message; the window progression bar appears to be doing something, but it just stays at the same window...
I have also tried this:
vstring= "page2.asp?bd=" & vbeg & "&ed=" & vend
window.location.href = vstring
what am I doing wrong? All I want to do is pass the valid dates to the next page.
any help would be appreciated...