Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Form Processing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Form Processing

 Post Reply Post Reply
Author
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Post Options Post Options   Thanks (0) Thanks(0)   Quote ub3rl337ch3ch Quote  Post ReplyReply Direct Link To This Post Topic: Form Processing
    Posted: 21 March 2005 at 9:03pm
Is there any way that asp can find the value of fields without a form having to be submitted? Is there a way that I can transfer the values from javascript to asp?
Back to Top
zaboss View Drop Down
Senior Member
Senior Member


Joined: 20 August 2002
Location: Romania
Status: Offline
Points: 454
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaboss Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2005 at 2:43am
ASP has no ideea of what is going on in the client browser until he hit the submit button, but JScript is powerfull enough for handling even some complex form checking. The only downsize to JScript is that some people believe that it does horrible things to their computers and turn it down. Even some firewalls may interfere with that.

If it is very important and you cannot rely on JScript, I would do n intermediary temporary page and only in this page I would place the Submit button. That is:

Te user is filling in the form and has 2 choices: Reset and Check. After he use the check button it is taken into a page that checks the values of the form and point him to correct them (if necessary). And only here he has the option of submitting the form. Or, of course, to correct the problems.
Cristian Banu
Soft 4 web
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2005 at 3:57am
Only javascript can really tell what is in the field before its submitted. ASP is server side, not client side.
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2005 at 12:06pm
One of the things I am keen on in asp.net 2.0 where exactly that is possible. returning results from a db based on a form without posting the form. It's called Script Callback by implementing ICallbackEventHandler. Essentially I think it puts some dynamic javascript on the page that accepts DOM responens from the server. Theoretically you can implement something like that in any language thus I think it'll get quite complicated and you have to ensure the browser supports DOM
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Post Options Post Options   Thanks (0) Thanks(0)   Quote ub3rl337ch3ch Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2005 at 5:27pm
Thats what i thought. Doesn't matter now anyway, the reason i wanted to do it like that was so that i didn't have to reload a page to submit details. I decided to just get my submit button to open a new window then submit to it 100ms later... then do a js close after processing the form.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.