|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? ![]() |
|
#2
|
||||
|
||||
|
Think about it...logically, you are trying to perform a client-side event from server-side code.
|
|
#3
|
||||
|
||||
|
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!!
__________________
|
|
#4
|
|||
|
|||
|
Quote:
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.. ![]() |
|
#5
|
||||
|
||||
|
Quote:
oh right i see. It is always difficult modding old code!! Glad you got it sorted though!! |
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > Submit form from ASP code (no JS) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|