[Metacard] capturing the return key in a field
Ok, I give up. What's the secret? This should be obvious and simple, but I can't get any of the alternatives to work. I have a simple field that collects responses when given the focus, and I want to prevent the user from typing a return into the field. However, none of keyDown, rawKeyDown, etc. seem to do it. In the ref stack, it is implied for all that all I have to do is *not* pass the key if it is return and all should be fine, but regardless of what I do ***even if I pass nothing from the handler*** a return is still entered into the field. What gives? For example, the handler in the field scipt: on rawKeyDown x end rawKeyDown *still* puts a return in the field! I am more than a little baffled, not to say frustrated. Metacard PPC 2.4. -- Life results from the non-random survival of randomly varying replicators. -- Richard Dawkins John R. Vokey ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: [Metacard] capturing the return key in a field
Recently, John Vokey wrote: Ok, I give up. What's the secret? This should be obvious and simple, but I can't get any of the alternatives to work. I have a simple field that collects responses when given the focus, and I want to prevent the user from typing a return into the field. Put this into the script of your field: on returnInField end returnInField Regards, Scott _ Scott Rossi Tactile Media - Multimedia Design Creative Director Email: [EMAIL PROTECTED] Web: www.tactilemedia.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: [Metacard] capturing the return key in a field
John, Put this in your field's script: on returnInField end returnInField This will trap and not pass returns. To do the same for the Enter key, use: on enterInField end enterInField Hope this helps, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: John Vokey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 26, 2001 4:04 PM Subject: [Metacard] capturing the return key in a field Ok, I give up. What's the secret? This should be obvious and simple, but I can't get any of the alternatives to work. I have a simple field that collects responses when given the focus, and I want to prevent the user from typing a return into the field. However, none of keyDown, rawKeyDown, etc. seem to do it. In the ref stack, it is implied for all that all I have to do is *not* pass the key if it is return and all should be fine, but regardless of what I do ***even if I pass nothing from the handler*** a return is still entered into the field. What gives? For example, the handler in the field scipt: on rawKeyDown x end rawKeyDown *still* puts a return in the field! I am more than a little baffled, not to say frustrated. Metacard PPC 2.4. -- Life results from the non-random survival of randomly varying replicators. -- Richard Dawkins John R. Vokey ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: [Metacard] capturing the return key in a field
John Vokey wrote: Ok, I give up. What's the secret? This should be obvious and simple, but I can't get any of the alternatives to work. I have a simple field that collects responses when given the focus, and I want to prevent the user from typing a return into the field. However, none of keyDown, rawKeyDown, etc. seem to do it. In the ref stack, it is implied for all that all I have to do is *not* pass the key if it is return and all should be fine, but regardless of what I do ***even if I pass nothing from the handler*** a return is still entered into the field. What gives? For example, the handler in the field scipt: on rawKeyDown x end rawKeyDown *still* puts a return in the field! I am more than a little baffled, not to say frustrated. Metacard PPC 2.4. on returninfield exit returninfield end returninfield -- Life results from the non-random survival of randomly varying replicators. -- Richard Dawkins John R. Vokey Andu ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: [Metacard] capturing the return key in a field
andu a écrit : John Vokey wrote: Ok, I give up. What's the secret? This should be obvious and simple, but I can't get any of the alternatives to work. I have a simple field that collects responses when given the focus, and I want to prevent the user from typing a return into the field. However, none of keyDown, rawKeyDown, etc. seem to do it. In the ref stack, it is implied for all that all I have to do is *not* pass the key if it is return and all should be fine, but regardless of what I do ***even if I pass nothing from the handler*** a return is still entered into the field. What gives? For example, the handler in the field scipt: on rawKeyDown x end rawKeyDown *still* puts a return in the field! I am more than a little baffled, not to say frustrated. Metacard PPC 2.4. on returninfield exit returninfield end returninfield -- Life results from the non-random survival of randomly varying replicators. -- Richard Dawkins John R. Vokey Andu ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard Try : on returninfield put line 1 of fld the short name of me into fld the short name of me end returninfield Regards, Pierre Sahores WEB VPN applications databases servers Inspection académique de Seine-Saint-Denis Qualifier produire l'avantage compétitif ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard