Solved

GO to anchor in include?

Posted on 2003-12-10
6
278 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
Technology Partners: 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

While it may be true that the internet is a place of possibilities, it is also a hostile environment lurking with many dangers. By clicking on the wrong link, trusting the wrong person or using a weak password, you are virtually inviting hackers to …
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

685 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