Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) JavaScript


Topic: AutoTab and backspace key
Conf: (P-PDF) JavaScript, Msg: 104484
From: gman
Date: 1/23/2004 04:00 PM

Below is a function that I am using to perform AutoTabbing functionality.

function AutoTabAlphaNumeric(doc, event, cNext)
{
var re = /^\w$/

if (event.willCommit == false) {
if (re.test(event.change) == false) {
app.beep();
event.rc = false;
} else {
doc.getField(cNext).setFocus();
}
}
}

It's based on a function that I grabbed from the PlanetPDF website one time or another in the past.

The issue that I have is that I am not able to delete an alpha numeric character that I have already entered. As can be seen in my code above I am of course trapping every keypress other than an alpha numeric but I don't know what the regular expression metacharacter is for the backspace key.

I have tried /[\b]/ but that doesn't seem to work.

I have also tried:
if (event.change.charCodeAt(0) == 8 ) { ...
but with no results.

Any help would be greatly appreciated.

Cheers

Gerard Corboz
IT Manager
Perform
www.perform.net.au

PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: Printable PDF bookmarks

If you're an avid reader, chances are that, like me, you are always misplacing your bookmarks. Of course, you can use a slip of paper, but why not download and print a spiffy design onto it first?

May 28, 2009
Search Planet PDF
more searching options...







Download PDF Creator

PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

FileOpen PDFNet SDK: PDF Component. Cross-platform PDF library

PDF Converter: Create, Convert PDF to Word/Excel QuickPDF: The Unrivaled PDF Developer Toolkit

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

No upcoming events

PDF Store Categories