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, 11:51 AM
12-10-2009, 03: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, 03:46 AM
I'm not that concerned about that - It was only test code to test the comparison function ;)
12-10-2009, 04:02 AM
Originally Posted by Rohaq
I'm not that concerned about that