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

Re: HTML Code Produced by FP by Steve

Steve
Thu Apr 06 19:44:17 CDT 2006

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



"Bruce E. Breeding" <bebl.it@infotechaccounting.com> wrote in message
news:uQOjSJdWGHA.3440@TK2MSFTNGP02.phx.gbl...
> 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
>
>



Re: HTML Code Produced by FP by Ronx

Ronx
Fri Apr 07 02:57:21 CDT 2006

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]
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

"Steve Easton" <admin@95isalive.com> wrote in message
news:%23P%23a2xdWGHA.3660@TK2MSFTNGP04.phx.gbl...
> 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
>
>
>
> "Bruce E. Breeding" <bebl.it@infotechaccounting.com> wrote in
> message news:uQOjSJdWGHA.3440@TK2MSFTNGP02.phx.gbl...
>> 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
>>
>>
>
>



Re: HTML Code Produced by FP by Bruce

Bruce
Fri Apr 07 14:52:59 CDT 2006

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