Forum
19:48
hello everybody,
I been spending A LOT of time to make the plugin work. Well, i got it to work but looks like jqgrid got some problems with the path (or I'm just stupid).
Heres the original demo file with my current patch:
<head>
<title>jqGrid Demo</title>
<link rel="stylesheet" type="text/css" media="screen" href="js/themes/basic/grid.css" />
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/jquery.jqGrid.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#list").jqGrid({
url:'example.php',
datatype: 'xml',
mtype: 'GET',
colNames:['Inv No','Date', 'Amount','Tax','Total','Notes'],
colModel :[
{name:'invid', index:'invid', width:55},
{name:'invdate', index:'invdate', width:90},
{name:'amount', index:'amount', width:80, align:'right'},
{name:'tax', index:'tax', width:80, align:'right'},
{name:'total', index:'total', width:80, align:'right'},
{name:'note', index:'note', width:150, sortable:false} ],
pager: jQuery('#pager'),
rowNum:10,
rowList:[10,20,30],
sortname: 'id',
sortorder: "desc",
viewrecords: true,
imgpath: 'js/themes/basic/images',
caption: 'My first grid'
});
});
</script>
As you can see, i put the jqgrid plugin on my own "js" folder (cause i already got some js stuff and i don't want jquery nor jqgrid walking around my folders.
Thing is: it just doesnt work, no matter what. But if i put my .html file on my /js folder and remove the js/ from the path it DOES work.
Thanks.
00:54
Moderators
30/10/2007
Hello,
I suppose you use 3.4.4 version. My question is- Do you have read carefully the installation in the documentation? This "problem" is described.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
32 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66