Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to pass an attribute to a request?

 
Giomar Guevara
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I want to pass an attribute to the request with javascript.I tried with the following code but when I do a request.getParameter("kbaseId")the attribute gets no value, just ""....

case (112)://P tercer popup
window.top.frames['main'].location.href="../flagKBaseAsProduction.do?refreshTree=true&kbaseId="+ currentKbId;
return;

What could be wrong?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the value of currentKbId reflected in the URL that shows in the address bar?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. The correct term is "parameter". The term "attribute" has multiple other meanings.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic