Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Preview button in cfform

Guest
Feb 05, 2009 Feb 05, 2009
Much as the submission form on this site, i want to open a pop-up preview window so visitors can check content before posting....

shown is the code that i use for non-form instruction pop-up windows thruout the site...

i think code has to be inside cfform tag so all content is displayed in pop-up window

tnx in advance


TOPICS
Advanced techniques
770
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 05, 2009 Feb 05, 2009
It would be a lot easier to post to a page that displays whatever you want them to see along with something else they can select in order to complete whatever it was they are doing.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 05, 2009 Feb 05, 2009
Dan Bracuk,

the form you used, on this forum, to reply to my message has a "Preview" button that displays your content in a pop-up window... i just need to know the code to do the same on my site...

tnx
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 05, 2009 Feb 05, 2009
You could start by viewing the source code for this page.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 05, 2009 Feb 05, 2009
Dan Bracuk,

i don't know who you are but seems when i often put up a question, i get a series of replies from you that are of no use.

i have been looking at the code as i can get from view source and have not found the answer. if you know where i can actually download the cfm original pages, please point me there...

tnx in advance
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2009 Feb 06, 2009
This didn't give you any hints?

<input type="button" class="submit" name="Preview" value="Preview" onClick="winopen('prevmsg.cfm?formname=quickreplyfrm','previewmsg','710','500');" />
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 06, 2009 Feb 06, 2009
LATEST
Dan Bracuk,

thank you for your reply...

I tried your tag... error on page. all versions below. yes, did give name form as to your specs. one note is that form is in an iframe but even when i loaded as "top" still same problem

also tried retagging cfform, form

tried

<input name="Preview" type="button" value="Preview" onClick="MM_callJS('winopen(\'prevmsg.cfm?formname=quickreplyfrm','previewmsg','710','500');')">

<input name="Preview" type="button" onClick="MM_callJS('winopen(\'prevmsg.cfm formname=quickreplyfrm\',\'previewmsg\',\'710\',\'500\');')" value="Preview">

<input type="button" class="submit" name="Preview" value="Preview" onClick="winopen('prevmsg.cfm?formname=quickreplyfrm','previewmsg','710','500');" />

<input type="button" class="submit" name="Preview" value="Preview" onClick="winopen('prevmsg.cfm?formname=quickreplyfrm','previewmsg','710','500');" />

---------------and put this in the head--------------------

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

see page as written without popup code below

note that js is not my forte and use dreamweaver to write most of it for me

tnx again

----------------------------------------------------------------------------------------------------------------
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources