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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.