Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

9 Dynamic Text and Typography > Plug-in 80: No Punctuation (nopunct)

PLUG-IN 80: No Punctuation (nopunct)

Sometimes you want just the bare text to be posted to a web form, and not any punctuation like exclamation points and question marks. You can do this easily with Plug-in 80, which strips them all out for you.

For example, in Figure 9-8 the user is being prompted for a reminder phrase that will be used to prompt them if they forget their password.

image

FIGURE 9-8 This input contains several punctuation characters.

But in Figure 9-9 the user has moved the mouse away and so the punctuation has been automatically filtered out.

Variables, Functions, and Properties
image
About the Class

This class is triggered whenever the mouse moves out of the object employing it, at which point it calls the CleanupString() function to strip out all punctuation characters from it.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial