Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7635883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:32:16+00:00 2026-05-31T07:32:16+00:00

I am developing a web based application in which i have two hyperlinks in

  • 0

I am developing a web based application in which i have two hyperlinks in the left side of the page, and what i’m looking for is that when i click on the one hyperlink it should load the content of another.jsp and display it over present.jsp and if I click next hyperlink it should do the same for third.jsp over present.jsp .

I found something on stackoverflow like:-

javascript–

    function showItem(url) {
$('#right-pane').load(url);

}

link–< a href=”showItem(‘another.jsp)”>item 1

where “right-pane” is the id of div tag where i want the another jsp content to be displayed.

< div id="right-pane" style="position: absolute; width: 988px; height: 649px; z-index: 2; left: 193px; top: 4px">

< /div>

But when i am clicking on item 1 its saying– The requested resource (/test1/showItem(‘another.jsp’)) is not available.

I am using apache tomcat as a server.

Thanks,
Arshad

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:32:17+00:00Added an answer on May 31, 2026 at 7:32 am

    add a class or id t your link

     < a href="'another.jsp" class="link1">item 1</a>
    

    Add this to your header:

    $(document).ready(function() {
        $(".link1").click(function(event){
           event.preventDefault();
           var url =$(this).attr("href");
           $('#right-pane').load(url);
        });
    });
    

    try change this<script type="text/javascript" src="jquery.js"> line to

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
    

    tryed and tested this in ie9:

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
            <title>title</title>
            <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
            <script>
                $(document).ready(function() {
        $(".link1").click(function(event){
           event.preventDefault();
           var url =$(this).attr("href");
    
            $('#right-pane').load(url, function(data) {
            console.log(data);
        });
           console.log(url);
        });
    });
            </script>
        </head>
        <body>
            <div id="layer5" class="style2" style="position: absolute; width: 79px; height: 17px; z-index: 1; left: 11px; top: 15px"><a href="test2.html" class="link1">item 1</a></div> 
            <div id="right-pane" style="position: absolute; width: 988px; height: 649px; z-index: 2; left: 193px; top: 4px"></div>
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a web based application built on codeigniter which will also have a
I'm developing a PHP-based web-application in which you have a form with textarea inputs
We are looking for an approach for developing a web based application which should
When developing a new web based application which version of html should you aim
I am developing a small intranet based web application. I have YSlow installed and
I am developing the web based application which require to check size of any
I'm about to start developing a web-based application that I can best describe as
I am developing a web application which has Chart Controls. I have developed a
I'm developing a new web-based financial application for our company that provides online real-time
We're currently in the process of developing a web-based application which will require the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.