Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Problem with search bigset gridReload
04/04/2012
12:29
Avatar
jarod51
New Member
Members
Forum Posts: 1
Member Since:
04/04/2012
sp_UserOfflineSmall Offline

Hey there,

I'm posting a message on this forum cause I don't manage to resolve my problem as I'm a newbie on JqGrid. I'm trying to implement the Bigset Search on my php web page. I manage to show data on my page but when I'm clicking on the search field I've this error :

missing object on the following lines:

<div class="h">Search By:</div>
                    <div>
                    <input type="checkbox" id="autosearch" onclick="enableAutosubmit(this.checked)"> Enable Autosearch <br/>
                    Code<br />
                    <input type="text" id="search_cd" onkeydown="doSearch(arguments[0]||event)" />
                    </div>
                    <div> Name<br>
                    <input type="text" id="item" onkeydown="doSearch(arguments[0]||event)" />
                    <button onclick="gridReload()" id="submitButton" style="margin-left:30px;">Search</button>
                    </div> <br />
                    <table id="bigset"></table>
                    <div id="pagerb"></div>

My jquery calls are like that :

<script type="text/javascript">
$(function(){
  $("#bigset").jqGrid({
    url:'bigset.php',
    datatype: 'xml',
    mtype: 'GET',
    colNames:['Id','Identifiant', 'DateNai','Sexe','Ville','DateSaisie'],
    colModel :[
      {name:'idpatient', index:'idpatient', width:55},
      {name:'identifiant', index:'identifiant', width:90},
      {name:'datenai', index:'datenai', width:80, align:'right'},
      {name:'sexe', index:'sexe', width:80, align:'right'},
      {name:'ville', index:'ville', width:80, align:'right'},
      {name:'datesaisie', index:'datesaisie', width:150, sortable:false}
    ],
    pager: '#pagerb',
    rowNum:10,
    rowList:[10,20,30],
    sortname: 'id',
    sortorder: 'desc',
    viewrecords: true,
    gridview: true,
    multiselect: true,
    caption: 'Liste des patients',
    width : 900
    
        
  });
 
  var timeoutHnd;
  var flAuto = false;
 
  function doSearch(ev){
  if(!flAuto) return;
  // var elem = ev.target||ev.srcElement;
  if(timeoutHnd)
  clearTimeout(timeoutHnd);
  timeoutHnd = setTimeout(gridReload,500) }
 
  function gridReload(){
  var nm_mask = jQuery("#item_nm").val();
  var cd_mask = jQuery("#search_cd").val();
  jQuery("#bigset").jqGrid('setGridParam',
  {url:"bigset.php?nm_mask="+nm_mask+"&cd_mask="+cd_mask,page:1}).trigger("reloadGrid");
  }
 
  function enableAutosubmit(state){
  flAuto = state; jQuery("#submitButton").attr("disabled",state);
  }
 
});
</script>

Do you have any idea why it doesn't work Cry ?

Thanks.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
57 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information