I’ve got a web form textbox with text mode set to multiple. Recently a feature stopped working and I can’t figure out what happenned. When a user hit the [Return] key two consecutive times, the webform would trigger a submit button event via a client side javascript. Like this:
function postPage() {
var inputString = document.getElementById("Search1_AccordionPane2_content_txtSearchText").value;
if (inputString.match(/(\r\n){2,}/)) {
document.getElementById("Search1_AccordionPane2_content_txtSearchText").click();
}
}
The code hasn’t changed, our users use IE8 on W7 and I suspect that this stopped working since going W7 or IE8. Also the browser settings are restricted by the group policy that I don’t control. Any ideas where to start debugging this?
Thank you,
Risho
try making the
\roptional with a following?so:/(\r?\n){2,}/, Just in case IE8 uses a single\ninstead of\r\nas a line terminator