Frontpage removes javascript after save


D

DirkG

Hello there,

I've got this odd problem, whenever I add some javascript to my asp page and
save it frontpage deletes the added javascript. Is there someway to prevent
this? Every time I edit the page I have to open it in notepad.

the code used is pretty commonly used in frontpage;

***********************
<script language="JavaScript" fptype="dynamicoutline">
<!--
function dynOutline() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicoutline"
src="../../outline.js">
</script>
<script language="JavaScript1.2" fptype="dynamicoutline" for="document"
event="onreadystatechange()">
<!--
initOutline()
//-->
</script>
***********************

and applied in the following way;

***********************
<body topmargin="0" leftmargin="0" vlink="#0000FF" link="#0000FF"
alink="#0000FF" bgcolor="#EEF6E3" onclick="dynOutline()"
language="Javascript1.2">
***********************

the entire page looks like the following;


***********************
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style>
<!--
div.Section1
{page:Section1;}
-->
</style>
<link rel="stylesheet" type="text/css"
href="../../images/columbus_styles.css">
<title>Helpdesk creditcards</title>

<script language="JavaScript" fptype="dynamicoutline">
<!--
function dynOutline() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicoutline"
src="../../outline.js">
</script>
<script language="JavaScript1.2" fptype="dynamicoutline" for="document"
event="onreadystatechange()">
<!--
initOutline()
//-->
</script>
</head>

<body topmargin="0" leftmargin="0" vlink="#0000FF" link="#0000FF"
alink="#0000FF" bgcolor="#EEF6E3" onclick="dynOutline()"
language="Javascript1.2">

<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table1"
height="62">
<tr>
<td>
<p align="left">
<img border="0" src="../../images/banner.png"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table2">
<tr>
<td>
<map name="FPMap0">
<area href="../disputes_chargebacks/disputes_dicht.htm" shape="rect"
coords="844, 13, 943, 49">
<area href="../fraude/fraude_dicht.htm" shape="rect" coords="742, 15, 838,
51">
<area href="../debt_negotiation/debt_negotiation.asp" shape="rect"
coords="530, 14, 629, 47">
<area href="../commercial/commercial.asp" shape="rect" coords="321, 15,
421, 49">
<area href="../correspondence/correspondence.asp" shape="rect"
coords="217, 16, 315, 49">
<area href="../calls/calls.asp" shape="rect" coords="111, 17, 210, 49">
<area href="../../Default.htm" shape="rect" coords="4, 15, 98, 49">
<area target="_blank"
href="http://abnkw.tsys.merchants.co.uk/nieuw/htm/e-learning/assistant/zoeken.htm"
shape="rect" coords="1145, 62, 1244, 96"><area target="_blank"
href="http://abnkw.tsys.merchants.co.uk/nieuw/htm/e-learning/assistant/zoeken.htm" shape="rect" coords="1145, 62, 1244, 96">
<area href="../rrt/rrt_proces_flows.htm" shape="rect" coords="952, 15,
1049, 47">
<area href="../applications/applications.htm" shape="rect" coords="636,
15, 737, 50">
<area target="_blank" href="../formulieren/it/it_support.htm" shape="rect"
coords="1043, 59, 1140, 94">
<area target="_blank" href="../e-learning/assistant/zoeken.htm"
shape="rect" coords="1146, 61, 1245, 96">
<area href="../or/or_home.htm" shape="rect" coords="1056, 13, 1156, 48">
</map> <img border="0" src="../../images/customer_solutions_navbar.png"
usemap="#FPMap0"></td>
</tr>
<tr>

</tr>
</table>

<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table26"
height="100%">
<tr>
<td width="200" align="center" bgcolor="#FFB200" valign="top"
background="../../images/gradient_menu.png">
<table border="0" width="100%" cellspacing="0" cellpadding="0"
id="table27" bgcolor="#EAFFEA">
<tr>
<td height="40" align="center" bgcolor="#FFB200"
background="../../images/gradient_menu.png">
<a href="helpdesk_cc.asp"><span style="text-decoration: none">
<font color="#000000">Reasoncode Matrix</font></span></a></td>
</tr>
<tr>
<td height="35" align="center" bgcolor="#FFB200"
background="../../images/gradient_menu.png">
<a href="algemene_processen.htm"><span style="text-decoration: none">
<font color="#000000">Algemene processen</font></span></a></td>
</tr>
<tr>
<td height="35" align="center" bgcolor="#FFB200"
background="../../images/gradient_menu.png">
<span style="text-decoration: none; ">
<a href="formulieren.htm">
<font color="#000000"><span style="text-decoration:
none">Formulieren</span></font></a></span></td>
</tr>
<tr>
<td height="35" align="center" bgcolor="#FFB200"
background="../../images/gradient_menu.png">
<a href="team_pagina.htm"><span style="text-decoration: none">
<font color="#000000">Over Helpdesk creditcards</font></span></a></td>
</tr>
<tr>
<td height="35" align="center" bgcolor="#FFC53C"
background="../../images/gradient_menu.png">
<a href="scripts.htm"><span style="text-decoration: none">
<font color="#000000">Scripts</font></span></a></td>
</tr>
<tr>
<td height="35" align="center" style="border-style: none; border-width:
medium" bgcolor="#FFB200" background="../../images/gradient_menu.png">
<a href="preshift.htm"><span style="text-decoration: none">
<font color="#000000">Preshift</font></span></a></td>
</tr>
<tr>
<td height="35" align="center" style="border-style: none; border-width:
medium" bgcolor="#FFB200"
background="../../images/gradient_menu_selected.png">
<b>Klachten registratie</b></td>
</tr>
</table>
<p> </td>
<td valign="top">

<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table28">
<tr>
<td>
<table border="0" width="99%" cellspacing="0" cellpadding="0" id="table29">
<tr>
<td bgcolor="#109273" align="center"
background="../../images/gradient_bar.png">
<p align="center"><b><font color="#FFFFFF"><br>
Klachten registratie</font></b></td>
</tr>

<tr>
<td>
<%
Set cnM = CreateObject("ADODB.Connection")
Set rsM = CreateObject("ADODB.Recordset")

cnM.Open "Driver={SQL
Server};Server=MERHOLKW;Database=KW;Trusted_Connection=Yes;"

rsM.CursorLocation = 3
sqls=""
sqls = sqls & "SELECT "
sqls = sqls & "chapters.titleNL as title, reasons.chapterID as chapnum,
reasons.reasonID as reasonnum, reasons.reasonNL as reason, reasons.code as
code "
sqls = sqls & "FROM reasons "
sqls = sqls & "INNER JOIN chapters ON reasons.chapterID = chapters.chapterID "
sqls = sqls & "WHERE (reasons.live = 1) and (reasons.departmentID = 3) "
sqls = sqls & "ORDER BY chapters.displayorder,reasons.chapterID,
reasons.reasonID "

rsM.Open sqls, cnM, 1, 3, adCmdTable

response.write("<ul dynamicoutline initcollapsed>")

curchap = 0
while not rsM.EOF
if rsM.fields("chapnum") <> curchap then
if curchap <> 0 then
response.write("</table></li></ul></li>")
end if
response.write("<li><font color='#109273'><b><font style='cursor: hand'>"
& rsM.fields("title") & "</font></b></font><ul><li><table border='1'
width='88%' >")
response.write("<tr><td width='5%'><b>RC</b></td><td
width='64%'><b>Reden</b></td><td width='15%'
align='center'><b>Registreren</b></td></tr>")
curchap = rsM.fields("chapnum")
end if
response.write("<tr><td width='5%'>" & rsM.fields("code") & "</td><td
width='64%'>" & rsM.fields("reason") & "</td><td width='15%'
align='center'><a target='_blank' href='registratie.asp?rc=" &
rsM.fields("reasonnum") & "&depart=3'>Registratie</a></td></tr>")
rsM.movenext
wend

response.write("</table></li></ul></li>")

rsM.close
cnM.close

set rsM = nothing
set cnM = nothing
%>







</ul>
<p> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
<p> </td>
</tr>
</table>



</body>

</html>
***********************

Hope you can help.

Thanks for your time,
Dirk
 
Ad

Advertisements

C

Chris Leeds, MVP - FrontPage

best way I've found to get around this sporadic problem:
set your cursor in the page where you want the JavaScript and click insert/
web component/ advanced control/ HTML.
a dialog box pops up. paste your JS into that dialog box.
FrontPage will wrap it with a web-bot tag and it'll be 100% hands off from
that point on.

HTH


--
Chris Leeds
Contact: http://chrisleeds.com/contact
Have you seen ContentSeed (www.contentseed.com)?
NOTE:
This message was posted from an unmonitored email account.
This is an unfortunate necessity due to high volumes of spam sent to email
addresses in public newsgroups.
Sorry for any inconvenience.
 
D

DirkG

Thanks, adding those lines does solve the issue. It is a lot of work to add
the lines to every page manually. Isn't there a way to change a setting so it
saves the page as it is?
 
C

Chris Leeds, MVP - FrontPage

If Steve's post doesn't solve the problem you can copy that little yellow
web bot tag in the design surface and paste it in other places. it's failry
quick as long as there's not too many pages.

HTH

--
Chris Leeds
Contact: http://chrisleeds.com/contact
Have you seen ContentSeed (www.contentseed.com)?
NOTE:
This message was posted from an unmonitored email account.
This is an unfortunate necessity due to high volumes of spam sent to email
addresses in public newsgroups.
Sorry for any inconvenience.
 
D

DirkG

Thanks for the replies. The javascript option is checked as Steve said. I
think I'll just have to put in some time to straighten things out manually.
Having the luck that there are a lot of pages.

Thanks again for the effort!
 
Ad

Advertisements

C

Chris Leeds, MVP - FrontPage

glad to help, to the extent that I was able. ;-)

--
Chris Leeds
Contact: http://chrisleeds.com/contact
Have you seen ContentSeed (www.contentseed.com)?
NOTE:
This message was posted from an unmonitored email account.
This is an unfortunate necessity due to high volumes of spam sent to email
addresses in public newsgroups.
Sorry for any inconvenience.
 

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