on 01-18-2006 8:15 AM
Hello !
I would insert an anchor in a jsp to view it on particular place.
I've inserted in "page.jsp" :<a name="test"/>
I called my jsp in JSPDynPage like :
"page.jsp#test"
But it doesn't work...
Could you help me please ?
Thanks.
Delphine.
Hi,
I sometimes switched to using Javascript, which solved the problem. e.g. <a href="#" onclick="somemethod()">
where somemethod() would reload the page/frame with someurls#someanchor.
good luck!
Roelof
Message was edited by: R. Knibbe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You insert something like this somewhere in your jsp:
<script language="Javascript">
function somemethod() {
this.location.href='someurl#someanchor';
}
</script>
It is not tested.
If you have Javascript errors, look for a yellow triangle in the left bottom of your screen (double click it). In Firefox there is a javascript console.
Some Javascript resources/references:
www.w3schools.com/js/default.asp
javascript-reference.info
javascript.about.com/od/reference
Good luck,
Roelof
Message was edited by: R. Knibbe
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.