开发者

$.get not get HTML <script tag, making it difficult to display ReCaptcha.GetHtml

开发者 https://www.devze.com 2023-04-09 02:37 出处:网络
I use JQueryUI to display the form in a dialog, however as it has @ReCaptcha.GetHtml tags scripts, the $.get does not bring these tags.

I use JQueryUI to display the form in a dialog, however as it has @ReCaptcha.GetHtml tags scripts, the $.get does not bring these tags.

It returns:

<noscript>
         <iframe frameborder="0" src="http://www.google.com/recaptcha/api/noscript?xxxx" height="300px" width="500px"> </ iframe>
         <br /> <br />
         <textarea cols="40" name="recaptcha_challenge_field" rows="3"> </ textarea>
         <input type="hidden" name="recaptcha_response_field" value="manual_challenge" />
     </ noscript>

How do I make an ajax c开发者_运维百科all and return to use these scripts @ReCaptcha.GetHtml

I found this post here on stackoverflow but he continued on his course.


If js is off, you cannot call $.get or another js function, respectively method doesn't return noscript

0

精彩评论

暂无评论...
验证码 换一张
取 消