error in attaching a dynamic template to a page

M

microfan

hello,

I have created a dynamic template, and to taht template, i have attached
several pages....

But, while i want to preview those pages from the preview tab, it gives me
an error (script error), adn in the coding area i have the second line all
HIGHLIGHTED YELLOW!..which means its an error....

What can i do to correct the script?
Thats whats im getting: (beginning from te third line, all is highlighted
yellow)

<HTML xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns="http://www.w3.org/TR/REC-html40">
<!-- #BeginTemplate "original_template.dwt" -->
<head>
<STYLE>
<!--
A:LINK, A:VISITED, A:ACTIVE { text-decoration: none }
A:hover { font-style: normal; font-weight: heavy }
A:hover {text-decoration: none;color: #FF9900}
//-->
</STYLE><!-- #BeginEditable "doctitle" -->
<title>what's New ?-EDI, X12, ebXML, data translator</title>
<!-- #EndEditable -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link rel="File-List" href="1-whatsnew_files/filelist.xml">

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
 
S

Steve Easton

Ok.
The fact that it is highlighted yellow only means that it is applied by the dwt, it does not mean it's an error.

So
1. What does it tell you the script error is??
2. Have you tried "Preview in Browser"??


--
Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm




microfan said:
yes, thats hwat i did, i attached dwt to pages...and these pages are having a
script error!...whast the solution?

Steve Easton said:
I'm a little confused here.

You don't attach pages to the DWT, You attach the DWT to pages.

--
Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm


microfan said:
hello,

I have created a dynamic template, and to taht template, i have attached
several pages....

But, while i want to preview those pages from the preview tab, it gives me
an error (script error), adn in the coding area i have the second line all
HIGHLIGHTED YELLOW!..which means its an error....

What can i do to correct the script?
Thats whats im getting: (beginning from te third line, all is highlighted
yellow)

<HTML xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns="http://www.w3.org/TR/REC-html40">
<!-- #BeginTemplate "original_template.dwt" -->
<head>
<STYLE>
<!--
A:LINK, A:VISITED, A:ACTIVE { text-decoration: none }
A:hover { font-style: normal; font-weight: heavy }
A:hover {text-decoration: none;color: #FF9900}
//-->
</STYLE><!-- #BeginEditable "doctitle" -->
<title>what's New ?-EDI, X12, ebXML, data translator</title>
<!-- #EndEditable -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link rel="File-List" href="1-whatsnew_files/filelist.xml">

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

 
M

microfan

yes, when i click on preview, it gives me script error, and thats what i get
in yellow...

<HTML xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns="http://www.w3.org/TR/REC-html40">
<!-- #BeginTemplate "original_template.dwt" -->
<head>
<STYLE>
<!--
A:LINK, A:VISITED, A:ACTIVE { text-decoration: none }
A:hover { font-style: normal; font-weight: heavy }
A:hover {text-decoration: none;color: #FF9900}
//-->
</STYLE><!-- #BeginEditable "doctitle" -->
<title>what's New ?-EDI, X12, ebXML, data translator</title>
<!-- #EndEditable -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link rel="File-List" href="1-whatsnew_files/filelist.xml">

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}



Steve Easton said:
Ok.
The fact that it is highlighted yellow only means that it is applied by the dwt, it does not mean it's an error.

So
1. What does it tell you the script error is??
2. Have you tried "Preview in Browser"??


--
Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm




microfan said:
yes, thats hwat i did, i attached dwt to pages...and these pages are having a
script error!...whast the solution?

Steve Easton said:
I'm a little confused here.

You don't attach pages to the DWT, You attach the DWT to pages.

--
Steve Easton
Microsoft MVP FrontPage
FP Cleaner
http://www.95isalive.com/fixes/fpclean.htm
Hit Me FP
http://www.95isalive.com/fixes/HitMeFP.htm


hello,

I have created a dynamic template, and to taht template, i have attached
several pages....

But, while i want to preview those pages from the preview tab, it gives me
an error (script error), adn in the coding area i have the second line all
HIGHLIGHTED YELLOW!..which means its an error....

What can i do to correct the script?
Thats whats im getting: (beginning from te third line, all is highlighted
yellow)

<HTML xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns="http://www.w3.org/TR/REC-html40">
<!-- #BeginTemplate "original_template.dwt" -->
<head>
<STYLE>
<!--
A:LINK, A:VISITED, A:ACTIVE { text-decoration: none }
A:hover { font-style: normal; font-weight: heavy }
A:hover {text-decoration: none;color: #FF9900}
//-->
</STYLE><!-- #BeginEditable "doctitle" -->
<title>what's New ?-EDI, X12, ebXML, data translator</title>
<!-- #EndEditable -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<link rel="File-List" href="1-whatsnew_files/filelist.xml">

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

 
S

Stefan B Rusynko

Edit the DWT page to move it and then reapply it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Hi Steve,
|
| i think it worked, i dont knwo waht happened....
|
| but i have another question:
|
| 1) how do i move editable regions? (if i want the same editable region to
| move a little bit because i places it in the wrong frame,how can i move it
| ...or is it stuck there...adn i have to repeat the whole thing adn attach the
| dwt to the other pages once again with the modified form???)
|
| 2)lets say i have a side menu bar being highlighted as an editable region in
| the dwt...adn i want to add a new menu item to this editable region menu side
| bar, how can i let the rest of the pages be updated to contain this new menu
| item???
|
| Thank you
|
|
| "Steve Easton" wrote:
|
| > Ok.
| > The fact that it is highlighted yellow only means that it is applied by the dwt, it does not mean it's an error.
| >
| > So
| > 1. What does it tell you the script error is??
| > 2. Have you tried "Preview in Browser"??
| >
| >
| > --
| > Steve Easton
| > Microsoft MVP FrontPage
| > FP Cleaner
| > http://www.95isalive.com/fixes/fpclean.htm
| > Hit Me FP
| > http://www.95isalive.com/fixes/HitMeFP.htm
| >
| >
| >
| >
| > | > > yes, thats hwat i did, i attached dwt to pages...and these pages are having a
| > > script error!...whast the solution?
| > >
| > > "Steve Easton" wrote:
| > >
| > >> I'm a little confused here.
| > >>
| > >> You don't attach pages to the DWT, You attach the DWT to pages.
| > >>
| > >> --
| > >> Steve Easton
| > >> Microsoft MVP FrontPage
| > >> FP Cleaner
| > >> http://www.95isalive.com/fixes/fpclean.htm
| > >> Hit Me FP
| > >> http://www.95isalive.com/fixes/HitMeFP.htm
| > >>
| > >>
| > >> | > >> > hello,
| > >> >
| > >> > I have created a dynamic template, and to taht template, i have attached
| > >> > several pages....
| > >> >
| > >> > But, while i want to preview those pages from the preview tab, it gives me
| > >> > an error (script error), adn in the coding area i have the second line all
| > >> > HIGHLIGHTED YELLOW!..which means its an error....
| > >> >
| > >> > What can i do to correct the script?
| > >> > Thats whats im getting: (beginning from te third line, all is highlighted
| > >> > yellow)
| > >> >
| > >> > <HTML xmlns:v="urn:schemas-microsoft-com:vml"
| > >> > xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
| > >> > xmlns="http://www.w3.org/TR/REC-html40">
| > >> > <!-- #BeginTemplate "original_template.dwt" -->
| > >> > <head>
| > >> > <STYLE>
| > >> > <!--
| > >> > A:LINK, A:VISITED, A:ACTIVE { text-decoration: none }
| > >> > A:hover { font-style: normal; font-weight: heavy }
| > >> > A:hover {text-decoration: none;color: #FF9900}
| > >> > //-->
| > >> > </STYLE><!-- #BeginEditable "doctitle" -->
| > >> > <title>what's New ?-EDI, X12, ebXML, data translator</title>
| > >> > <!-- #EndEditable -->
| > >> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
| > >> > <link rel="File-List" href="1-whatsnew_files/filelist.xml">
| > >> >
| > >> > <script language="JavaScript" type="text/JavaScript">
| > >> > <!--
| > >> > function MM_swapImgRestore() { //v3.0
| > >> > var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
| > >> > x.src=x.oSrc;
| > >> > }
| > >> >
| > >> > function MM_preloadImages() { //v3.0
| > >> > var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
| > >> > var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
| > >> > i++)
| > >> > if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
| > >> > }
| > >> >
| > >>
| > >>
| > >>
| >
| >
| >
 
S

Stefan B Rusynko

Editable regions are Not ever applied to pages using the DWT
- only non-editable regions are applied to your pages
Redo your DWT to make the menu a non-editable region

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| the problem is HOW DO I MOVE IT???...it just sticks in its place!!!!
|
| another question....:
|
| In my website, i have a menu bar which i made an editable region...in this
| menu bar i have : Home, about us, contact us......let s say i want to add
| another item "sitemap"....how can i make the editable regions in a dwt be
| applied on attached pages????!!!!
|
| thanx
|
| "Stefan B Rusynko" wrote:
|
| > Edit the DWT page to move it and then reapply it
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > _____________________________________________
| >
| >
| > | Hi Steve,
| > |
| > | i think it worked, i dont knwo waht happened....
| > |
| > | but i have another question:
| > |
| > | 1) how do i move editable regions? (if i want the same editable region to
| > | move a little bit because i places it in the wrong frame,how can i move it
| > | ...or is it stuck there...adn i have to repeat the whole thing adn attach the
| > | dwt to the other pages once again with the modified form???)
| > |
| > | 2)lets say i have a side menu bar being highlighted as an editable region in
| > | the dwt...adn i want to add a new menu item to this editable region menu side
| > | bar, how can i let the rest of the pages be updated to contain this new menu
| > | item???
| > |
| > | Thank you
| > |
| > |
| > | "Steve Easton" wrote:
| > |
| > | > Ok.
| > | > The fact that it is highlighted yellow only means that it is applied by the dwt, it does not mean it's an error.
| > | >
| > | > So
| > | > 1. What does it tell you the script error is??
| > | > 2. Have you tried "Preview in Browser"??
| > | >
| > | >
| > | > --
| > | > Steve Easton
| > | > Microsoft MVP FrontPage
| > | > FP Cleaner
| > | > http://www.95isalive.com/fixes/fpclean.htm
| > | > Hit Me FP
| > | > http://www.95isalive.com/fixes/HitMeFP.htm
| > | >
| > | >
| > | >
| > | >
| > | > | > | > > yes, thats hwat i did, i attached dwt to pages...and these pages are having a
| > | > > script error!...whast the solution?
| > | > >
| > | > > "Steve Easton" wrote:
| > | > >
| > | > >> I'm a little confused here.
| > | > >>
| > | > >> You don't attach pages to the DWT, You attach the DWT to pages.
| > | > >>
| > | > >> --
| > | > >> Steve Easton
| > | > >> Microsoft MVP FrontPage
| > | > >> FP Cleaner
| > | > >> http://www.95isalive.com/fixes/fpclean.htm
| > | > >> Hit Me FP
| > | > >> http://www.95isalive.com/fixes/HitMeFP.htm
| > | > >>
| > | > >>
| > | > >> | > | > >> > hello,
| > | > >> >
| > | > >> > I have created a dynamic template, and to taht template, i have attached
| > | > >> > several pages....
| > | > >> >
| > | > >> > But, while i want to preview those pages from the preview tab, it gives me
| > | > >> > an error (script error), adn in the coding area i have the second line all
| > | > >> > HIGHLIGHTED YELLOW!..which means its an error....
| > | > >> >
| > | > >> > What can i do to correct the script?
| > | > >> > Thats whats im getting: (beginning from te third line, all is highlighted
| > | > >> > yellow)
| > | > >> >
| > | > >> > <HTML xmlns:v="urn:schemas-microsoft-com:vml"
| > | > >> > xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
| > | > >> > xmlns="http://www.w3.org/TR/REC-html40">
| > | > >> > <!-- #BeginTemplate "original_template.dwt" -->
| > | > >> > <head>
| > | > >> > <STYLE>
| > | > >> > <!--
| > | > >> > A:LINK, A:VISITED, A:ACTIVE { text-decoration: none }
| > | > >> > A:hover { font-style: normal; font-weight: heavy }
| > | > >> > A:hover {text-decoration: none;color: #FF9900}
| > | > >> > //-->
| > | > >> > </STYLE><!-- #BeginEditable "doctitle" -->
| > | > >> > <title>what's New ?-EDI, X12, ebXML, data translator</title>
| > | > >> > <!-- #EndEditable -->
| > | > >> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
| > | > >> > <link rel="File-List" href="1-whatsnew_files/filelist.xml">
| > | > >> >
| > | > >> > <script language="JavaScript" type="text/JavaScript">
| > | > >> > <!--
| > | > >> > function MM_swapImgRestore() { //v3.0
| > | > >> > var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++)
| > | > >> > x.src=x.oSrc;
| > | > >> > }
| > | > >> >
| > | > >> > function MM_preloadImages() { //v3.0
| > | > >> > var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
| > | > >> > var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
| > | > >> > i++)
| > | > >> > if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
| > | > >> > }
| > | > >> >
| > | > >>
| > | > >>
| > | > >>
| > | >
| > | >
| > | >
| >
| >
| >
 

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