Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

in javascript Pass variable value in a url

 
vidushi srivastava
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<script type="text/javascript">
d = new dTree('d');
d.add(1,0,'Open The Link','http://111.111.111.111/xyz?prefix=<%=session.getAttribute("Prefix")%>','','_blank');
document.write(d);
</script>


i want to send the session value in the url. How this can be achieved.
 
Albareto McKenzie
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's wrong with that code?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It uses obsolete Java scriptlet expressions for one. Other than that, I guess we'll need to wait for the OP to provide more details.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic