FrontPage messing up code

S

Stokes Web Design

I have a customer that has a page with a form that uses FrontPage's save
form to database function. He wanted me to add code so that if a certain
field contained a certain value then an email would be sent. The problem
I'm having is with FrontPage messing up the code. I have my code contained
within separate scrpting blocks placed before the FrontPage generated
scripting blocks. The problem is that FrontPage keep putting the FrontPage
generated block before my code and that will not let my code run since the
FrontPage code contains a redirect. I tried uploading the file via FTP but
after a while the code gets rearranged back with the FrontPage code first
and mine second. This happens even if you do not open that file in
FrontPage. I assume it is the FP server extensions that is moving the code.

Anyone have any ides? The only solution I can think of is to do away with
the FrontPage code and code the save to database function manually.
 
J

John Clark

Have you tried using Insert > Advanced > HTML and pasting your code into
that window?

If your code lives between two checksums in the FrontPage code, then
FrontPage will remove it. Also, if your code is slightly misnested, it
might be rewritten when the page is parsed.

-John
 
S

Stokes Web Design

My code must be the first thing on the page even before the <html> or <body>
tags. The insert HTML window will put the code in the body.

--

Randall Moore
Stokes Web Design
www.stokesweb.com
 
J

John Clark

After you use the advanced technique, you can move it in code view. The
important thing is the webbot tags surrounding the code which tell FrontPage
not only to ignore it, but to not even try to render it in design view.

I think FP is rewriting your code in order to make it valid for design time
rendering.

-John
 
S

Stefan B Rusynko

But it sounds like an invalid code snippet
Post a snippet of what you are trying to add




| After you use the advanced technique, you can move it in code view. The
| important thing is the webbot tags surrounding the code which tell FrontPage
| not only to ignore it, but to not even try to render it in design view.
|
| I think FP is rewriting your code in order to make it valid for design time
| rendering.
|
| -John
|
|
| | > My code must be the first thing on the page even before the <html> or
| <body>
| > tags. The insert HTML window will put the code in the body.
| >
| > --
| >
| > Randall Moore
| > Stokes Web Design
| > www.stokesweb.com
| >
| >
| >
| > | > > Have you tried using Insert > Advanced > HTML and pasting your code into
| > > that window?
| > >
| > > If your code lives between two checksums in the FrontPage code, then
| > > FrontPage will remove it. Also, if your code is slightly misnested, it
| > > might be rewritten when the page is parsed.
| > >
| > > -John
| > >
| > >
| > > | > > > I have a customer that has a page with a form that uses FrontPage's
| save
| > > > form to database function. He wanted me to add code so that if a
| > certain
| > > > field contained a certain value then an email would be sent. The
| > problem
| > > > I'm having is with FrontPage messing up the code. I have my code
| > > contained
| > > > within separate scrpting blocks placed before the FrontPage generated
| > > > scripting blocks. The problem is that FrontPage keep putting the
| > > FrontPage
| > > > generated block before my code and that will not let my code run since
| > the
| > > > FrontPage code contains a redirect. I tried uploading the file via
| FTP
| > > but
| > > > after a while the code gets rearranged back with the FrontPage code
| > first
| > > > and mine second. This happens even if you do not open that file in
| > > > FrontPage. I assume it is the FP server extensions that is moving the
| > > code.
| > > >
| > > > Anyone have any ides? The only solution I can think of is to do away
| > with
| > > > the FrontPage code and code the save to database function manually.
| > > >
| > > > --
| > > >
| > > > Randall Moore
| > > > Stokes Web Design
| > > > www.stokesweb.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