Yes you could send them to another template (pop-up or not), but you just have to make
sure there is
an easy to use mechanism for the user to confirm that they are happy with the display
and to go
ahead and commit to the database.
As far as the regualr expressions go...just pmp the form vars through them and use the
values you
set for the display page.
Bryan Stevenson
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
p. 250.920.8830
e. [EMAIL PROTECTED]
---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
----- Original Message -----
From: "Ian Vaughan" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2002 6:28 AM
Subject: Re: Advanced Coldfusion - Generating Preview Pages ???
> Eric
>
> does it have to be in the form action page ???
>
> Could it not be a seperate template and when they click on the preview pa
> ge
> button it opens a new broswer window with the preview template with the d
> ata
> conatined in the form variables displayed as if it was viewed through CF
> in
> a web browser as an end user/
>
>
> Also in my processing (action page) there are some regular expressions su
> ch
> as
>
> <cfset storydate = form.event_month & "/" & form.event_day & "/" &
> form.event_year>
> <cfset storydate = #CreateODBCDate(storydate)#>
> <cfset formatted_date = dateformat(storydate, "MM/DD/YYYY")>
> <cfset content = REReplacenocase(content, "</*font[^<>]*>", "", "ALL")>
> <cfset content = REReplacenocase(content, "</*span[^<>]*>", "", "ALL")>
>
> So how would my preview page actually look like to display the form
> variables ?
>
> Ian
>
>
>
> ----- Original Message -----
> From: "Carlisle, Eric" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, January 18, 2002 1:59 PM
> Subject: RE: Advanced Coldfusion - Generating Preview Pages ???
>
>
> > Sure...
> > In the template that processes the form entries-->
> >
> > <cfif isDefined("FORM.submit")>
> > <cfif FORM.submit eq "Preview">
> >
> > ** code to preview **
> > (you could include the template that outputs to end users - just
> > modify it to also handle FORM variables when applicable).
> >
> > <cfelseif FORM.submit eq "Add">
> >
> > ** code to insert record to database **
> >
> > </cfif>
> >
> > </cfif>
> >
> >
> >
> >
> > -----Original Message-----
> > From: Ian Vaughan [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 18, 2002 8:48 AM
> > To: CF-Talk
> > Subject: Advanced Coldfusion - Generating Preview Pages ???
> >
> >
> > I am using standard html forms in a browser to allow admin users to
> > add/modify entries to an oracle database via Coldfusion.
> >
> > When the form is submitted these changes are then sent to the relevant
> > fields in the database table.
> >
> > And a seperate coldfusion template displays the output to end web
> > users.
> >
> > At present this is all done automatically when the user submits the
> > form.
> >
> > What I would like to do, is offer the administration user (who
> > adds/modifies
> > stories) a preview option of how the page would look in the web
> > browser,
> > before they actually submit their details to the database, so they have
> > an
> > idea of how the information they have just entered in the relevant form
> > fields would look when generated from coldfusion and viewed by an end
> > user
> > in their browser.
> >
> >
> > Is this process viable with Coldfusion , if so have any list members
> > achieved anything like this?
> >
> > Ian
> >
> >
> >
>
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists