in reply to Re^2: Cross-Origin Request Blocked
in thread Cross-Origin Request Blocked
You're using double quotes, which interpolate Perl variables:
print qq| $htmlInvalidLoginheader $htmlheader2 ... $(document).ready(function () { document.getElementById('logins').innerHTML= attempts; });
I recommend that as a first step you split up the printing into the two parts - one part where you want Perl variables interpolated, and the other part where you output verbatim strings. Use single quotes for the second part. See also perlop.
In the middle run, you should look at using one of the many templating systems instead.
|
|---|