Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 06, 2009 @ 13:07
    Dirk De Grave
    1

    Change navigation/paging behaviour in search results pages

    Just throwing in some ideas on the search result navigation.

    Can't we use some filters on the search form / search result page 

    Reason for this is that I don't want to click the forum tab each time I navigate to a different page (that is in case there's results found in multiple sections). If you've got a large result set - which is not uncommon - it's really annoying to have to click the 'Forum' tab to get to the forum posts and find a relevant post.

    So, how about adding filter options to the search box on top?

     

    Let us know your thoughts on this!

     

    Cheers,

    Dirk

     

  • Ron Brouwer 273 posts 768 karma points
    Jul 16, 2009 @ 14:06
    Ron Brouwer
    1

    I totally agree!

    Another option is to remember the last clicked tab using a cookie like:

    function setCurrent(tabstrip,tab) {
     createCookie(tabstrip.id,tab.id,7)
     }

    function createCookie(name,value,days) {
     if (days) {
      var date = new Date();
      date.setTime(date.getTime()+(days*24*60*60*1000));
      var expires = "; expires="+date.toGMTString();
     }
     else var expires = "";
     document.cookie = name+"="+value+expires+"; path=/";
    }

    function readCookie(name) {
     var nameEQ = name + "=";
     var ca = document.cookie.split(';');
     for(var i=0;i < ca.length;i++) {
      var c = ca[i];
      while (c.charAt(0)==' ') c = c.substring(1,c.length);
      if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
     }
     return null;
    }

    Hope this helps.

    Ron

Please Sign in or register to post replies

Write your reply to:

Draft