Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 25, 2012 11:05 AM by teh munk
Member
698 Points
919 Posts
Jun 20, 2012 07:05 PM|LINK
Yes...Here is my code in the master page _Root.cshtml
@{ var displayMiniProfiler = EngineContext.Current.Resolve<Nop.Core.Domain.StoreInformationSettings>().DisplayMiniProfilerInPublicStore; //resources Html.AppendScriptParts(@Url.Content("~/Scripts/public.js")); Html.AppendScriptParts(@Url.Content("~/Scripts/MicrosoftMvcAjax.js")); Html.AppendScriptParts(@Url.Content("~/Scripts/MicrosoftAjax.js")); Html.AppendScriptParts(@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")); Html.AppendScriptParts(@Url.Content("~/Scripts/jquery.validate.min.js")); Html.AppendScriptParts(@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")); Html.AppendScriptParts(@Url.Content("~/Scripts/jquery-1.7.1.min.js")); } <!DOCTYPE html> <html @Html.Partial("LanguageAttributes")> <head> <title>@Html.NopTitle(true)</title> <meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> <meta name="description" content="@(Html.NopMetaDescription())" /> <meta name="keywords" content="@(Html.NopMetaKeywords())" /> <script type="text/javascript" src='http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js'></script> <script src="http://jquerycustomselectbox.googlecode.com/svn/trunk/WebRoot/password_strength/password_strength_plugin.js" type="text/javascript"></script> </head>
Participant
1466 Points
297 Posts
Jun 21, 2012 12:16 AM|LINK
Remove from _Root.cshtml;
<script type="text/javascript" src='http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js'></script>
Change;
<script type="text/javascript"> $(function () { $("#Password").passStrength(); }) </script> // To <script type="text/javascript"> $(function () { $("#Password").passStrength({ userid: "#Email"); }) </script>
Jun 21, 2012 01:26 PM|LINK
I removed the above script from _Root.cshml
and changed the previous code on Register.cshtml to this
<script type="text/javascript"> $(function () { $("#Password").passStrength({ userid: "#Email"); }) </script>
still not working and getting same warnings that I posted in my previous posts in screenshots...
please help.
Jun 25, 2012 11:05 AM|LINK
Can you use Firebug or something similar to ensure your scripts are being loaded when viewing the Register page?
jeffcarter
Member
698 Points
919 Posts
Re: how to add jquery password strength meter in asp.net mvc ?
Jun 20, 2012 07:05 PM|LINK
Yes...Here is my code in the master page _Root.cshtml
@{ var displayMiniProfiler = EngineContext.Current.Resolve<Nop.Core.Domain.StoreInformationSettings>().DisplayMiniProfilerInPublicStore; //resources Html.AppendScriptParts(@Url.Content("~/Scripts/public.js")); Html.AppendScriptParts(@Url.Content("~/Scripts/MicrosoftMvcAjax.js")); Html.AppendScriptParts(@Url.Content("~/Scripts/MicrosoftAjax.js")); Html.AppendScriptParts(@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")); Html.AppendScriptParts(@Url.Content("~/Scripts/jquery.validate.min.js")); Html.AppendScriptParts(@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")); Html.AppendScriptParts(@Url.Content("~/Scripts/jquery-1.7.1.min.js")); } <!DOCTYPE html> <html @Html.Partial("LanguageAttributes")> <head> <title>@Html.NopTitle(true)</title> <meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> <meta name="description" content="@(Html.NopMetaDescription())" /> <meta name="keywords" content="@(Html.NopMetaKeywords())" /> <script type="text/javascript" src='http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js'></script> <script src="http://jquerycustomselectbox.googlecode.com/svn/trunk/WebRoot/password_strength/password_strength_plugin.js" type="text/javascript"></script> </head>teh munk
Participant
1466 Points
297 Posts
Re: how to add jquery password strength meter in asp.net mvc ?
Jun 21, 2012 12:16 AM|LINK
Remove from _Root.cshtml;
Change;
<script type="text/javascript"> $(function () { $("#Password").passStrength(); }) </script> // To <script type="text/javascript"> $(function () { $("#Password").passStrength({ userid: "#Email"); }) </script>jeffcarter
Member
698 Points
919 Posts
Re: how to add jquery password strength meter in asp.net mvc ?
Jun 21, 2012 01:26 PM|LINK
I removed the above script from _Root.cshml
and changed the previous code on Register.cshtml to this
<script type="text/javascript">
$(function () {
$("#Password").passStrength({ userid: "#Email");
})
</script>
still not working and getting same warnings that I posted in my previous posts in screenshots...
please help.
teh munk
Participant
1466 Points
297 Posts
Re: how to add jquery password strength meter in asp.net mvc ?
Jun 25, 2012 11:05 AM|LINK
Can you use Firebug or something similar to ensure your scripts are being loaded when viewing the Register page?