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
dynamic Url "app/person/id/"
12/12/2013
23:58
Avatar
cmtran
New Member
Members
Forum Posts: 2
Member Since:
12/12/2013
sp_UserOfflineSmall Offline

Hi Community,

For my webapp I'm using the following url to show the profile of a person.

/app/person/id/{userId}

how to pass the parameter userId in the url of jqgrid?

jQuery(grid_selector).jqGrid({

datatype: "json", 

url:'/app/person/id????????, 

14/12/2013
13:12
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Not sure I understand how you want to change this url.

Do you use some serevr side language.

The most easy way to do this is to creste a varible

var  myurl = 'some_dynamic_url';

and pas is as parameter to the grid

You can then change the url dynamically with JavaScript using setGridParam method  as parameter url.

Regardsa

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.

15/12/2013
13:22
Avatar
cmtran
New Member
Members
Forum Posts: 2
Member Since:
12/12/2013
sp_UserOfflineSmall Offline

tony said:

Hello,

Not sure I understand how you want to change this url.

Do you use some serevr side language.

The most easy way to do this is to creste a varible

var  myurl = 'some_dynamic_url';

and pas is as parameter to the grid

You can then change the url dynamically with JavaScript using setGridParam method  as parameter url.

Regardsa


I'm using spring mvc for my webapp. The profile of a person can be opened under localhost:8080/app/person/id/{personId}. For example  localhost:8080/app/person/id/123. In the profile site I want to use jqgrid table. I dont know how to pass the dynamic id personId in the url.

17/12/2013
11:13
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Sorry, but I'm not familiar with this too. Maybe other people can help.

Regards

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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