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
Ajax load grid into DIV
23/07/2009
21:27
Avatar
highrise
Member
Members
Forum Posts: 19
Member Since:
24/07/2009
sp_UserOfflineSmall Offline

hi guys

firstly, I am really enjoying using jqgrid so thanks to everyone involved. However I have an issue. I have created a grid which loads its data from a php file which send JSON data to the grid. It displays absolutely fine as a standalone, but when I try to AJAX load it into a div on a different page, it just comes up blank. I'm using the same style sheets so I don't think that is the issue, and the scripts are loaded into the holding page - other pages which use jquery are loading fine so I am a bit stuck - anyone have any suggestions?

thanks in advance!

24/07/2009
07:49
Avatar
highrise
Member
Members
Forum Posts: 19
Member Since:
24/07/2009
sp_UserOfflineSmall Offline

hi guys, here is an update for anyone that can help. I changed the code so that the jquery grid command is actually used to load the grid into the div, which seems to be fine. however, it only works the first time. If I try to reload the grid with different parameters, it doesn't work.

Can the grid only load once at the start? Basically what I need is a 'search results' pane which is a grid inside a div showing search results from a database. However these results can vary and they need different grids as some searches have different columns that need to be shown. So I need to be able to reload a new grid into the same pane.

Any ideas? thanks again

24/07/2009
09:06
Avatar
highrise
Member
Members
Forum Posts: 19
Member Since:
24/07/2009
sp_UserOfflineSmall Offline

hi guys, sorry to be such a noob, I am learning as I am going along. To solve this problem I just used :

setGridParam({  url:'newurl'})

thanks!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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