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
retrieve data from json
11/01/2011
12:48
Avatar
insmuh
istanbul
New Member
Members
Forum Posts: 1
Member Since:
11/01/2011
sp_UserOfflineSmall Offline

hello to all. i'm a real noob to json and jqgrid. and i need help if you have some time.

trying to retrieve data from this link

http://api.erepublik.com/v2/fe.....ens/664491

with the code below :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DT.....t;&gt;
<html xmlns="http://www.w3.org/1999/xhtml&quot; xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My First Grid</title>
 
<link rel="stylesheet" type="text/css" media="screen" href="css/ui-lightness/jquery-ui-1.8.7.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" />
 <style>
html, body {
    margin: 0;
    padding: 0;
    font-size: 75%;
}
</style>

<script type="text/javascript">
$(function(){
  $("#list").jqGrid({
    url:'http://api.erepublik.com/v2/fe.....1&#39;,
    datatype: 'json',
    mtype: 'GET',
    colNames:['name','wellness', 'level'],
    colModel :[
      {name:'name', index:'name', width:55},
      {name:'wellness', index:'wellness', width:90},
      {name:'level', index:'level', width:80, align:'right'}
          ],
    pager: '#pager',
    rowNum:10,
    rowList:[10,20,30],
    sortname: 'name',
    sortorder: 'desc',
    viewrecords: true,
    caption: 'My first grid'
  });
});
</script>

<script src="js/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="js/i18n/grid.locale-tr.js" type="text/javascript"></script>
<script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>
 
</head>
<body>
<table id="list"></table>
<div id="pager"></div>
</body>
</html>

but i totally get nothing.  what can be the problem.?

thanks for the answers.

regards.

insmuh

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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