Page 1 of 1
Java Script not working
Posted: Tue Aug 11, 2009 9:39 am
by prabhatbolia@gmail.com
Dear Sir,
I am using online banking site. Even after putting ID and password the button on this site does not work.
website is
https://net.rajbank.com/BankAwayRetail/ ... stId=52656
please provide the solution
with regards
prabhat
Re: Java Script not working
Posted: Tue Aug 11, 2009 10:13 am
by Giorgio Maone
This is not a NoScript issue.
Actually, if you disable NoScript from
Tools|Error Console, you'll keep having the same problem, which is caused by buggy incompatible JavaScript code on that page:
Code: Select all
newHidden=document.createElement("<INPUT TYPE='HIDDEN' NAME='isEncrypted' VALUE = 'N'>")
The
createElement() method does not accept full HTML fragments, but only the element name (e.g. "INPUT"), therefore Firefox throws a
String contains an invalid character = NS_ERROR_DOM_INVALID_CHARACTER_ERR exception.
It's up to the bank to correct their bugs, but you can work around by running the following
bookmarklet on that page every time before logging in:
Code: Select all
javascript:document.createElement = function(t) { delete document.createElement; var e; if (/</.test(t)) { e = document.createElement("div"); e.innerHTML=t; e = e.firstChild; } else e = document.createElement(t); document.createElement = arguments.callee; return e; }; void(0)