Hi Took you suggestion on dealing with the dynamically created form. While investigating this issue module code to create form:
sub CreateLoginUserFailedForm { my ($message) = @_; print "Content-type: text/html \n\n"; print qq| $htmlInvalidLoginheader $htmlheader2 <!--$htmlheader3--> <!-- Dynamically created form from manage_users.cgi line 779--> <script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> <script type="text/javascript"> var attempts = $manageusers::attempts; $(document).ready(function () { document.getElementById('logins').innerHTML= attempts; }); console.log(attempts); </script>
Here is the same code after rendering to the browser: The var attempts is getting the count number from the global variable and increments each time the login fails. Take note of this: 1926 1926document as opposed to $(document The code
$(document).ready(function () { document.getElementById('logins').innerHTML= attempts;
Fails to execute
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>< +head><title>Invalid Login Data Feedback Form</title> <base href="http://www.jala-mi.org/"><meta http-equiv="Content-Type" c +ontent="text/html;charset=iso-8859-1"> <!--<link rel="StyleSheet" href="/css/jala.css" type="text/css">--> <!-- Dynamically created form from manage_users.cgi line 779--> <script src="https://code.jquery.com/jquery-1.9.1.min.js"></script> <script type="text/javascript"> var attempts = 1; 1926 1926document).ready(function () { document.getElementById('logins').innerHTML= attempts; }); console.log(attempts); </script>
In reply to Re^2: Cross-Origin Request Blocked
by tultalk
in thread Cross-Origin Request Blocked
by tultalk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |