I wanted to have a masterpage for Sharepoint 2010 with a HTML5 Doctype… unfortunately Sharepoint 2010 has been coded without standards, so lot of things are now broken.
I spent some time to find the broken functions. I’ve created a file that is called just after <SharePoint:ScriptLink language="javascript" name="core.js" OnDemand="true" runat="server"/>
, and you can download it here (.js file).
I overwrite some functions to make the « Multiple lines of text » to work and same thing for the « People Picker », and other stuff. That could be useful for someone else.
Also I found that the Gantt View doesn’t work in Standard Mode. So I’ve also overwritten some functions to make it OK in IE8, IE9 and IE10: fix_grid_sp2010.js. This file must be called at the bottom of your masterpage (in my case it’s just after the </form>
) with something like :
<script type="text/javascript"> // <![CDATA[ if (typeof SP !== "undefined" && typeof SP.JsGrid !== "undefined") document.write('<script type="text/javascript" src="/dir/_catalogs/masterpage/My_Standard/js/fix_grid_sp2010.js"></'+'script>'); // ]]> </script>
I know this is an old post, but i believe that your second script (fix_grid_sp2010.js) is actually the earlier fix_sp2010.js file instead. Any chance you can re-post the correct second .js file??
Thank you!!
MaximusB > I just forgot to add « _grid_ » in the file path 🙂 I fixed it.
Thanks so much! Works like a charm!! I have been trying to get this working for a couple of weeks already.
I’m glad that helped you 🙂