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 9168767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:42:16+00:00 2026-06-17T15:42:16+00:00

I am using this cool script http://qpoit.com/marcofolio_demo/apple_search/ however when I click on a search

  • 0

I am using this cool script http://qpoit.com/marcofolio_demo/apple_search/ however when I click on a search result, I want it to be added as html content to an id which I will use like . I know this is done with $(“#displayContent”).html(data); however I need the content of search result that I clicked on to be and not all the results found. Please help

  • 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-06-17T15:42:17+00:00Added an answer on June 17, 2026 at 3:42 pm

    The rpc.php-file of the search, contains the function, which generates the output of the search.
    In line 29, change the content to a JavaScript-function, which does this work for you.

    // Used in line 29 in rpc.php
    echo '<a href="'.$result->url.'">';
    
    // Change it to something like
    echo '<a onclick="applyContent('.$result->url.')">'
    

    After that, head back to the index.html (or the file in which you are using the apple-search), make sure jQuery is loaded and add something like this:

    <script type="text/javascript">
    // Use the same function name, as in the php-file
    function applyContent (resultURL) {
        // Use jQuerys get-function to get the content of the file you've found in the search
        $.get(resultURL, function(data) {
            // Change '#finalResult' to the css-selector, of the element, which should contain the result at the end
            $('#finalResult').html(data);
        });
    }
    </script>
    

    Once you click on a search-result, it should make it the content of #finalResult, or whatever element you choose.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tested this Jquery script with my site http://cool-javascripts.com/jquery/add-icons-to-your-links-automatically-using-jquery-css.html At present the
I found this script for warning message here: http://www.red-team-design.com/cool-notification-messages-with-css3-jquery In the script it is
Using this page, http://developer.android.com/sdk/compatibility-library.html , I have installed the Android Support Package, added a
Using this tutorial: http://www.c-sharpcorner.com/uploadfile/UrmimalaPal/creating-a-windows-phone-7-application-consuming-data-using-a-wcf-service/ I have created sample/hello world application on the windows phone
After seeing this post http://www.ewanleith.com/blog/900/10-million-hits-a-day-with-wordpress-using-a-15-server I changed my server from apache2 to nginx. I
I'm using this cool image slider http://www.jscraft.net/demo/plugins/filters/ , but as you can see, using
I found this sliding panel script I like at http://www.webdesignerwall.com/demo/jquery/ , (#1 Sample Slide
I have a script that I found at http://www.red-team-design.com/cool-notification-messages-with-css3-jquery , but I'm having a
i use this example as a base: http://jqueryui.com/demos/autocomplete/#combobox its cool. But if you type
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question

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.