I'm having some issues trying to write a function that compares two strings from textboxes. It works fine in IE, but falls over during testing in Chrome and Firefox. I've got a sample of the code here, but I'm unsure as to the best way to make this work across browsers:
var txtContent = new String(document.getElementById(arguments).value);
var confContent = new String(document.getElementById(arguments).value);
Any ideas on how I can get this function working across different browsers?
12-09-2009, 12:51 PM
12-10-2009, 04:42 AM
You have also an HTML error: your document has no Doctype. And the notation <br />
is specific to XHTML not to HTML. Make up your mind: either HTML Doctype and rules or XHTML Doctype and rules.
12-10-2009, 04:46 AM
I'm not that concerned about that - It was only test code to test the comparison function ;)
12-10-2009, 05:02 AM
Originally Posted by Rohaq
I'm not that concerned about that