Solved

GO to anchor in include?

Posted on 2003-12-10
6
280 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

A look at what happened in the Verizon cloud breach.
The recent Petya-like ransomware attack served a big blow to hundreds of banks, corporations and government offices The Acronis blog takes a closer look at this damaging worm to see what’s behind it – and offers up tips on how you can safeguard your…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

617 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