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_Related Related Topics sp_TopicIcon
Call function after switching page
15/04/2011
04:54
Avatar
strgg
Member
Members
Forum Posts: 16
Member Since:
19/03/2011
sp_UserOfflineSmall Offline

Hi,

After pageload (document ready) i call this function to alter all links (a href)

   $('a.classy').bind('click',function(event){
                                event.preventDefault();
                                $.get(this.href,{},function(response){
                                   $('#response').html(response);
                                })    
                             })

Now the "problem" is if i click f.e. "next" on the pager, then the newly loaded data does not have this alternation on the links.

i tried using gridComplete

jQuery("#gridid").jqGrid({
gridComplete: function(){
          $('a.classy').bind('click',function(event){
            event.preventDefault();
            $.get(this.href,{},function(response){
                $('#response').html(response);
            })    
         })
   }
});

it did not work. Is the scope of gridComplete reaching to the new ajax-load by requesting another page?
Maybe i am completely at the wrong road :/ . How could this be achieved?

thanks very much for a small hint.

Kind Regards,
Gerome

16/04/2011
15:00
Avatar
mascott
Member
Members
Forum Posts: 19
Member Since:
15/04/2011
sp_UserOfflineSmall Offline

i tried using gridComplete

Why not loadComplete?

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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