see how the HTML element ID is "form1:ssn?" but the parameter autotab() is "ssn?". Try adding the "form1:" prefix to the function parameter.
I can now see why document.getElementByID('ssn?') would fail. The IDs don't match.
Nathan.
----- Original Message ----
From: Nick Arndt <nick.arndt@xxxxxxxxx>
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Sent: Monday, April 27, 2009 2:49:55 PM
Subject: Re: [WEB400] auto tab between jsf form fields
if(original.getAttribute &&
(original.value.length==original.getAttribute("maxlength"))) {
elem = document.getElementById(destination);
elem.focus(); *** It looks like it does not like
this line when I get the error when running the page ***
}
}
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.