Migliori Casino Non AamsUK Online Casinos Not On GamstopCrypto CasinoCasino En Ligne Bonus Sans Dépôt

Chris Ogden's Tango Snippets as of 98/08/02

BodyIncludeinclude body to set background color dynamically
CommentTango comments, not seen by the user
CopyrightInfoMatters Copyrights
CRLFmake local variable for carriage return/line feeds (esp. for redirects)
DeleteConfirmationjavascript "are you sure" alert if click a form delete button
DomainVarShowa quickly debug routine to show a domain's variables (see Var Inspector for a muc more robust routine)
DynamicPopupquick shell for creating a popup based on distinct dbase values
EBank Headeruse in EBank demos to make new app look/feel like rest of the application
Email Webmasteruses standard file path with module system for site by site custom config
Empty Arraytest to see if an array is empty in an IF
FileAction Omit LFsif comparing values from read files, need to nuke line feeds
FilePath to FileNameconvert a file path (from an uploaded file) and get it's name
Format Currencyquick format using server delimiters
FormatCurrency 0decimalshard coded currency format, no cents (note: no decimal point either)
FormatCurrency 2decimalshard coded currencty format to two decimal places
GoBacka variety of ways to give a "go back" button for forms. Note: we really never use these anymore. Instead, we take the user to the form, put a message at its top, and fill in their previous entries (from arrays)
 BrowserCased
 Javascript
 Plain
 Referrer
 TAFform
 TAFsearch 
HowManyInputform HTML for standard "HowMany" input (see StdLibs for range checking routine)
Include Filepath, sans @CGI,for included html files
MissingFieldsRED1validatesingle HTML for forms validation (vs. 2 separate pages) making validated fields red while retaining the previously entered information.
MissingFieldsRED2formroutine for the form itself to make invalid form elements red
NoCacheExpirehtml meta tag to ensure a page isn't cached in a browser (replaces "pragma-no-cache"
NoTimeoutmake custom scoped variables persistent
OSFilePathalways use this for file and external actions to keep portable (see StdLibs for auto-setting routines)
Page Headerwith Tango 3, we often branch/redirect among various modules. These snippets allow us to have a consistent mechanism to give users' status messages. For instance, in one web application, a project management system, a user entering a subproject might login, then jump to add a contact, come back with all their form information intact, jump to edit a designer, come back, etc. Throughout all this jumping around, the user receives relevant messages at the top of each page.
 Assign & Title Msg
 DocType
 Title
 pageHdrMsg
 Body
 ExamplePageHdr
Prefix Popupstandard forms input popup for person's prefix (Mr., Ms., etc.)
Redirect1 httpHdrgo to another page/TAF the "right" way
Redirect2 MetaRefreshgo to another page/TAF. warning: this can effectively "breaks" the user's back button since the refresh will throw them forward. Better way is to change the http header to a 302 code.
ServerNamethe current site's DNS name
SiteNamemulti-hosted site identifier
States Popupstandard forms input popup for US States
StdFTR@include for a standard footer
Submit Confirmationjavascript alert upon forms submission
Timeoutset variables to not expire
UserNameOrIPthe current user's DNS name or IP address
UserRef&Site;the site id plus user reference
UserReferenceuser reference to correctly key user globals
Validationjavascript and Tango form field validations (thanks to Mark Wickens for some of these)
 Complete Validation Suite
 EmailValidation
 JavaScript
 MaskCreditCardField 
 MaskIntlPhone 
 MaskIntlPhoneField 
 ValidatePhoneNums.tct 
 zForm Field Validation 
  ValidateBlank 
  ValidateBlankNot 
  ValidateCreditCard 
  ValidateFloat 
  ValidateFloatGreater 
  ValidateFloatLess 
  ValidateInteger  
  ValidateIntegerGreater 
  ValidateIntegerLess 
  ValidateIntlDate 
  ValidateLengthEqual 
  ValidateLengthGreater 
  ValidateLengthLess 
  ValidateNumBetween 
  ValidateDate 
VAR with Prefixesassign an array, setting it's prefixes and suffixes
Back to "Free Stuff"

Digital favorites