This is a discussion on "Obtaining a value from a field before submission" within the Classic ASP section. This forum, and the thread "Obtaining a value from a field before submission are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Obtaining a value from a field before submission
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Obtaining a value from a field before submission
Hi Everyone,
I'm trying to do a postcode lookup. I'd like to obtain the value of a text field in a form before submission than pass that value to another asp page (which does the processing then passes the values back) via a hyperlink. I don't want to submit the form as I have another button to do that later when the user has completed the form. I assume I'd have to do this with a Javascript function but I have several problems, I don't seem to be able to get the value and I don't know how to put it into an asp variable to use in the hyperlink. If someone could help me from scratch or suggest an easier way of doing this that would be brilliant, thanks in advance |
|
|
|
#2
|
|||
|
|||
|
You'll need to use a combination of javascript, ASP, and an iframe to do this.
I'll look around for some code I've used to do this before... |
|
#3
|
|||
|
|||
|
hi,
If you want to have a <text field> and enter a value in it and when u submit the value would be taken to next page do this: <form action="yourserver/page.asp"> <input type="text" name="id" /> <input type="submit" name="Submit" value="Submit" /> change the "id" if you want to any filter that the "page.asp" will accept ... This will take <txt> inside text field, add it to the filter and add it the query string on the page. Why do u need Javascript to do it? I hope i didn't get it wrong! |
![]() |
| Tags |
| obtaining, value, field, before, submission |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Advice on obtaining an object using javascript. | Higel | JavaScript Forum | 1 | May 27th, 2008 18:05 |
| Web directory submission! | Cratima | Search Engine Optimization (SEO) | 14 | Nov 3rd, 2007 20:30 |
| Need javascript to set input field value field | jdadwilson | JavaScript Forum | 3 | May 9th, 2007 04:47 |
| validate text field to db field | jtesolin | Classic ASP | 1 | Jul 18th, 2006 17:48 |