Click here to Skip to main content
11,641,708 members (50,466 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 22:10pm
Edited 22-Jul-14 0: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 Mika Wendelius 260
1 DamithSL 248
2 Afzaal Ahmad Zeeshan 129
3 OriginalGriff 120
4 Sergey Alexandrovich Kryukov 80
0 Mika Wendelius 460
1 OriginalGriff 265
2 DamithSL 258
3 CPallini 169
4 Afzaal Ahmad Zeeshan 149


Advertise | Privacy | Mobile
Web04 | 2.8.150731.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