Obtaining a value from a field before submission

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 26th, 2005, 12:08
Junior Member
Join Date: Sep 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 26th, 2005, 19:15
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 5th, 2005, 18:41
New Member
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
obtaining, value, field, before, submission

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 15:52.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42