Hi,
I've been trying to execute a jquery jqGrid url to return JSON data
but failed. Only a blank table with exact headings is displayed. I
tried changing the url several times but no data is displayed. The
following is part of the code.
------------------------------------------------------------------------------------------------------

<script src="{{=URL(r=request,c='static',f='jqGrid34/jquery.js')}}"
type="text/javascript"></script>
<!-- and at end the jqGrid Java Script file -->
<script src="{{=URL(r=request,c='static',f='jqGrid34/
jquery.jqGrid.js')}}" type="text/javascript"></script>
<script type="text/javascript">
  jQuery(document).ready(function(){
    jQuery('#list2').jqGrid({
    //
    // this is the url I am using but failed to display data

    url: "{{=URL(r=request,c='default',f='getjsdata')}}",

    // I created a program in controllers to return json data and
tried the url below to access the program but also failed to display
data
    url: '/EMIS/controllers/getjsdata.py',
    //
    datatype: 'json',
    colNames:['Emp. No.','Last Name', 'First Name', 'Mid Name', 'Cost
Center', 'SSS No.'],
    colModel:[
        {name:'empno',index:'empno', width:80},
        {name:'lname',index:'lname', width:160},
------------------------------------------------------------------------
Maybe the url address format is wrong or whatever. Can someone help me
on this.
Thank you very much.
Ed

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to