MongoDB ,JSON ,AJAX , JQGrid Not Working.

37 views
Skip to first unread message

N.S.KARTHIK

unread,
Sep 20, 2017, 2:18:47 AM9/20/17
to mongodb-user

 Team

      Spec : Java 1.7,  jQuery v3.1.0,  JqGrid 5.2.1  , MongoDB 3.0.12

     Problem :  

     a) UI Page with   jQuery, JqGrid  Does-NOT display Grid with JSON data ( fetched from MongoDB ) via Ajax  within jqGrid 

                                 ex:-  url : 'ajax_grid_data.jsp?env=DAO&infra=PROD',  
  
     b)  UI Page with   jQuery, JqGrid  Does display Grid  with  same JSON Data ( fetched from 'Data.json'  file ) via Ajax  within jqGrid

                                  ex:-  url : 'Data.json', 


    Note : -  Reference  : a) Data from MongoDB is fetched properly to UI ( Verify thru Firebug -plugin )  but not displaying.
     
                 Reference  :  b) Data from MongoDB is copied on to a 'json' file and is being displayed.


    Question : What am i doing wrong in  a)


 with regards
Karthik
     

Wan Bachtiar

unread,
Sep 24, 2017, 10:21:03 PM9/24/17
to mongodb-user

Hi Karthik,

It’s difficult to determine the actual issue without code snippet, example data and full stack trace error.
I would suggest to simplify your code example, and trying out layer by layer.
For example, first test connecting to your MongoDB instance using your Java code.

If your issue is related more about JQuery or JqGrid you may get faster responses and reach wider audience by posting a question to StackOverflow.

Regards,
Wan.

N.S.KARTHIK

unread,
Oct 10, 2017, 3:07:22 AM10/10/17
to mongodb-user
Hey WAN

I was able to solve the MONGODB + JQUERY+AJAX+ JQGRID problem

It was a simple mistake of using multiple JQGRID headers on same page..which is a bug

Also for a json file provided as static, the Script headers for the bug was the culprit..and hence was working..


with regards
Karthik
Reply all
Reply to author
Forward
0 new messages