Cold Fusion - PowerPoint PPT Presentation

About This Presentation
Title:

Cold Fusion

Description:

Works at the server level so no time/bandwidth is wasted ... META HTTP-EQUIV='refresh' value='3;AnotherCFMpage.cfm' Server Configuration (IIS , NES ... – PowerPoint PPT presentation

Number of Views:78
Avg rating:3.0/5.0
Slides: 19
Provided by: shlomy5
Category:
Tags: cold | fusion | httpequiv

less

Transcript and Presenter's Notes

Title: Cold Fusion


1
Cold Fusion JavaScript
2
Cold Fusion JavaScript
3
Redirection
4
CFML Redirection
ltcflocation urlAnotherCFMpage.cfm
addtokennogt
  • ltcflocationgt works at the server level

Redirect
5
CFML Redirection
Main Advantages
  • Works at the server level so no time/bandwidth is
    wasted
  • Ability to automatically add CFID and CFTOKEN

Main Disadvantages
  • No cookies can be set in the same page with
    cflocation
  • Can not redirect to a specific frame

6
JAVASCRIPT Redirection
ltSCRIPT LANGUAGEJAVASCRIPTgt document.location.h
ref'AnotherCFMpage.cfm' lt/SCRIPTgt
  • ltSCRIPTgt works at the browser (client) level and
    is processed depending on its location in the
    html file

Redirect
7
JAVASCRIPT Redirection
Main Advantages
  • Can set cookies
  • Can redirect to a specific frame
  • Can redirect to several frames at the same time

Main Disadvantages
  • Takes additional time / bandwidth because it
    works on the client side
  • Cannot redirect Browsers not supporting
    javascript or with javascript turned off.

8
Other Methods
  • ltMETA HTTP-EQUIVrefresh value3AnotherCFMpage
    .cfmgt
  • Server Configuration (IIS , NES )

9
Validation
10
CFML Validation
  • Adding
    ltinput typetext nameNamegt
    ltinput
    typehidden nameName_Requiredgt
  • Writing your own validation code in CFML

11
CFML Validation
Main Advantages
  • Browser Independent
  • Fast Development ,Integrated into cold fusion

Main Disadvantages
  • Takes additional time / bandwidth because it
    works on the server side
  • Correction requires resubmission . Even more
    proccessing / bandwith time

12
JAVASCRIPT Validation
  • Using the validate attribute of ltcfinputgt or
    ltcftextinputgt (CFFORM required)
  • Using the onValidate atttibute of ltCFSELECTgt ,
    ltCFTREEgt etc.. (CFFORM required)
  • Writing your own javascript validation code

13
JAVASCRIPT Validation
Main Advantages
  • Saves Bandwith / Server time validation done
    immidietly
  • Correction without resubmission

Main Disadvantages
  • Browser dependent
  • Inability to handle very large arrays of data

14
Presentation
15
Using Custom Tags for GUI
  • Intuitive Interface
  • Unlimited by HTML FORM elements
  • Communicate with JAVA applets

Example Page
16
Using CF/JS/DHTML
  • Advanced interface design
  • Makes the application Alive

Example Page
17
CFMLjsLibrary
  • A complete library containing all possible CFML
    functions translated into JavaScript.
  • Use same syntax as in CFML .
  • A good way to start learning JavaScript if you
    already know CFML.

Example Page
18
QA
shlomyg_at_icesinc.com
Write a Comment
User Comments (0)
About PowerShow.com