Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automatically submit info w/o hitting the submit button

Status
Not open for further replies.

cic

Technical User
Apr 12, 2001
28
US
i have set up a page with two frames. the top frame allows you to search for date, course, and state. the results are displayed in the bottom frame.

what i am trying to do is select a specific date, course, and state by hitting a link from a previous page and then have the information automatically pull up in the bottom frame w/o hitting the submit button.

is there a way to do this?

thx
 
Yes, I am a little unclear iof you meant that the user would choose the values then hit a link, or if the user had already chosen the values and you just want to display a link.

If they have already chosen the values than you can write them into the link and retrieve them using Request.QueryString:
Code:
example link: <a href=&quot;mypage.asp?date=01/01/2001&course=201&state=ca&quot; target=&quot;bottomFrameName&quot;>Click me to see info</a>&quot;

and then reading those values would be:
Request.QueryString(&quot;date&quot;) etc

Now if they nee to choose the criteria and then click the link, you may as well use a form and submit button, like so:
Code:
<form method=&quot;POST&quot; action=&quot;myPage.asp&quot; target=&quot;bottomFrameName&quot;>   etc


Anyways, hope I covered what you were looking for,
Tarwn [sub]01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101 [/sub]
[sup]29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19[/sup]
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048
 
You can use the javascript method Form.submit() to submit a form from wherever you want. I imagine you can do the same thing with client VBS, as well. It sounds like what you're trying to do is appropriate for this kind of clientside operation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top