Announcement

Collapse
No announcement yet.

OnLoad Command & Handling 2 events

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    OnLoad Command & Handling 2 events

    Bit puzzled over this one......

    I have put in a rotational banner script which runs at the top of all my store pages. There are 5 banners so far, they link to either specific product pages (.../cgi-bin/ss000001.pl?PRODREF=x) or search pages (..../cgi-bin/ss000001.pl?SS=x)

    The links work fine until you follow a link that brings up the search page results - then if you try to follow a banner link again it defaults to the first banner link every time.

    I'm assuming there is some sort of conflict with the javascript used to run the rotating banner and the search function but can't work out what or why.

    Can anyone help?

    thanks

    Anna

    http://www.forbidden-planet.co.uk

    #2
    Hi Anna

    I think the solution for this is to go to 'View | Search Settings' and in the 'Search Results' tab de-select 'Highlight Located Text'. THis means that the page that is shown after search results will be a standard HTML page (rather than one that is parsed by the 'search highlight' script in order to highlight matching words).

    Comment


      #3
      thanks Chris but alas that hasn't worked... maybe it's the script I'm using to call the search pages?

      http://www.forbidden-planet.co.uk/cg...=-1&TB=A&SHOP=

      does that look correct?

      thanks

      Anna

      Comment


        #4
        The code for the search results page is generated by the perl scripts in the cgi-bin. All I can think of is that somehow the code is getting messed up when it is parsed by the perl scripts in the cgi-bin.

        Looking at your code, it looks like the page gets this far...
        Code:
        var link = "http://www.forbiddenplanet.co.uk/index.php?main_page=product_info&products_id=37604"
        but doesn't get any further down the script.

        I'm afraid I'm not a JS guru, and this is rather outside Actinic's remit. Maybe there are other users out there that could help explain why the JavaScript doesn't work correctly on pages in the cgi-bin.

        Comment

        Working...
        X