Click here to Skip to main content
11,492,291 members (61,467 online)
Rate this: bad
good
Please Sign up or sign in to vote.
Hi,

Sharepoint page is refreshing repeatedly after calling onchange method for the filter dropdown in jquery.

code onchange as below:
$(id).attr('onchange', '');
 $(id).change(function(){
    var dropDownSelection = '963208C944D86D67BA83694196DFBF81';
    PPSMA.ClientConnectionManager.get_instance().updateFilter
    ({'ClientId':'g_ea64ca55_e6bd_475f_b58d_4f83c6a2f1aa','Name':'FilterValues','Selections':[dropDownSelection]});
        $(id).attr("disabled", true);
 
    });
 
$(id).change();


Thanks.
Posted 20-Jul-14 23:10pm
Edited 22-Jul-14 1:02am
v4

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

use this will help you
<a href="http://www.andismith.com/blog/2011/11/on-and-off/">http://www.andismith.com/blog/2011/11/on-and-off/</a>[<a href="http://www.andismith.com/blog/2011/11/on-and-off/" target="_blank" title="New Window">^</a>]
  Permalink  
Comments
jyothivs at 14-Aug-14 3:39am
   
we tried .on and .off.
But not helping me to solve refresh issue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 404
1 Maciej Los 266
2 KarstenK 220
3 Sascha Lefèvre 215
4 CPallini 208
0 Sergey Alexandrovich Kryukov 9,943
1 OriginalGriff 8,610
2 Sascha Lefèvre 3,609
3 Maciej Los 3,372
4 Richard Deeming 2,440


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 9 Aug 2014
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100