| Author |
in javascript Pass variable value in a url
|
vidushi srivastava
Greenhorn
Joined: Jan 02, 2013
Posts: 1
|
|
<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
Joined: Apr 08, 2009
Posts: 268
|
|
|
What's wrong with that code?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56201
|
|
|
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.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: in javascript Pass variable value in a url
|
|
|