Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 25th, 2005, 02:03 AM
ASP_man ASP_man is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 55 ASP_man User rank is Private First Class (20 - 50 Reputation Level)ASP_man User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 23 m 14 sec
Reputation Power: 0
Submit form from ASP code (no JS)

I am faced with a tricky prob. I need to develop an ASP (an intermediary page - NO USER INTERACTION), the core requirement being that I cannot use JavaScript (for JavaScript-disabled browsers). Based on a criteria, I need to submit the form in the ASP (which contains hidden INPUT elements). This has to be done in the code -

Code:
else if (prodNameError) then
............
.............
else
	<SUBMIT THE FORM HERE>


I cannot do a Response.Redirect, coz the form parameters would not get passed and I cannot use document.form.submit() ((No JavaScript permitted). Is there any way in which I can accomplish this?

Reply With Quote
  #2  
Old August 25th, 2005, 10:06 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,776 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 8 h 27 m 42 sec
Reputation Power: 470
Think about it...logically, you are trying to perform a client-side event from server-side code.

Reply With Quote
  #3  
Old August 26th, 2005, 02:55 AM
RadioactiveFrog's Avatar
RadioactiveFrog RadioactiveFrog is offline
Senior Glowing Wizard
ASP Free God 7th Plane (8000 - 8499 posts)
 
Join Date: May 2005
Location: Sussex
Posts: 8,223 RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 4 Days 3 h 46 m 30 sec
Reputation Power: 326
Send a message via MSN to RadioactiveFrog
Facebook
if the user has not got any interaction with the form then why are you using a form. In PHP i would just assign them to a session and use a header redirect to the next page where the contents of the sesson variables can be used. I dunno if this helps your situation or if in deed it can be don ein asp....just a thought tho as you are not really needing a form!!

Reply With Quote
  #4  
Old August 26th, 2005, 03:44 AM
ASP_man ASP_man is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 55 ASP_man User rank is Private First Class (20 - 50 Reputation Level)ASP_man User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 23 m 14 sec
Reputation Power: 0
Quote:
Originally Posted by RadioactiveFrog
if the user has not got any interaction with the form then why are you using a form. In PHP i would just assign them to a session and use a header redirect to the next page where the contents of the sesson variables can be used. I dunno if this helps your situation or if in deed it can be don ein asp....just a thought tho as you are not really needing a form!!


I am modifying old code (done by someone esle) in this intrmediary page. My app talk to another applicaiton which requests the parameters as Request.Fom ("data") and therefore I have to use form.

The problem was that this intermediary page was done using Javascript. The new requirement states that javascript could not be used.

Anyway problem solved. The application my app talks to is modified to Request.QueryString as I see that was the fastest solution . I guess..

Reply With Quote
  #5  
Old August 26th, 2005, 04:25 AM
RadioactiveFrog's Avatar
RadioactiveFrog RadioactiveFrog is offline
Senior Glowing Wizard
ASP Free God 7th Plane (8000 - 8499 posts)
 
Join Date: May 2005
Location: Sussex
Posts: 8,223 RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)RadioactiveFrog User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1Folding Points: 160271 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 4 Days 3 h 46 m 30 sec
Reputation Power: 326
Send a message via MSN to RadioactiveFrog
Facebook
Quote:
Originally Posted by ASP_man
I am modifying old code (done by someone esle) in this intrmediary page. My app talk to another applicaiton which requests the parameters as Request.Fom ("data") and therefore I have to use form.

The problem was that this intermediary page was done using Javascript. The new requirement states that javascript could not be used.

Anyway problem solved. The application my app talks to is modified to Request.QueryString as I see that was the fastest solution . I guess..

oh right i see. It is always difficult modding old code!! Glad you got it sorted though!!

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Submit form from ASP code (no JS)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT