CGI/Perl and Frontpage

R

Randall Princeton

Hi,
I am using a Perl script to send back an error HTML page.
The original page was developed with Frontpage and has a
theme applied. In the error page I would like to have the
theme applied. In the Perl script I am using something
termed "here document".
Code snippet:
print <<END_of_Multiline_Text;
Content-type: text/html

....HTML here
END_of_Multiline_text
Given this script how would I apply the FrontPage theme?
Please advise. Thanks in advance
Regards, Randall Princeton
 
N

news

Given this script how would I apply the FrontPage theme?
Please advise. Thanks in advance
Regards, Randall Princeton

I applied the barcode theme then looked at the html. It adds the following
line to the head section:

<meta name="Microsoft Theme" content="barcode 011">


You may be able to get away with adding this to the script

Jay
http://www.tequila-stuff.com
 
S

Stefan B Rusynko

The META <meta name="Microsoft Theme" content="barcode 011">
is a design time control and will not apply a theme to a page generated by CGI
Apply the theme using the CSS Option and then just include the CSS link tag in your script
Will look something like
<link rel="stylesheet" type="text/css" href="_themes/barcode/barcode1111.css">

PS make sure those pages generated by CGI are in a subweb or you will have problems w/ FP when you publish - wiping them out




| > Given this script how would I apply the FrontPage theme?
| > Please advise. Thanks in advance
| > Regards, Randall Princeton
|
| I applied the barcode theme then looked at the html. It adds the following
| line to the head section:
|
| <meta name="Microsoft Theme" content="barcode 011">
|
|
| You may be able to get away with adding this to the script
|
| Jay
| http://www.tequila-stuff.com
|
|
|
|
|
|
 
R

Randall Princeton

Stefan,
I need a little more information. I am not sure what you
mean when you say apply the theme using the CSS option.
Please explain. Thanks in advance.
Regards,
Randall Princeton
-----Original Message-----
The META <meta name="Microsoft Theme" content="barcode 011">
is a design time control and will not apply a theme to a page generated by CGI
Apply the theme using the CSS Option and then just
include the CSS link tag in your script
Will look something like
<link rel="stylesheet" type="text/css" href="_themes/barcode/barcode1111.css">

PS make sure those pages generated by CGI are in a subweb
or you will have problems w/ FP when you publish - wiping
them out
 
S

Stefan B Rusynko

For FP2000/FP2002 use Format Theme and select the Apply Using CSS option (to all pages)
FP 2003 does it automatically
Then open any one of your pages in HTML View (HEAD section) and you will see the correct css link to add to your script
- it will look something like:
<link rel="stylesheet" type="text/css" href="_themes/barcode/barcode1111.css">
Use that tag in your CGI script (that creates the page in the section that generated the html code for the head section)
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


| Stefan,
| I need a little more information. I am not sure what you
| mean when you say apply the theme using the CSS option.
| Please explain. Thanks in advance.
| Regards,
| Randall Princeton
|
| >-----Original Message-----
| >The META <meta name="Microsoft Theme" content="barcode
| 011">
| > is a design time control and will not apply a theme to a
| page generated by CGI
| >Apply the theme using the CSS Option and then just
| include the CSS link tag in your script
| >Will look something like
| ><link rel="stylesheet" type="text/css"
| href="_themes/barcode/barcode1111.css">
| >
| >PS make sure those pages generated by CGI are in a subweb
| or you will have problems w/ FP when you publish - wiping
| them out
| >
| >--
| >
| >_____________________________________________
| >SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| >"Warning - Using the F1 Key will not break anything!" (-;
| >To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| >_____________________________________________
| >
| >
| | >| > Given this script how would I apply the FrontPage
| theme?
| >| > Please advise. Thanks in advance
| >| > Regards, Randall Princeton
| >|
| >| I applied the barcode theme then looked at the html.
| It adds the following
| >| line to the head section:
| >|
| >| <meta name="Microsoft Theme" content="barcode 011">
| >|
| >|
| >| You may be able to get away with adding this to the
| script
| >|
| >| Jay
| >| http://www.tequila-stuff.com
| >|
| >|
| >|
| >|
| >|
| >|
| >
| >
| >.
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top