Forum


22:40

10/11/2009

Is it possible to put the url file in a subfolder? I have tried a number of different combination that have not worked.
For example:
url:'partytime.JSON.asp', //Can this be replaced
url:'JSON/partytime.JSON.asp' //with this?
datatype: 'JSON',
mtype: 'GET',
colNames:['case_id','party_id','EntryDateTimeStamp','Description'],
colModel :[
{name:'case_id', index:'case_id', width:50, sortable:false, hidden: true, editable:false},
{name:'party_id', index:'party_id', width:50, sortable:false, hidden: true, editable:false},
{name:'EntryDateTimeStamp', index:'EntryDateTimeStamp', width:50, sortable:false, hidden: true, editable:false},
{name:'Description', index:'Description', width:300, sortable:false, editable:true, edittype:"textarea", editoptions:{rows:"2",cols:"50"}}
],
pager: jQuery('#pager'),
rowNum:20,
autowidth: false,
rowList:[20,40,60],
sortname: 'party_id',
sortorder: "asc",
viewrecords: true,
imgpath: 'themes/redmond/images',
caption: 'Time List',
height:300,
multiselect:true
})
Thanks,
-David
09:24

Moderators
08/10/2009

It is definitely possible to do that, just make sure the path is correct. The file will assume relative path, whereas if you want a root relative link, you will need to place a slash in front of it, e.g.
url:'/partytime.JSON.asp', //Can this be replaced
url:'/JSON/partytime.JSON.asp'
(note the slash at the beginnig)
Trirand ASP.NET WebForms & MVC components based on jQuery & ThemeRoller
Most Users Ever Online: 715
Currently Online:
53 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