Results 1 to 6 of 6

Thread: Bacl to search results link on listing detail page?

  1. #1
    Join Date
    Feb 2005
    Location
    BiH
    Age
    39
    Posts
    811

    Default Bacl to search results link on listing detail page?

    Hi to all, and happy new year.

    I'm looking for solution to put link on listing detail page to search results page, but I don't want to use javascript back function . Is there any other way that I can get referring searhresults page url to put it on listing detail page.

    If I use javascript back link (<a href="javascript: history.go(-1)">Back</a>) I have problem with displaying banners with openx application (and probably with any other application) because I need that page reload (so that application can send new banner), and not just to show already shown page from cache.

    Thank you for any hint.

    Regards

  2. #2
    Join Date
    Jan 2007
    Posts
    403

    Default Re: Bacl to search results link on listing detail page?

    I seem to recall that:

    <a href="javascript: history.go()">Back</a>

    (Note the omitted "-1") Goes back AND reloads the page, let me know if I recall correctly

  3. #3
    Join Date
    Feb 2005
    Location
    BiH
    Age
    39
    Posts
    811

    Default Re: Back to search results link on listing detail page?

    That doesn't work at all (I use mozilla)

  4. #4
    Join Date
    Feb 2005
    Location
    BiH
    Age
    39
    Posts
    811

    Default Re: Bacl to search results link on listing detail page?

    this works for me:

    <a href="#" onclick="location.replace(document.referrer)"> go back </a>

    it will open referrer page (reloaded).

    So if you want on listing detail page to have "go back" text link, linked back to searchresults page, just use this code:

    Code:
    <a href="#" onclick="location.replace(document.referrer)"> go back </a>
    it will take visitor back to "reloaded" searchresults page, so if you have some dynamic content on searchresults page (like banner rotation script, or dynamically shown image) that you want to refresh every time the page is opened, this is what will work for you.

    I tried also with php: $_SERVER["HTTP_REFERER"]; but it seem it doesn't work on my server, I think I have to configure my server. If some server guru read this, my another question is: What php.ini variable controls $_SERVER["HTTP_REFERER"]; (how to enable it so that I can read refferer url with $_SERVER["HTTP_REFERER"];.

    Thanks, I hope this hint will help someone, I sow few same unanswered questions in forum.

  5. #5
    Join Date
    Feb 2005
    Location
    BiH
    Age
    39
    Posts
    811

    Default Re: Bacl to search results link on listing detail page?

    Need help from Browser gurus,

    I found strange problem in IE 7 with this solution

    This code: <a href="#" onclick="location.replace(document.referrer)"> works if referrer page is home page, but doesn't work if referrer page is searchresults page.

    Works fine in IE 6, and Mozilla. Today I tested with IE7, and got this error: Access is denied.

    Any ideas what is causing this?

    Thank you

  6. #6
    Join Date
    Feb 2005
    Location
    BiH
    Age
    39
    Posts
    811

    Default Re: Back to search results link on listing detail page?

    For now I have this solution:

    Code:
    <!-- [if gt (IE 6)]> HTML don't show to IE 7, and higher<![endif]--> 
    <!--[if !IE]> --> HTML show to all browser except IE <!-- <![endif]-->
    If anyone have some better solution, shoot.

    Thank you

Similar Threads

  1. Search results on listing detail pages
    By serge06 in forum General Help (CLOSED)
    Replies: 13
    Last Post: 04-29-2009, 09:04 AM
  2. Having the title of the listing with no link in search results...
    By Andrea80 in forum General Help (CLOSED)
    Replies: 1
    Last Post: 05-06-2008, 01:26 PM
  3. Map link on search results page
    By tomms in forum General Help (CLOSED)
    Replies: 1
    Last Post: 01-17-2007, 09:46 PM
  4. Link to results from listing detail page
    By hmag in forum General Help (CLOSED)
    Replies: 2
    Last Post: 08-11-2005, 06:13 AM
  5. Search Results within Listing Detail page
    By billy0987 in forum General Help (CLOSED)
    Replies: 0
    Last Post: 06-28-2005, 07:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •