Solved

GO to anchor in include?

Posted on 2003-12-10
6
273 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
java cyclic graphs 15 194
constructor overloading 2 73
error when compiling my project in eclipse luna 30 306
listing all functions in JavaScript 19 105
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now