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

  • Home
  • SEARCH
  • 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 1108887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:09:02+00:00 2026-05-17T02:09:02+00:00

Hi I have created a user message page with this plugin. The grid will

  • 0

Hi I have created a user message page with this plugin.
The grid will show the user inbox and the user outbox(sent) messages. here’s a little code:

    jQuery(document).ready(function() {

       //...some stuff
       currentURL = function() {

            return 'json_member_mail.php?task='+ currentBox;
                    //where current box is either inbox or outbox
       }

       //... alot of stuff

       myGrid = jQuery("#list").jqGrid({

        url:currentURL(),
        datatype: 'json',
        mtype: 'GET',

        //      even more stuff  ....

       }).jqGrid('navGrid','#pager', 
        { 
                        the lil stuff....

            search:true,

                        //the dialog...
                 }

         // the dialog form editing whatever...

   );//grid


});//document.ready

so then when the user clicks on outbox something like this happens:

jQuery("#list").jqGrid('setGridParam',{ url:currentURL(), postData:{lrt:lastReloadTime} }).trigger("reloadGrid"); //where current URL has the GET param task=outbox

it working all great until I use my search filters. for example I search for the messages sent from the user ‘foo’ and it’s all good but when I click on outbox it will still try to show me messages sent by the user ‘foo’ but I want the search filters to be reset.

I tried loading the search dialog on document ready and closing it immediately to get the filter().reset and all that but it doesn’t work :the-built-in-search-filter-box

myGrid.trigger(‘reloadGrid’); has the same behaviour as well

.jqGrid('setGridParam',{    url:currentURL(), postData:{_search:'false'} }).trigger("reloadGrid"); 

would fix my problem but it won’t override the _search param.

any generous suggestions?

  • 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-17T02:09:02+00:00Added an answer on May 17, 2026 at 2:09 am

    lol, So I made one of those stupid mistakes…
    where in the original message I say “// the dialog form editing whatever…” I made a mistake
    yeah I didn’t even bother to write that part on here so what I had there was:

    }).jqGrid('navGrid','#pager', 
            { 
                edit:false,
                add:false,
                del:false,
                search: true,
                refresh:true,
                refreshtext:"Refresh",
                searchtext:"Search"
            },
            {},//add 
            {}, //edit
            {}, //delete
                {},  <---instead of putting search options on this line
            {        <----I was putting it here on this line
                overlay:false,
                closeOnEscape:true,
                            afterShowSearch:... , 
            } /* allow the view dialog to be closed when user press ESC key*/
        );//grid
    

    however I realized that after I fixed my problem with a hack when I saw the overlay:false was not working and there was still a jQuery UI overlay for search…

    what I did might be helpful somehow to someone who reads this one day so what I did was:

    there is a get parameter nd that is a Unix Timestamp(POSIX) but in miliseconds (javascripts implementation) unlike php and mysql and most unix stuff (which is in seconds). I also sent a timestamp of the last time any of the navigation links where clicked:

    lastReloadTime = new Date().getTime() ;
    jQuery("#list").jqGrid('setGridParam',{ 
            url:currentURL(), 
            postData:{lrt:lastReloadTime
    } 
    

    then in my php file that generates the json data:

    $searchOK = 1;
    
    if($_GET['_search']=='true') {
    
        if( isset($_GET['lrt']) ){ 
    
        //so here I check to see if the main mail links have been clicked at all
        //from the time of the first page load 
        //if not then its all good but if it has check for the time
    
            if(   (    ($_GET['nd']/1000)-($_GET['lrt']/1000)    ) < 1) $searchOK=0;
        }
    
        if($searchOK){ //you can do search since it might be going through pages of a search result
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an inbox system. Signed in user can message other signed in
I have created a user from openfire admin page. I have entered the username,
i have this form_for sending a private message between two users on my users#show
I have created a User called Student and Teacher that can login into the
I have created a user control (link) which has a label and a button.
I have created a user control (CheckedDirTree) that exposes a CheckedFolder property which in
I have created one user named tuser with create database rights in SQL server
I have started to learn how to use OOP and have created a user
I have created an Address user control which is as follow: <%@ Control Language=C#
I have created a COM enabled .NET User Control and am wondering what is

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.