| Author | Post |
|---|
RogerKirk Member
| Joined: | Fri Oct 14th, 2005 |
| Location: | |
| Posts: | 6 |
|
Posted: Sat Oct 15th, 2005 12:27 am |
|
I am using an exclude block around JavaScript stuff as recommended:
<!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" -->
<div excludeblock="Hit">
<SCRIPT language=JavaScript type=text/javascript>var site="xxxx.com"</SCRIPT>
<SCRIPT language=JavaScript1.2 src="http://xxxx.com/js/counter.js?site=xxx" type=text/javascript>
</SCRIPT>
<NOSCRIPT>
<a href="http://xxxx.com/stats.asp?site=xxxx" target="_top">
<img src="http://xxxx.com/meter.asp?site=xxxx" alt="Site Meter" border="0" /></a>
</NOSCRIPT><!-- Copyright (c)2002 Site Meter -->
</div><!--excludeblock="Hit"-->
<!--WEBBOT bot="HTMLMarkup" Endspan -->
When I bring up a page that includes the file this code is in, I get an error stating "Excludeblock=Hit is not closed with a comment <!--excludeblock=null-->"
Why null? And more importantly, why doesn't the excludeblock work?
|
Keith Moderator
| Joined: | Fri Apr 8th, 2005 |
| Location: | |
| Posts: | 578 |
|
Posted: Sat Oct 15th, 2005 06:22 pm |
|
RogerKirk
Your comment
<!--excludeblock="Hit"-->
does not include a space after the first set of dashes and before the last set of dashes, as in
<!-- excludeblock="Hit" -->
You need to either add those spaces or update to the current version (which allows for no spaces) (and fixes why it said "null" instead of "Hit")
|
netforce Member
| Joined: | Fri Feb 24th, 2006 |
| Location: | |
| Posts: | 9 |
|
Posted: Fri Feb 24th, 2006 08:38 am |
|
Ok I have the latest version and I am getting this error when the page loads:
When I bring up a page that includes the file this code is in, I get an error stating "Excludeblock=one is not closed with a comment <!--excludeblock=one-->"
This is what teh code looks like:
<DIV excludeblock="one">
<script language=Javascript>
function centerPopUp( url, name, width, height, scrollbars ) {
if( scrollbars == null ) scrollbars = "0"
str = "";
str += "resizable=1,";
str += "scrollbars=" + scrollbars + ",";
str += "width=" + width + ",";
str += "height=" + height + ",";
if ( window.screen ) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
var xc = ( aw - width ) / 2;
var yc = ( ah - height ) / 2;
str += ",left=" + xc + ",screenX=" + xc;
str += ",top=" + yc + ",screenY=" + yc;
}
window.open( url, name, str );
}
</script>
</DIV><!--excludeblock="one"-->
|
Keith Moderator
| Joined: | Fri Apr 8th, 2005 |
| Location: | |
| Posts: | 578 |
|
Posted: Fri Feb 24th, 2006 05:21 pm |
|
That code block does not produce an error for me.
Open /editwrx/library/ini/toolbar_js.txt and search for
re= new RegExp ('<!-- *excludeblock="'+obj.getAttribute('excludeblock')+'" *-->')
If you do not find that on line 577 you do not have the newer versio update.
|
netforce Member
| Joined: | Fri Feb 24th, 2006 |
| Location: | |
| Posts: | 9 |
|
Posted: Fri Feb 24th, 2006 06:33 pm |
|
| Well I just downloaded the editor yesterday so I would assume it is the latest version..however I figured out the issue. Thanks
|
 Current time is 05:15 pm | |
|