Forums

This topic is locked

skipping to next field

Posted 26 Apr 2005 05:18:49
1
has voted
26 Apr 2005 05:18:49 Matt Millican posted:
Hi all,
I was wondering how you make a form field so that when you enter say 4 digits, it moves to the next field automatically. For example, you're entering a CC #. 4 groups of 4 digits each. Any ideas??

Thanks
Matt

Matt Millican
InternetMill.com
www.internetmill.com
(XP Pro / Dreamweaver MX / Access XP Pro/ MS SQL / ASP / VB Script / PHP, mySQL / Photoshop / Fireworks)

Replies

Replied 27 Apr 2005 01:51:26
27 Apr 2005 01:51:26 Chris Charlton replied:
This would require JavaScript. You can hand-code this, or hunt for an extension to help, like InterAKT's MX Widgets or something like that.

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 28 Apr 2005 17:48:15
28 Apr 2005 17:48:15 Chris Charlton replied:
For more guidance, I just thought of it now, is using <i>onchange</i> attribute on each form field to run a JS function. You'll need that function to know which form field it's on, and what its limits are, then push the <i>focus</i> to the next form field. Not an easy (short) script, so looking for an extension will save your brain & hair pulling. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 04 May 2005 22:37:11
04 May 2005 22:37:11 Matt Millican replied:
Chris, Thanks for the suggestions. I'm working on trying to write the JS function at the moment. If anyone's interested in seeing it when I'm done, let me know. I'll be glad to share it <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Matt Millican
InternetMill.com
www.internetmill.com
(XP Pro / Dreamweaver MX / Access XP Pro/ MS SQL / ASP / VB Script / PHP, mySQL / Photoshop / Fireworks)

Reply to this topic