November 2nd, 2014

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
Need help with json data source
Forum Posts: 7
Member Since:
sp_UserOfflineSmall Offline

I'm very new to PHP/JavaScript/JQuery/JQGrid, so please bear with me. 

I'm trying to set up a very basic grid, just to test how things work. 

Here's my grid definition:

    <script src="" type="text/javascript"> </script>
    <script src="" type="text/javascript"></script>
    <script src="" type="text/javascript"></script>

    <script type="text/javascript">
                    url: ";,
                    dataype: "json",
                    mtype: "GET",
                    colNames: ["username", "email"],
                    colModel: [
                        {name: "username"},
                        {name: "email"},
                    pager: "#pager",
                    rowNum: 10,
                    rowList: [10, 20, 30],
                    sortname: "id",
                    sortorder: "desc",
                    viewrecords: true,
                    gridview: true,
                    autoencode: true,
                    caption: "My first grid"

    <table id="list"><tr><td></td></tr></table>
    <div id="pager"></div>


Here's the json (achieved by going to directly):


Firefox' web console gives the error "[22:03:18.521] not
well-formed @" (thats the file with the grid)

Firebug gives the error "H is undefined Line 2" in jqery-1.9.0.min.js

I've checked and the return type of the json is "application/json".

The grid comes up, but contains no data. Any advice greatly appreciated.
Forum Timezone: Europe/Sofia

Most Users Ever Online: 496

Currently Online:
33 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,

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information