Categories: Technical Posted by jasond727 on 7/1/2010 4:35 PM | Comments (0)

It is available for download at http://moviesformyblog.com. Have Fun!!

Posted by jasond727 on 6/30/2010 7:08 PM | Comments (0)

I like to go by versions and make sure it works so I have just upgraded to the version 1.5.  Yes I am behind the times but I have been working on other things.  It seems to have went well.  I think tomorrow I will upgrade to the newest version 1.6.

Categories: Technical Posted by jasond727 on 6/30/2010 6:27 PM | Comments (0)

I have finally figured out how to make Jquery work with any version of BlogEngine.  The best way to declare the scripts is in the .cs file of the masterpage of the theme that is being used.  Here is a sample code block to ensure that it will work.  Just place it in the Page Load method.

HtmlGenericControl js = new HtmlGenericControl("script");
js.Attributes["type"] = "text/javascript";
js.Attributes["src"] = Request.ApplicationPath + "/scripts/jquery.js";
Page.Header.Controls.Add(js);

HtmlGenericControl js2 = new HtmlGenericControl("script");
js2.Attributes["type"] = "text/javascript";
js2.InnerText = "$j = jQuery.noConflict();";
Page.Header.Controls.Add(js2);

Yeah,  I haven't tried it on version 1.6 and they say you don't need to use the noConflict method but at least the fist line will gauruntee it will work on any deployment.