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_Related Related Topics sp_TopicIcon
IE8 2nd filter "op":"undefined"
12/05/2010
16:35
Avatar
Brian
Member
Members
Forum Posts: 10
Member Since:
12/05/2010
sp_UserOfflineSmall Offline

Hello, great grid!

With IE8 and jqGrid 3.6.5, the second filter received by the server is "op":"undefined". With Firefox, the second filter is correct.

Here are the IE8 filters received by the server:

[filters] => {"groupOp":"AND","rules":[{"field":"date_time","op":"eq","data":"05/07/2010"},{"field":"source","op":"undefined","data":"B"}]

Here is the grid definition:

<script type="text/javascript">
  jQuery(document).ready(function($) {
  url_id = 'query.php?_name=prices&_type=jqGrid_XML&ins_no='+ins_no.value;
  price_codes = $.ajax({url: 'query.php?_name=prices_codes&_type=jqGrid_Value',
             async: false}).responseText;
  function defaultPriceCode() { return 'C'; /* Close */ }
  function defaultSource() { return 'M'; /* Manual */ }
  $("#prices_grid").jqGrid({
   caption: 'Prices',
   url: url_id,
   editurl: url_id,
   colNames:['Date','Price Code','Source','Price'],
   colModel :[
    {name:'date_time', index:'date_time', width:110, editable:true,
     editrules:{required:true}, edittype:'text',
     editoptions:{maxlength:10, dataInit: datePick},
     stype:'text', searchoptions:{dataInit: datePick}},
    {name:'price_cd', index:'price_cd', width:150, formatter:'select',
     sortable:false, editable:true, editrules:{required:true},
     edittype:'select', editoptions:{value:price_codes},
     stype:'select', searchoptions:{value:price_codes,
     dataInit: function(elem) { $(elem).val(defaultPriceCode()); }}},
    {name:'source', index:'source', width:200, formatter:'select',
     sortable:false, editable:true, editrules:{required:true},
     edittype:'select', editoptions:{value:sources},
     stype:'select', searchoptions:{value:sources,
     dataInit: function(elem) { $(elem).val(defaultSource()); }}},
    {name:'price', index:'price', width:110, editable:true,
     editrules:{required:true, number:true}, edittype:'text'}],
   pager: 'prices_pager'
  });
  if(ins_no.value.length > 0) {
   $("#prices_grid").navGrid('#prices_pager',
    {refresh: true, edit: true, add: true, del: true, search: true},
    { // edit options
     beforeShowForm: function(formid) {
      // disable keys
      for(var key in {'#date_time':1, '#price_cd':1, '#source':1})
       $(key,formid).attr('disabled',true);
     },
     afterSubmit: afterSubmit,
     closeAfterEdit: true
    },
    { // add options
     beforeShowForm: function(formid) {
      // enable keys
      for(var key in {'#date_time':1, '#price_cd':1, '#source':1})
       $(key,formid).removeAttr('disabled');
      // default values
      $('#price_cd',formid).val(defaultPriceCode());
      $('#source',formid).val(defaultSource());
     },
     afterSubmit: afterSubmit,
     closeAfterAdd: true
    },
    { // delete options
     onclickSubmit: function(eparams) {
      var rowId = $('#prices_grid').getGridParam('selrow');
      var row = $('#prices_grid').getRowData(rowId);
      return {date_time: row.date_time, price_cd: row.price_cd, source: row.source};
     },
     afterSubmit: afterSubmit
    },
    { // search options
     closeAfterSearch: true
    }
   );
  }   
  });
</script>
<table id="prices_grid"></table>
<div id="prices_pager"></div>

Thanks!

Brian

12/05/2010
17:34
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

This is a old issue. Which version do you use?

Also I think that this hapen under some IE configurations, but do not know how to detect this.

Is this situation from the same IE in the trirand demo?

Best Regards

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

12/05/2010
17:56
Avatar
Brian
Member
Members
Forum Posts: 10
Member Since:
12/05/2010
sp_UserOfflineSmall Offline

Hello,

Grid version 3.6.5 downloaded yesterday from http://www.trirand.com/blog/?page_id=6
IE version 8.0.6001.18702

Thanks!

12/05/2010
20:51
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

What about my second question?

If you use the same browser in the trirand demo page - advanced serching example does this occur?

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

12/05/2010
21:58
Avatar
Brian
Member
Members
Forum Posts: 10
Member Since:
12/05/2010
sp_UserOfflineSmall Offline

Hello,

With IE8, all the advanced searching examples work at http://trirand.com/blog/jqgrid.....sp;however, the examples don't test multiple criteria using the search dialog box.

With IE7, the second filter is also "op":"undefined".

jQuery UI version is 1.8.1

Thanks!

12/05/2010
22:02
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Please open the demo, the select New in version 3.5 and then select Advanced Searching

Thank you.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

12/05/2010
22:36
Avatar
Brian
Member
Members
Forum Posts: 10
Member Since:
12/05/2010
sp_UserOfflineSmall Offline

Hello,

That demo works, version 3.5 Advanced Searching.

But jqGrid 3.5.3 doesn't load with jQuery UI 1.8.1 or 1.7.3

Thanks!

13/05/2010
18:44
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

What you mean with - "Does not load"?

Also in order to investigate the problem could you please prepare a simple example and make a link to it or send me to a e mail.

Thank you

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

14/05/2010
17:21
Avatar
Brian
Member
Members
Forum Posts: 10
Member Since:
12/05/2010
sp_UserOfflineSmall Offline

Hello,

With jqGrid-3.5.3, jQuery-UI-1.8.1, and IE8 or IE7 or Firefox: the grid says "Loading...", but the initial data neverever loads.

With jqGrid-3.6.5 and everything else the same: the initial data loads, but advanced searching fails because the second filter is "op":"undefined".

Prior to jqGrid-3.5.3: the grid worked great loading initial data and advanced searches.

Not yet tested the latest jqGrid-3.4.4 with jQuery-UI-1.8.1

Unfortunately, there is no public link to this system because it is on private network and the whole code is too difficult to e-mail.

With jqGrid-3.5.3: below are the link references and error messages from IE8

<!-- jQuery UI from http://jqueryui.com/download

Message: 'ts.p.colModel[...].name' is null or not an object
Line: 10
Char: 10946
Code: 0
URI: http://atlantis/price/jQuery/js/jquery.jqGrid.min.js

Message: 'ts.p.colModel[...].name' is null or not an object
Line: 10
Char: 10946
Code: 0
URI: http://atlantis/price/jQuery/js/jquery.jqGrid.min.js

Message: 'ts.p.colModel[...].name' is null or not an object
Line: 10
Char: 10946
Code: 0
URI: http://atlantis/price/jQuery/js/jquery.jqGrid.min.js

Message: 'ts.p.colModel[...].name' is null or not an object
Line: 10
Char: 10946
Code: 0
URI: http://atlantis/price/jQuery/js/jquery.jqGrid.min.js

Message: 'ts.p.colModel[...].name' is null or not an object
Line: 10
Char: 10946
Code: 0
URI: http://atlantis/price/jQuery/js/jquery.jqGrid.min.js

Thanks!

15/05/2010
14:06
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

HEllo,

Will be happy if you put here the whole page including DOCTYPE declaration and grid configuration

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

18/05/2010
00:09
Avatar
Brian
Member
Members
Forum Posts: 10
Member Since:
12/05/2010
sp_UserOfflineSmall Offline

Hello,

The whole page fails to post with error: "No topic has been entered! Post cannot be saved." A similar error occurs while trying to send it to you as a PM. Editing a previous post didn't work either. Maybe the text is too big? I don't see a button to attach a file. Any ideas?

Thanks!

18/05/2010
10:53
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Zip the page and send to my e mail: tony at trirand dot com

Thanks

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

18/05/2010
18:45
Avatar
Brian
Member
Members
Forum Posts: 10
Member Since:
12/05/2010
sp_UserOfflineSmall Offline

Hello,

It might be easier if I send you a smaller example. I'll work-up a smaller example and send it to you.

Thanks!

19/05/2010
00:25
Avatar
Brian
Member
Members
Forum Posts: 10
Member Since:
12/05/2010
sp_UserOfflineSmall Offline

Hello,

Examples were zipped and sent, as you instructed.

Thanks!

21/05/2010
18:59
Avatar
Brian
Member
Members
Forum Posts: 10
Member Since:
12/05/2010
sp_UserOfflineSmall Offline
Hi Tony,
 
"Implementing the META Switch on Apache" (http://msdn.microsoft.com/en-u.....17573.aspx) solved the problem.
Maybe a DOCTYPE would also work, but none tried worked for me.
Thanks!
Brian
21/05/2010
19:10
Avatar
Brian
Member
Members
Forum Posts: 10
Member Since:
12/05/2010
sp_UserOfflineSmall Offline

Hi Tony,

After more testing, both meta tag and DOCTYPE are required, such as you suggested:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

Thanks for all your help!

Brian

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
43 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