@using CaptchaMvc.HtmlHelpers
<h1 class="spacer-20">@T("Reset your password")</h1>
@using (Html.BeginFormAntiForgeryPost("/Users/Account/LogOn/ForgotPassword", FormMethod.Post))
{
@Html.Hidden("url_success", string.Empty)
@Html.Hidden("url_fail", string.Empty)
@Html.ValidationSummary()
<div class="login-page">
<h3>@T("Your username")</h3>
@Html.TextBox("username", string.Empty, new { maxlength = 50 })
@Html.MathCaptcha()
<div class="spacer-40">
<input id="btnSubmit" class="critical button" type="submit" value="@T("Submit")" />
</div>
<div class="spacer-20"></div>
</div>
}
<script type="text/javascript">
$(function () {$('#b20b155dd1fb4b6d92d9a47ddf2550c4').show();})
function ______c0f11654da8c4103bc4724cc881fc967________() { $('#b20b155dd1fb4b6d92d9a47ddf2550c4').hide(); $.post("", { t: $('#CaptchaDeText').val(), __m__: "0" }, function(){$('#b20b155dd1fb4b6d92d9a47ddf2550c4').show();}); return false; }</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
//OR using
@Scripts.Render("~/bundles/jquery")
jQuery( document ).ready(function( $ ) {
//You can now use $ as your jQuery object.
});
<!DOCTYPE html>
<html lang="en-US"><head><meta content="IE=edge" http-equiv="X-UA-Compatible" /><title>Lost Password</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="robots" content="noindex,nofollow,noarchive" />
<meta name="bu" content="IPG" />
<meta name="lifecycle" content="presales.consideration" />
<meta name="segment" content="Commercial.Large" />
<meta name="target_country" content="us" />
<meta name="page_content" content="Products">
<meta name="web_section_id" content="R11826" />
<meta content="hfcaas.2" name="hp_inav_version" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="/Modules/Draftfcb.Orchard.Common/Styles/dropdowns-and-facets.css" rel="stylesheet" type="text/css" />
<link href="/Themes/HpExperience/Styles/screen.css" rel="stylesheet" type="text/css" />
<link href="/Themes/HpExperience/Styles/quotes.min.css" rel="stylesheet" type="text/css" />
<link href="/Themes/HpExperience/Styles/PreLogin-09252014.css" rel="stylesheet" type="text/css" />
<link href="/Themes/HpExperience/Styles/purchasedge-09252014.css" rel="stylesheet" type="text/css" />
<script src="/Modules/Orchard.jQuery/scripts/jquery-1.9.1.js" type="text/javascript"></script>
<script src="/Modules/Draftfcb.Orchard.Common/scripts/jquery-migrate-1.2.1.js" type="text/javascript"></script>
<script src="/Modules/Draftfcb.Orchard.Common/scripts/inheritance.js" type="text/javascript"></script>
<script src="/Modules/Draftfcb.Orchard.Common/scripts/drop-downs-and-facets-03052014.js" type="text/javascript"></script>
<meta content="Orchard" name="generator" />
<link href="https://ssl.www8.h.com/us/en/images/i/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<!--[if lt IE 9]>
<script type="text/javascript" src="//ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<!--[if lte IE 9]>
<link rel="stylesheet" href="/Themes/HpExperience/Styles/ie.css" media="all">
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="/Themes/HpExperience/Styles/ie7-08282014.css" media="all">
<script type="text/javascript" src="/Themes/HpExperience/scripts/ie7json.js"></script>
<script type="text/javascript" src="/Themes/HpExperience/scripts/json2.js"></script>
<![endif]-->
<script type="text/javascript" language="javascript" src="https://ssl.www8.hp.com/ww/en/system/include/privacy_cookie.JS"></script>
<script type="text/javascript" language="javascript">
var hpmmd = window.hpmmd || { type: 'Cleansheet Wash', page: {}, product: {}, user: {}, promo: {}, legacy: {} };
hpmmd.account = 'hpcspurchasedge';
hpmmd.page['name'] = 'Lost Password';
hpmmd.page['section'] = 'PE';
hpmmd.page['conv73'] = '';
hpmmd.page['conv74'] = '';
hpmmd.page['conv75'] = '';
</script>
</head>
<body>
<div id="page-wrapper">
<div class="screen-reader noprint">[<a href="#content" title="Skip to main content." accesskey="2">Skip to main content.</a>]</div>
<div id="pageheader">
<div class="zone zone-header">
<article class="widget-internal-sign-in widget-header widget-html-widget widget">
<form action="/Users/Account/LogOn/SignIn" method="post"><input name="FailRedirect" value="" type="hidden" />
<table border="0" cellpadding="0" cellspacing="0" id="sign-in-form">
<tbody>
<tr>
<td><label class="label-required" for="username">Username <span>*</span></label></td>
<td><label class="label-required" for="password">Password <span>*</span></label></td>
<td></td>
</tr>
<tr>
<td><input name="username" id="username" type="text" /></td>
<td><input name="password" id="password" type="password" /></td>
<td><input value="Sign in" class="button critical" type="submit" id="sign-in-button" /></td>
</tr>
</tbody>
</table>
<div><span>Forgot your <a href="/Users/Account/LogOn/LostUsername">username</a> or <a href="/Users/Account/LogOn/LostPassword">password</a>?</span></div>
</form>
</article>
<article class="widget-header widget-html-widget widget">
<div id="HeaderLogoAndText"><img id="PELogo" src="/Themes/HExperience/Content/Images/hp.png" alt="TP" />
<h2 id="PEHeaderText">Welcome to PE</h2>
</div>
</article></div>
<div class="navigation" id="navigation"><div class="zone zone-navigation">
<article class="widget-navigation widget-menu-widget widget">
<nav>
<ul class="menu menu-pre-login-menu-channel-neutral">
</ul>
</nav>
</article></div></div>
</div>
<div id="pe-page-content" class="with-right-rail">
<div class="zone zone-content"><h1 class="spacer-20">Reset your password</h1>
<p>Type your username and click Submit to receive an email with instructions on how to reset your HP PurchasEdge password. If you continue to have problems signing in, contact the PurchasEdge Support Center at 1-888-264-6599.</p>
<form action="/Users/Account/LogOn/ForgotPassword" method="post"><input id="url_success" name="url_success" type="hidden" value="" /><input id="url_fail" name="url_fail" type="hidden" value="" /><div class="validation-summary-valid" data-valmsg-summary="true"><ul><li style="display:none"></li>
</ul></div><div class="login-page">
<h3>Your username</h3>
<input id="username" maxlength="50" name="username" type="text" value="" />
<script type="text/javascript">
$(function () {$('#e6e6dd7971494e5fab28764ddceda29d').show();})
function ______c9e50326ca8a482cbef3dff2d14e2838________() { $('#e6e6dd7971494e5fab28764ddceda29d').hide(); $.post("", { t: $('#CaptchaDeText').val(), __m__: "0" }, function(){$('#e6e6dd7971494e5fab28764ddceda29d').show();}); return false; }</script>
<br/>
<img id="CaptchaImage" src=""/><input id="CaptchaDeText" name="CaptchaDeText" type="hidden" value="496a1c9f2678452db0a82c7080fd3eb8" /> <br/><a href="#CaptchaImage" id="e6e6dd7971494e5fab28764ddceda29d" onclick="______c9e50326ca8a482cbef3dff2d14e2838________()" style="display:none;">Refresh</a><br/>The answer is<br/><input autocomplete="off" autocorrect="off" id="CaptchaInputText" name="CaptchaInputText" type="text" value="" /><br/>
<div class="spacer-40">
<input id="btnSubmit" class="critical button" type="submit" value="Submit" />
</div>
<div class="spacer-20"></div>
</div>
<input name="__RequestVerificationToken" type="hidden" value="xSYwEn6YB1CegZfzC9M8sgkZAu9lqq_23s3PfMOxz4LWhbpi1mMIdQDP2kt86wK2O_JXv0B5EooQUux025S5aq0HyaaISWJAYsSF5I-PWwJTbWhFEixzK8mwGopv5_oJ4xwl2R78tRw6j8-jjCREAYMl11P86vQNn5lq_7_Hm2I1" /></form>
</div></div>
<div id="right-rail"><div class="zone zone-right-rail">
<article class="widget-right-rail widget-html-widget widget">
<div><select id="exportType" class="special-dropdown reverse secondary dropdown-links" name="exportType" title="Contact us" onchange="window.location.href = this.value;">
<option id="defaultOption" class="hiddenOption" value=""></option>
<option class="telephone" value="tel:+1-888-264-6599">1-888-264-6599</option>
<option class="fax" value="fax:+1-888-264-6598">Fax: 1-888-264-6598</option>
<option class="email" value="mailto:support@purchasedge.com">support@purchasedge.com</option>
</select></div>
</article></div></div>
<div class="footer-wrapper">
<div class="footer-and-legal">
<a href="http://www8.hp.com/us/en/privacy/privacy.html">Privacy Commitment</a>
<span class="pipe">|</span>
Using this site means you accept its <a href="http://www8.hp.com/us/en/privacy/terms-of-use.html">terms</a>.
<div>© Copyright 2018 TP Development Company, LP. The information contained herein is subject to change without notice.</div>
</div>
</div>
</div>
<script src="/Modules/Draftfcb.Orchard.Common/scripts/jquery.placeholder.js" type="text/javascript"></script>
<script src="/Modules/Draftfcb.Orchard.Common/scripts/jquery.customInput-05162013.js" type="text/javascript"></script>
<script src="/Modules/Draftfcb.Orchard.Common/scripts/PurchasEdgeInputInitializer-08302013.js" type="text/javascript"></script>
<script src="//www.hp.com/cma/ng/lib/bootstrap/metrics.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery('input[type=text],input[type=password]').each(function (index, value) {
var elem = jQuery(this);
elem.bind("keyup input paste", function(event){
if (elem.val().length > 0) {
elem.addClass("text-entered");
} else {
elem.removeClass("text-entered");
}
});
});
});
</script>
</body>
</html>
<script src="/Modules/Orchard.jQuery/scripts/jquery-1.9.1.js" type="text/javascript"></script>
jQuery( document ).ready(function( $ ) {
$('#e6e6dd7971494e5fab28764ddceda29d').show();
...
});
If you look at my original post , I have posted the Captcha codeYes - but I was trying to establish if there were other errors besides the one you reported - errors that might indicate a failed load for script. When I asked you came back with what you have shown us already - which I assumed meant no other errors.
<script type="text/javascript">
$(function () {$('#b20b155dd1fb4b6d92d9a47ddf2550c4').show();})
function ______c0f11654da8c4103bc4724cc881fc967________() { $('#b20b155dd1fb4b6d92d9a47ddf2550c4').hide(); $.post("", { t: $('#CaptchaDeText').val(), __m__: "0" }, function(){$('#b20b155dd1fb4b6d92d9a47ddf2550c4').show();}); return false; }</script>
Being generatedjQuery(function($) ... // rest stays the same
If it is being generated by a third party then we would have to deal with that differently.
<script>
$(function() {
$('body').html('test');
});
</script>
And then if that fails try this<script>
jQuery(function($) {
$('body').html('test');
});
</script>