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

Reload Page with changing/adding get-Parameters  RSS feed

 
Mario Schwaiger
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I was looking on the Internet but I still don't find any solution for my Problem, so it would be great if someone of you could help me solving my problem:

When I load my homepage a procedure is checking the get-parameters and according to this the page behavior changes.
Now I have an image and when I click on it the homepage should reload and set the get-parameter.

Currently I have it in javascript... Maybe it doesn't work because the parameter "lang" isn't set at all. But maybe you know other solutions? The Homepage is made with JSP so it won't be a Problem to use it for writing the parameter... Just how?



Thanks!!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, yeah. If there's no element with an id of lang, the script will abort.

If you want to visit the same page with new params, you'll need to build the appropriate URL with new params attached.

 
vijin das
Ranch Hand
Posts: 129
Firefox Browser Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
craeate a url string which will add some value to your options and redirect to that url ..it can be same page with with optopns attached to the url suppose if your firstpage is index.jsp make it index.jsp?option=value using js add the vaule
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!