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
ajaxGridOptions Success Function Not Called
16/11/2009
10:05
Avatar
querying grid
Guest
Guests

There's a new feature in jqgrid 3.6 that allows full control over the ajax requests to the server but my success function is never called:

jQuery("#tester").jqGrid({
    ajaxGridOptions : {type: 'POST',
                   success: function() {
                        alert("hello!");
                    }
            },

datatype...
...

Is there something else that must be done to enable this functionality (calling success after post) when using ajaxGridOptions?

16/11/2009
11:51
Avatar
MamaliFrenchi
Member
Members
Forum Posts: 62
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

success is a call back function. do you have an URL for your ajax post? and if yes what are you sending back form your server?

17/11/2009
02:39
Avatar
querying grid
Guest
Guests

MamaliFrenchi said:

success is a call back function. do you have an URL for your ajax post? and if yes what are you sending back form your server?


Yes I have a url for the Ajax post and it returns everything to the grid successfully from the server.  It's just that the success call-back function is never executed. 

Does anyone have an example of any ajax call-back function working inside the 'ajaxGridOptions' of jqgrid?

17/11/2009
02:56
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

What is your datatype parameter? If it is local, xmlstring or jsonstring this will not work.

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.

17/11/2009
05:21
Avatar
querying grid
Guest
Guests

Found the problem... nothing to do with jqgrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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