Hello, Is DNN 4.7.0 support the Java script or not? Bcoz when i try to add java script code on .ascx pages button control it gives the error. <script language="javascript" type="text/javascript"> function Msg() { if (document.Form1.File1.value=="") { alert("First select the File."); } else { strUniqueID = Math.floor(Math.random() * 1000000) * ((new Date()).getTime() % 1000); thePos = document.Form1.action.indexOf("?"); if (thePos >= 0) document.Form1.action = document.Form1.action.substring(0, thePos); document.Form1.action += "?guid=" + strUniqueID; window.open("VBProgressBar.aspx?guid=" + strUniqueID,"","toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,height=275,width=625,top=300,left=300"); document.Form1.submit(); return true; } } </script> <script language="javascript" type="text/javascript"> function Msg() { if (document.Form1.File1.value=="") { alert("First select the File."); } else { strUniqueID = Math.floor(Math.random() * 1000000) * ((new Date()).getTime() % 1000); thePos = document.Form1.action.indexOf("?"); if (thePos >= 0) document.Form1.action = document.Form1.action.substring(0, thePos); document.Form1.action += "?guid=" + strUniqueID; window.open("VBProgressBar.aspx?guid=" + strUniqueID,"","toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,height=275,width=625,top=300,left=300"); document.Form1.submit(); return true; } } </script>
<asp:button id="btnUpdate" runat="server" Text="Upload" Height="24" Width="80px" style="WIDTH: 80px; HEIGHT: 24px" onclick="Msg();">
ERROR:-
DotNetNuke.Services.Exceptions.ModuleLoadException:
C:\Inetpub\wwwroot\DotNetNuke\Website\DesktopModules\Sharing\FileUploading.ascx(64):
error BC30456: 'Msg' is not a member of
'ASP.desktopmodules_sharing_fileuploading_ascx'. --->
System.Web.HttpCompileException:
C:\Inetpub\wwwroot\DotNetNuke\Website\DesktopModules\Sharing\FileUploading.ascx(64):
error BC30456: 'Msg' is not a member of
'ASP.desktopmodules_sharing_fileuploading_ascx'. at
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath
virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
allowBuildInPrecompile) at
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp,
Boolean allowBuildInPrecompile) at
System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at
System.Web.UI.TemplateControl.LoadControl(String virtualPath) at
DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule,
PortalSettings PortalSettings) in
C:\Inetpub\wwwroot\DotNetNuke\Library\Components\Skins\Skin.vb:line 496 --- End
of inner exception stack trace ---
Thanks in advance Himanshu Jain Indore, India.
|