Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

GO to anchor in include?

Posted on 2003-12-10
6
Medium Priority
?
282 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 1500 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Files go missing when using DFS (Distributed File System) Replication and how to recover them and fix it.
In this article, WatchGuard's Director of Security Strategy and Research Teri Radichel, takes a look at insider threats, the risk they can pose to your organization, and the best ways to defend against them.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

730 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