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, 01: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, 09:06 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 15th Plane (12000 - 12499 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 12,025 Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 12 h 21 m 3 sec
Reputation Power: 628
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, 01: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: 173370 Folding Title: Super Ultimate Folder - Level 1Folding Points: 173370 Folding Title: Super Ultimate Folder - Level 1Folding Points: 173370 Folding Title: Super Ultimate Folder - Level 1Folding Points: 173370 Folding Title: Super Ultimate Folder - Level 1Folding Points: 173370 Folding Title: Super Ultimate Folder - Level 1Folding Points: 173370 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 4 Days 3 h 46 m 30 sec
Reputation Power: 327
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, 02: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, 03: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: 173370 Folding Title: Super Ultimate Folder - Level 1Folding Points: 173370 Folding Title: Super Ultimate Folder - Level 1Folding Points: 173370 Folding Title: Super Ultimate Folder - Level 1Folding Points: 173370 Folding Title: Super Ultimate Folder - Level 1Folding Points: 173370 Folding Title: Super Ultimate Folder - Level 1Folding Points: 173370 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 4 Days 3 h 46 m 30 sec
Reputation Power: 327
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





 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

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





© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek