FrontPage keeps eating & changing my code

C

CJSnet

Hi all

At the following site, I have some Google Maps code. For Google's API
compatibility reasons, this needs to lay just before the final </body> tag,
and not be enclosed in a table.

Yet every time I open the page in FP2003 for editing, FP moves a </table>
tag to the end of the Google JS, thus placing it in a table! This results
in an 'Operation Aborted' error in IE6/7.

Another time it ate the entire lower set of divs completely.

If you try loading the page into FrontPage, you should see the above
happening:
http://www.superhighstreet.com/streets/beta

How can I stop FP interfering with where I want the table to end and the JS
to begin?
--
Thanks,
CJSnet

I recommend www.Superhighstreet.com/home Finds anything or they pay for it!

[remove 'teeth' to e-mail me]
 
S

Stefan B Rusynko

FP is correcting it because your page has malformed Html (broken tables and div tags) which you need to fix

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi all
|
| At the following site, I have some Google Maps code. For Google's API
| compatibility reasons, this needs to lay just before the final </body> tag,
| and not be enclosed in a table.
|
| Yet every time I open the page in FP2003 for editing, FP moves a </table>
| tag to the end of the Google JS, thus placing it in a table! This results
| in an 'Operation Aborted' error in IE6/7.
|
| Another time it ate the entire lower set of divs completely.
|
| If you try loading the page into FrontPage, you should see the above
| happening:
| http://www.superhighstreet.com/streets/beta
|
| How can I stop FP interfering with where I want the table to end and the JS
| to begin?
| --
| Thanks,
| CJSnet
|
| I recommend www.Superhighstreet.com/home Finds anything or they pay for it!
|
| [remove 'teeth' to e-mail me]
|
|
 
R

Ronx

You are using shared borders which use tables to hold the border
files. Remove the shared borders, consider using a Dynamic Web
Template instead.
 
C

CJSnet

Hi Ronx

So is there a table in the top border which is causing this issue? I
haven't seen this issue on any other pages - and they use a shared top
border also.

Is there a way round stopping it inserting the </table> after the JS code
due to these shared borders? I really like the shared borders feature so
would ideally keep it.
--
Thanks,
CJSnet

I recommend www.Superhighstreet.com/home Finds anything or they pay for it!

[remove 'teeth' to e-mail me]


Ronx said:
You are using shared borders which use tables to hold the border files.
Remove the shared borders, consider using a Dynamic Web Template instead.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

CJSnet said:
Hi all

At the following site, I have some Google Maps code. For Google's API
compatibility reasons, this needs to lay just before the final </body>
tag, and not be enclosed in a table.

Yet every time I open the page in FP2003 for editing, FP moves a </table>
tag to the end of the Google JS, thus placing it in a table! This
results in an 'Operation Aborted' error in IE6/7.

Another time it ate the entire lower set of divs completely.

If you try loading the page into FrontPage, you should see the above
happening:
http://www.superhighstreet.com/streets/beta

How can I stop FP interfering with where I want the table to end and the
JS to begin?
--
Thanks,
CJSnet

I recommend www.Superhighstreet.com/home Finds anything or they pay for
it!

[remove 'teeth' to e-mail me]
 
C

CJSnet

Hi Stefan

I've spent an age going through things, but have not been able to fix it.
I'd like to make a couple of points:

1) These broken tables & divs were caused by FP in the first place
2) FP may be correcting it, but it's also breaking my JS. Yet even if I
place the </td></tr></table> that it inserts after my JS, *before* my JS (I
manually move it), on the next opening of that htm file, FP moves it back
down to the end of the JS before the </body> tag!
Is there any way to stop it trying to be so helpful, and failing?

It is also inserting <p></p> commands randomly too.

Basically, I like the WYSIWYG features of FP but it is trying to be too
clever with Google API JS which it doesn't understand and which cannot be
enclosed in a table.

Failing all the above, are you able to tell me which bit of code to fix to
stop this happening? I can consider a small fee by PayPal if it's a big
job.
--
Thanks,
CJSnet

I recommend www.Superhighstreet.com/home Finds anything or they pay for it!

[remove 'teeth' to e-mail me]
 
R

Ronx

The only way to remove the </table> etc. after your JS is to stop using
Shared Borders.
If you use a DWT - which I see you have started to do, you do not need
shared borders - DWT replaces them.
All the information in the shared border is placed in the DWT, and this is
conveyed to your other pages.

When you use any Shared Border, ALL the page is placed inside a table, or
tables. There is no way to get round this, other than change the design to
not use the shared borders.
You can use an Include page instead, but in your case, the DWT will be the
better option.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

CJSnet said:
Hi Stefan

I've spent an age going through things, but have not been able to fix it.
I'd like to make a couple of points:

1) These broken tables & divs were caused by FP in the first place
2) FP may be correcting it, but it's also breaking my JS. Yet even if I
place the </td></tr></table> that it inserts after my JS, *before* my JS
(I manually move it), on the next opening of that htm file, FP moves it
back down to the end of the JS before the </body> tag!
Is there any way to stop it trying to be so helpful, and failing?

It is also inserting <p></p> commands randomly too.

Basically, I like the WYSIWYG features of FP but it is trying to be too
clever with Google API JS which it doesn't understand and which cannot be
enclosed in a table.

Failing all the above, are you able to tell me which bit of code to fix
to stop this happening? I can consider a small fee by PayPal if it's a
big job.
--
Thanks,
CJSnet

I recommend www.Superhighstreet.com/home Finds anything or they pay for
it!

[remove 'teeth' to e-mail me]


Stefan B Rusynko said:
FP is correcting it because your page has malformed Html (broken tables
and div tags) which you need to fix

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi all
|
| At the following site, I have some Google Maps code. For Google's API
| compatibility reasons, this needs to lay just before the final </body>
tag,
| and not be enclosed in a table.
|
| Yet every time I open the page in FP2003 for editing, FP moves a
</table>
| tag to the end of the Google JS, thus placing it in a table! This
results
| in an 'Operation Aborted' error in IE6/7.
|
| Another time it ate the entire lower set of divs completely.
|
| If you try loading the page into FrontPage, you should see the above
| happening:
| http://www.superhighstreet.com/streets/beta
|
| How can I stop FP interfering with where I want the table to end and
the JS
| to begin?
| --
| Thanks,
| CJSnet
|
| I recommend www.Superhighstreet.com/home Finds anything or they pay
for it!
|
| [remove 'teeth' to e-mail me]
|
|
 
S

Stefan B Rusynko

Nonsense

FP is not, and did not, add the invalid div tag & broken tables Until you hand edited the html breaking it (probably while pasting
script or editing the page outside of a FP site)
- your script is just a secondary problem
Starting with a broken DWT
- you have 2 <!-- #EndTemplate --> <!-- #EndTemplate --> tags
- you have 7 opening editable region tag & only 6 closing tags

Unfortunately your DTW page does not appear to be published to check

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi Stefan
|
| I've spent an age going through things, but have not been able to fix it.
| I'd like to make a couple of points:
|
| 1) These broken tables & divs were caused by FP in the first place
| 2) FP may be correcting it, but it's also breaking my JS. Yet even if I
| place the </td></tr></table> that it inserts after my JS, *before* my JS (I
| manually move it), on the next opening of that htm file, FP moves it back
| down to the end of the JS before the </body> tag!
| Is there any way to stop it trying to be so helpful, and failing?
|
| It is also inserting <p></p> commands randomly too.
|
| Basically, I like the WYSIWYG features of FP but it is trying to be too
| clever with Google API JS which it doesn't understand and which cannot be
| enclosed in a table.
|
| Failing all the above, are you able to tell me which bit of code to fix to
| stop this happening? I can consider a small fee by PayPal if it's a big
| job.
| --
| Thanks,
| CJSnet
|
| I recommend www.Superhighstreet.com/home Finds anything or they pay for it!
|
| [remove 'teeth' to e-mail me]
|
|
| | > FP is correcting it because your page has malformed Html (broken tables
| > and div tags) which you need to fix
| >
| > --
| >
| > _____________________________________________
| > 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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | > | Hi all
| > |
| > | At the following site, I have some Google Maps code. For Google's API
| > | compatibility reasons, this needs to lay just before the final </body>
| > tag,
| > | and not be enclosed in a table.
| > |
| > | Yet every time I open the page in FP2003 for editing, FP moves a
| > </table>
| > | tag to the end of the Google JS, thus placing it in a table! This
| > results
| > | in an 'Operation Aborted' error in IE6/7.
| > |
| > | Another time it ate the entire lower set of divs completely.
| > |
| > | If you try loading the page into FrontPage, you should see the above
| > | happening:
| > | http://www.superhighstreet.com/streets/beta
| > |
| > | How can I stop FP interfering with where I want the table to end and the
| > JS
| > | to begin?
| > | --
| > | Thanks,
| > | CJSnet
| > |
| > | I recommend www.Superhighstreet.com/home Finds anything or they pay for
| > it!
| > |
| > | [remove 'teeth' to e-mail me]
| > |
| > |
| >
| >
|
|
 
C

CJSnet

Thanks Ronx, I placed the top border in an iframe instead (as I only use the
DWT on a few pages), and that has fixed the problem. Nice work!
--
Thanks,
CJSnet

I recommend www.Superhighstreet.com/home Finds anything or they pay for it!

[remove 'teeth' to e-mail me]

Ronx said:
The only way to remove the </table> etc. after your JS is to stop using
Shared Borders.
If you use a DWT - which I see you have started to do, you do not need
shared borders - DWT replaces them.
All the information in the shared border is placed in the DWT, and this is
conveyed to your other pages.

When you use any Shared Border, ALL the page is placed inside a table, or
tables. There is no way to get round this, other than change the design
to not use the shared borders.
You can use an Include page instead, but in your case, the DWT will be the
better option.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

CJSnet said:
Hi Stefan

I've spent an age going through things, but have not been able to fix it.
I'd like to make a couple of points:

1) These broken tables & divs were caused by FP in the first place
2) FP may be correcting it, but it's also breaking my JS. Yet even if I
place the </td></tr></table> that it inserts after my JS, *before* my JS
(I manually move it), on the next opening of that htm file, FP moves it
back down to the end of the JS before the </body> tag!
Is there any way to stop it trying to be so helpful, and failing?

It is also inserting <p></p> commands randomly too.

Basically, I like the WYSIWYG features of FP but it is trying to be too
clever with Google API JS which it doesn't understand and which cannot be
enclosed in a table.

Failing all the above, are you able to tell me which bit of code to fix
to stop this happening? I can consider a small fee by PayPal if it's a
big job.
--
Thanks,
CJSnet

I recommend www.Superhighstreet.com/home Finds anything or they pay for
it!

[remove 'teeth' to e-mail me]


Stefan B Rusynko said:
FP is correcting it because your page has malformed Html (broken tables
and div tags) which you need to fix

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi all
|
| At the following site, I have some Google Maps code. For Google's API
| compatibility reasons, this needs to lay just before the final </body>
tag,
| and not be enclosed in a table.
|
| Yet every time I open the page in FP2003 for editing, FP moves a
</table>
| tag to the end of the Google JS, thus placing it in a table! This
results
| in an 'Operation Aborted' error in IE6/7.
|
| Another time it ate the entire lower set of divs completely.
|
| If you try loading the page into FrontPage, you should see the above
| happening:
| http://www.superhighstreet.com/streets/beta
|
| How can I stop FP interfering with where I want the table to end and
the JS
| to begin?
| --
| Thanks,
| CJSnet
|
| I recommend www.Superhighstreet.com/home Finds anything or they pay
for it!
|
| [remove 'teeth' to e-mail me]
|
|
 
