Java Script not working

Ask for help about NoScript, no registration needed to post
prabhatbolia@gmail.com

Java Script not working

Post 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
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Java Script not working

Post 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)
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
Post Reply