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_TopicIcon
url file in subfolder
12/11/2009
22:40
Avatar
davidbemenderfer
Member
Members
Forum Posts: 17
Member Since:
10/11/2009
sp_UserOfflineSmall Offline

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:

jQuery("#list").jqGrid({
     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

14/11/2009
05:07
Avatar
phicarre
Member
Members
Forum Posts: 132
Member Since:
09/11/2009
sp_UserOfflineSmall Offline

Yes it's possible. I use it always !

url: 'folder/module.php',

You have probably one problem somewhere.

14/11/2009
09:24
Avatar
Rumen[Trirand]
Moderator
Members

Moderators
Forum Posts: 81
Member Since:
08/10/2009
sp_UserOfflineSmall Offline

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

http://www.trirand.net

14/11/2009
11:59
Avatar
davidbemenderfer
Member
Members
Forum Posts: 17
Member Since:
10/11/2009
sp_UserOfflineSmall Offline

Thank you soo much.  I did get this resolved.  My problem was with the datafile, not the reference.  Good guess phicarre.

Forum Timezone: Europe/Sofia

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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information