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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:29:29+00:00 2026-05-21T14:29:29+00:00

It was working fine yesterday. Now the grid is empty. (i did an update

  • 0

It was working fine yesterday. Now the grid is empty. (i did an update at night.) But if i try from windows xp machine, both IE and FF4 load grid just fine. Everything works.

But from linux (archlinux 64 bit), neither FF4 nor Chromium load data. The grid is empty.

Obviously the problem is not in my code. It’s working fine. Something happened to FF (and Chromium ?)

Does anyone else have this problem ?

Here’s the code:

$(document).ready(function(){var lastsel,tbl=$("#tblPrintSets");
   tbl.jqGrid({url:"http://192.168.1.147:3000/json/print-sets",
               editurl:"http://192.168.1.147:3000/print-sets/post",
               datatype:"json",height:400,
               jsonReader:{repeatitems:false,id:"set_id"},
               colNames:["ID","Seq #","Set name","File Name","Group Level","Exclude Attachments"],
               colModel:[{name:'set_id',sortable:false,editable:false,width:40},
                         {name:'seq_no',sortable:false,editable:true,width:50,editoptions:{size:4},editrules:{required:true,number:true}},
                         {name:'set_name',sortable:false,editable:true,width:200,editoptions:{size:25},editrules:{required:true}},
                      {name:'file_name',sortable:false,editable:true,width:200,editoptions:{size:25},editrules:{required:true}},
                    {name:'group_level',sortable:false,editable:true,width:100,edittype:"select",editoptions:{value:"1:Order;2:Service List;3:Location"}},
              {name:'exclude_attachments',sortable:false,editable:true,edittype:"select",editoptions:{value:"1:Yes;0:No",defaultValue:"No"}}],
            onSelectRow:function(id){if(id&&id!==lastsel){tbl.jqGrid('restoreRow',lastsel);
                    tbl.jqGrid('editRow',id,true);lastsel=id}}});

     $("#btnNewSet").click(function(){tbl.jqGrid('editGridRow',"new",{height:200,closeAfterAdd:true,recreateForm:true})})})

and here’s the json data:

{"rows":[{"exclude_attachments":"No","file_name":"inhouse","group_level":"Location","seq_no":"1","set_id":"1","set_name":"In House"},
     {"exclude_attachments":"No","file_name":"client","group_level":"Order","seq_no":"2","set_id":"2","set_name":"Client Set"},
       {"exclude_attachments":"No","file_name":"oc","group_level":"Service List","seq_no":"3","set_id":"3","set_name":"O.C. Set"},
       {"exclude_attachments":"No","file_name":"service","group_level":"Service List","seq_no":"4","set_id":"4","set_name":"Service List Set"}]}

jqgrid version: 4.0

jquery: 1.5.2

jquery-ui: 1.8.11

EDIT: Thanks to help from Oleg, the problem is solved. It turned out i was using absolute urls for json data. And with absolute urls it must match the url you are accessing the web site. I was accessing the web site with “localhost” url on the host machine. That’s why it did not work.

  • 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-21T14:29:30+00:00Added an answer on May 21, 2026 at 2:29 pm

    How you can see here the jqGrid woks in general.

    I suppose that your main problem exist because of the usage http://192.168.1.147:3000 prefix in the url. I suppose that either IP address or the port number are changed now or the web site run on the other web server. Ajax has an important restriction known under the name same origin policy. You can not get data from the server having another IP as the current web server. Even the port number should be the same. So you should never use absolute paths for the url and change it to url:”/json/print-sets” and editurl:"/print-sets/post" for example.

    One more remark. Your JSON data has no id information. Accidentally the ‘set_id’ values from the input data is 1,2,3. If jqGrid find no information about ids in the JSON input it use also 1,2,3… So you have no problem with the editing of the data. If some column (like ‘set_id’) contain unique id you should include key:true in the corresponding column definition.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is really strange but this code is working fine unless the value entered
I created an ASMX file with a code behind file. It's working fine, but
I m doing a stuf in JAVA, as it is working fine.. now i
XmlElement.Attributes.Remove* methods are working fine for arbitrary attributes resulting in the removed attributes being
Running a ServiceHost with a single contract is working fine like this: servicehost =
I have this classic ASP site which has been working fine until we updated
I have created a Web Application in asp.net 2.0. which is working fine on
I coded something using Date statement in Access VBA. It was working fine until
I'm using the MS AJAX AutoCompleteExtender on a textbox. It's working fine, except when
Is the following stored procedure code robust for multi-user application. It is working fine.

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.