Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GET method and parameters embeded in URL  RSS feed

 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a rather strange requirement, and since it's complex I'll try to simplify the probelm.

Assume I have a URL with emebedded parameter in the "action" attrbute of the form. Now I have other parameters in the form as well, and when I hit submit, only form paramters are posted by the browser and not the one embbedded in the URL. Here is a sample example --



Now, I want "dummy" as well as "name" parameters to be passed to "testmethod.jsp" but only "name" is passed. I cannot make "dummy" as a hidden variable, because actually in the entire complicated process, this form is dynamic content and action tag needs to have the embeded parameter in it (otherwise I'll have to lot of parsing and modifying the form itself to include a hidden variable in my code). I cannot change method to POST either.

What else can be done here?? Any pointers will be highly appreciated

TIA,
- Manish

[ April 21, 2006: Message edited by: Manish Hatwalne ]
[ April 21, 2006: Message edited by: Bear Bibeault ]
 
A Saari
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how about using a hidden field

<INPUT TYPE=HIDDEN NAME="dummy" value="aasd">

Amy
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by A Saari:
how about using a hidden field

<INPUT TYPE=HIDDEN NAME="dummy" value="aasd">

Amy


As he/she already said that he can not make use of hidden field. So, now its out of discussion.

You can use JavaScript to get the action attribute of form element and concat it with the name parameter and then submit the request through JavaScript.
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

As he/she already said


It is HIM
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!