Hello,

Just a quick one.

Does anyone know what is wrong with this scenario:

We have a content management system,  when a user edits a page they can
preview the page by clicking a form button.
The page preview opens a new window and should display the page.

Now....  the problem.... :

The preview button runs a script which changes the form action page to the
preview page and submits the form.

I send the value from the form to the preview page which uses a CFLocation
to redirect to the correct display page.

I can dump the values out on the screen no problem but as soon as I stick in
some CFLocations the screen is blank.


Code:

<cfswitch expression="#content#">
        <cfcase value="Introduction">
                <cfif tabletype EQ "live">
                        <cfoutput>
                                 <cflocation
url="New_intro_pageLive.cfm?id=#id#&&menu_item=#menu_item#&&headline=#headli
ne#&&subtitle=#subtitle#&&body=#body#&&template=#template#">
                        </cfoutput>
                <cfelse>
                        <cfoutput>      
                        <cflocation
url="New_intro_page.cfm?id=#id#&&menu_item=#menu_item#&&headline=#headline#&
&subtitle=#subtitle#&&body=#body#&&template=#template#">
                        </cfoutput>
                </cfif>
        </cfcase>
        <cfdefaultcase>
                just some text for the mean time
        </cfdefaultcase>
</cfswitch>

Any advice ?

Thanks,

Darren Adams
Web Developer
Marketing Department
Systems Union

Email: [EMAIL PROTECTED]

"Data + Structure = INFORMATION"
______________________________________________________________________
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

Reply via email to