SnippetMaster Support Forums
Return to main website
 
February 20, 2018, 05:36:41 AM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 20, 2018, 05:36:41 AM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  Suggestions & Feature Requests  |  Topic: Preview open in new window? « previous next »
Pages: [1] Print
Author Topic: Preview open in new window?  (Read 4639 times)
monikina

Posts: 4


[-] Preview open in new window?
« on: September 04, 2002, 08:28:21 AM »

Couple Questions:

1. How do I get the "PREVIEW" to open in a seperate Browser Window ?

or

2. In the Preview Window: is it possible to add a link back to the Editor ?

Thanks, Monikina
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Preview open in new window?
« Reply #1 on: September 04, 2002, 11:54:25 AM »

How about both?

If anyone can figure out how to get the Preview button to do the following, I will be eternally happy!

1. Open the preview into a new window
2. Add a "Click here to close preview" button to the top of the new window.

Please see the following link if you are interested in coding this: http://www.snippetmaster.com/forums/viewtopic.php?t=6

Thanks for any help!
Report to moderator   Logged
monikina

Posts: 4


[-] Preview open in new window?
« Reply #2 on: September 05, 2002, 05:59:29 AM »

Quote from: electric
How about both?

If anyone can figure out how to get the Preview button to do the following, I will be eternally happy!

1. Open the preview into a new window
2. Add a "Click here to close preview" button to the top of the new window.

Please see the following link if you are interested in coding this: http://www.snippetmaster.com/forums/viewtopic.php?t=6

Thanks for any help!



I tried the following:

In Line 158 (with word wrap OFF):

form action="<?php print $PHP_SELF; ?>" method="post"

I added

form action="<?php print $PHP_SELF; ?>" method="post" target="preview_window"

However, this triggered both - the "SAVE" and the "PREVIEW" - Windows
to open in seperate browsers.

Perhaps it is possible to close the form opened in line 158
BEFORE the "save" and "preview" inputs, and add new individual
form actions for "save" and "preview" ?

-----------------------------------------------------------

About the suggested "close" button in the preview page :

Wouldn't that "close" button then also show up in the
saved page ?

-----------------------------------------------------------
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Preview open in new window?
« Reply #3 on: September 05, 2002, 07:54:18 PM »

Quote from: monikina
About the suggested "close" button in the preview page :

Wouldn't that "close" button then also show up in the
saved page ?
Quote


You would have to have the "Close the preview window" button on a seperate frame from the preview.

So hitting the "Show Preview" button on the editing page would actually open a FRAMESET that would have two pages.  The top page would be the page that has the "Close preview window" button, and the bottom page would have the actual preview page.

If anyone can get this working, please let me know! Very Happy

Cheers.
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Preview open in new window?
« Reply #4 on: September 18, 2002, 03:34:39 AM »

The latest version of SnippetMaster now includes the Preview button opening up into a new window.

Very Happy
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  Suggestions & Feature Requests  |  Topic: Preview open in new window? « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!