Solved

GO to anchor in include?

Posted on 2003-12-10
6
276 Views
Last Modified: 2010-04-01
If I want to go (link) to a page say myPage.jsp#spot1 and in that page the include (myInclude.jsp) holds the a name for spot1 is therer anyway to do this???  Maybe pass in variable instead and do it in javascript somehow????
////////////////////
referer
///////////////////

<A href="myPage.jsp#spot1">CLick Here</a>

////////////////////
myPage.jsp
///////////////////
<html>
<body>
Welcome to my test page!
<jsp:include page="myInclude.jsp" flush="true" />
</body>
</html>
////////////////////
myInclude.jsp
///////////////////
Not here!<br>
NOt Here!<br>
<a name=#spot1></a>GO here


0
Comment
Question by:894359
  • 3
  • 2
6 Comments
 
LVL 15

Accepted Solution

by:
jimmack earned 500 total points
ID: 9917362
<a name=#spot1></a>GO here

should be:

<a name="spot1"></a>GO here
0
 

Author Comment

by:894359
ID: 9917399
My bad! Just a typo in the sample
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9917400
Well that's the only change that was needed to get it working.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 19

Expert Comment

by:Kuldeepchaturvedi
ID: 9918183
is it working now??
0
 

Author Comment

by:894359
ID: 9921627
Well I figured it out??? I didn't give the whole situation here but my links end in something like this:

details.jsp?incName=fabricExplorer.jsp&cat_id=66669465

I tried:

details.jsp#review?incName=fabricExplorer.jsp&cat_id=66669465

 but the include wouldn't load but I did this and it worked:

details.jsp?incName=fabricExplorer.jsp&cat_id=66669465#review

Is this a fluke?????
0
 

Author Comment

by:894359
ID: 9921674
Only works in IE!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
spring dependency injection using java config 2 85
immutable object concept 5 119
spring example non maven 4 87
main method of string class 3 110
How do we balance the user experience (UX) with reasonable security measures? It can be done, if you keep these fundamentals in mind.
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question