C

CJSnet

Hmm, I spoke too soon :(

Having added Google AdSense content-based ads to the top shared border, I
have realised that on the page where I put the border in an iframe, it is
not picking up relevant ads as it can only see its own iframe.

It works fine for the pages where I use shared borders as designed.

I have therefore reverted to shared borders, which results in FP not
realising the Google Map API JavaScript must not be enclosed in a table.

For now I am surviving by manually moving the table tag after every save of
the page, but it is a headache.

I recall someone mentioned something about using an 'include page'. Not
sure if my server supports this, but would that still cause the problem of
Google AdSense not seeing the main body of the page that the border was
included in?

Any other ideas anyone -- there must be a solution out there that is
friendly to Google Maps & Adsense. :-|
--
Thanks,
CJSnet

I recommend www.Superhighstreet.com/home Finds anything or they pay for it!

[remove 'teeth' to e-mail me]


CJSnet said:
Thanks Ronx, I placed the top border in an iframe instead (as I only use
the DWT on a few pages), and that has fixed the problem. Nice work!
--
Thanks,
CJSnet

I recommend www.Superhighstreet.com/home Finds anything or they pay for
it!

[remove 'teeth' to e-mail me]

Ronx said:
The only way to remove the </table> etc. after your JS is to stop using
Shared Borders.
If you use a DWT - which I see you have started to do, you do not need
shared borders - DWT replaces them.
All the information in the shared border is placed in the DWT, and this
is conveyed to your other pages.

When you use any Shared Border, ALL the page is placed inside a table, or
tables. There is no way to get round this, other than change the design
to not use the shared borders.
You can use an Include page instead, but in your case, the DWT will be
the better option.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

CJSnet said:
Hi Stefan

I've spent an age going through things, but have not been able to fix
it. I'd like to make a couple of points:

1) These broken tables & divs were caused by FP in the first place
2) FP may be correcting it, but it's also breaking my JS. Yet even if
I place the </td></tr></table> that it inserts after my JS, *before* my
JS (I manually move it), on the next opening of that htm file, FP moves
it back down to the end of the JS before the </body> tag!
Is there any way to stop it trying to be so helpful, and failing?

It is also inserting <p></p> commands randomly too.

Basically, I like the WYSIWYG features of FP but it is trying to be too
clever with Google API JS which it doesn't understand and which cannot
be enclosed in a table.

Failing all the above, are you able to tell me which bit of code to fix
to stop this happening? I can consider a small fee by PayPal if it's a
big job.
--
Thanks,
CJSnet

I recommend www.Superhighstreet.com/home Finds anything or they pay for
it!

[remove 'teeth' to e-mail me]


FP is correcting it because your page has malformed Html (broken tables
and div tags) which you need to fix

--

_____________________________________________
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.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi all
|
| At the following site, I have some Google Maps code. For Google's
API
| compatibility reasons, this needs to lay just before the final
</body> tag,
| and not be enclosed in a table.
|
| Yet every time I open the page in FP2003 for editing, FP moves a
</table>
| tag to the end of the Google JS, thus placing it in a table! This
results
| in an 'Operation Aborted' error in IE6/7.
|
| Another time it ate the entire lower set of divs completely.
|
| If you try loading the page into FrontPage, you should see the above
| happening:
| http://www.superhighstreet.com/streets/beta
|
| How can I stop FP interfering with where I want the table to end and
the JS
| to begin?
| --
| Thanks,
| CJSnet
|
| I recommend www.Superhighstreet.com/home Finds anything or they pay
for it!
|
| [remove 'teeth' to e-mail me]
|
|
 

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