June 11, 2013 -- 04:18 GMT (14:18 AEST)
Thursday, June 20, 2013
Wednesday, June 19, 2013
Upgrade Orchard 1.3 site from MVC3 (VS2010) to MVC4 (VS2012)
- Uses NuGet Package to install MVC4 into the project
- Manually change Rozer and MVC assembly configuration in the Web.Config files from old version to version 2 and 4. Add to Web.Config in each View folder of the project.
- Remove “@” if it is in and “@{}” block.
- Replace “jQueryUtils_TimePicker”
<configuration>
<system.web.webPages.razor>
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<pages pageBaseType="Orchard.Mvc.ViewEngines.Razor.WebViewPage">
<namespaces>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="System.Linq"/>
<add namespace="System.Collections.Generic"/>
<add namespace="Orchard.Mvc.Html"/>
</namespaces>
</pages>
</system.web.webPages.razor>
</configuration>
Sunday, June 16, 2013
Javascript scope in HTML page which contains iframe
If a HTML page contains a “iframe”, what is the relationship between the javascripts in the two HTML pages in terms of function/variable scope?