HTML Code Produced by FP

  • Thread starter Bruce E. Breeding
  • Start date
B

Bruce E. Breeding

Is there any way (like settings?) to control the html code produced by
FrontPage?

I am using FP as an html editor. What I see in the preview code is okay;
certain phrases (they are really variables) are shown on lines by themselves
as I designed.

However, FP puts breaks (inserts html code) in places in the actual html
code (that don't appear in the Preview) where I don't want breaks.

The output (html file) is sent to another software program which reads the
variable names and substitutes data for the variable names. Needless to
say, I can't have a variable name split across two lines in the html code.

In the example below, the variable in between the % characters cannot span
two lines. Now, of course, I fixed the problem once by just going into the
HTML code itself and removing the offending HTML code. But, I don't want to
do that every time I create such a file or modify it.

Below follows a sample of what appears in FP under Preview mode:
***** starts next line
Your email address is: (%Email Address%)
Your first name: (%First Name 1%)
***** ends previous line


Below follows the html code as it appears in FP:
***** starts next line
<!-- MSCellType="ContentBody" -->
Your email address is: (%Email Address%)<p>Your first name: (%First Name
1%)<br>
***** ends previous line

If you've had experience with this kind of situation, I'd be interested in
how you solved it.

Bruce
 
S

Steve Easton

iirc, There's an option in Page Settings to disallow line breaks in scripts.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
R

Ronx

The OP is not using a script - he is designing a page that will be
parsed by a script, as I do for Perl.

In pages I write that will be parsed by a Perl script I do not allow
FrontPage to write any code. I make extensive use of Code View, and
NEVER use Layout tables or cells, FP Navigation or any other webbots
in any area that will contain a variable.
You could instead wrap your code in the HTML mark-up webbot
Insert->Web Component->Advanced Controls->HTML
in code view it would appear as:

<!--webbot bot="HTMLMarkup" startspan -->Your email address is:
(%Email Address%)<p>Your first name: (%First Name 1%)<!--webbot
bot="HTMLMarkup" endspan -->

but this may make matters worse, depending on your script.

See www.rxs-enterprises.org/_borders/cgi/faqmail.htm as an example,
where variables are delimited by [variable]
 
B

Bruce E. Breeding

Ron --

Thanks for your solution. You were correct in your interpretation of my
question.

Your specific example was a good one for a "do once, use many times without
change" situation. My need is for an end user(!) to create a monthly email
in html -- a "do periodically, use once". In order to get around the
problem (of variables being split by html code) the user would have to
maually look at the code each time, to be sure that the variables are not
interspersed with html code.

What you said, however is enough for me to conclude that this procedure of
having an end user develop a periodical email message is not practical.
They would need someone who was trained in (or trainable in) the
identification and use of html code. (Or, they would need different
software to extract the data from the database.)

-- Bruce
 

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