170 reputation
6
bio website
location China
age
visits member for 1 year, 2 months
seen 13 hours ago
stats profile views 26

May
13
awarded  Supporter
May
10
accepted How to get SharePoint 2013 user experience version in code
May
10
comment How to get SharePoint 2013 user experience version in code
Thanks. I followed your tips and searched about how to use SharePoint 2007 UI in SharePoint 2010, then I found I can use SPWeb.UIVersion to get the version number.
May
10
comment How to get SharePoint 2013 user experience version in code
@RobertLindgren Thanks for your tip. And I also found that we can use SPWeb.UIVersion to check it.
May
9
asked How to get SharePoint 2013 user experience version in code
May
2
awarded  Teacher
Feb
23
comment sp.*.js are not registered to page for anonymous user in SharePoint 2013
Thanks for your answer, your information is useful. But in our situation, we are not allowed to modify our customers' master page. I've found that SP.SOD.executeFunc(key, functionName, fn) can solve this problem.
Jan
23
accepted Register js for custom field type in SharePoint 2013
Jan
5
revised Register js for custom field type in SharePoint 2013
fix mistake
Jan
5
revised Register js for custom field type in SharePoint 2013
added 657 characters in body
Jan
5
revised Register js for custom field type in SharePoint 2013
added 12 characters in body
Jan
5
answered Register js for custom field type in SharePoint 2013
Dec
31
awarded  Tumbleweed
Dec
28
revised Register js for custom field type in SharePoint 2013
add more information
Dec
24
asked Register js for custom field type in SharePoint 2013
Dec
17
comment sp.*.js are not registered to page for anonymous user in SharePoint 2013
@VardhamanDeshpande You can use SP.SOD.executeFunc(key, functionName, fn) method to add sp.js if it's not loaded, it works in my publishing page. Hope it's helpful.
Dec
17
comment sp.*.js are not registered to page for anonymous user in SharePoint 2013
@VardhamanDeshpande I also met this problem, and I found a question that describes this issue:social.msdn.microsoft.com/Forums/en-US/sharepointdevpreview/…, but the solution in the question is quite unclear. If you pay attention to the ribbon(Browse,Page) in your page, you will find that after the page is published, the ribbon is gone. Because the ribbon relys on "sp.*.js", so if the ribbon appears in the page, sp.js will be loaded. All in all, for some reasons, sp.js is not required(ribbon is just one way that will require sp.js) in your page.
Dec
16
comment sp.*.js are not registered to page for anonymous user in SharePoint 2013
@VardhamanDeshpande The way of registering sp.js(for example) is different from registering it directly. <script type="text/javascript">RegisterSod(file, url) will not load js immediately. It will be loaded only when it's required.(for more details, please check this article:ilovesharepoint.com/2010/08/…) So I just guess that when current user is anonymous, some common functions will not be required and executed, and these functions are related to "sp.*.js", so the js files will not be loaded.
Dec
16
comment sp.*.js are not registered to page for anonymous user in SharePoint 2013
@VardhamanDeshpande you can use the "SP.SOD.executeFunc(key, functionName, fn)" method. It will load the script if it's not loaded yet.
Dec
10
asked sp.*.js are not registered to page for anonymous user in SharePoint 2013