| Author | Post |
|---|
Keith Moderator
| Joined: | Fri Apr 8th, 2005 |
| Location: | |
| Posts: | 578 |
|
Posted: Mon May 23rd, 2005 03:34 pm |
|
An Excludeblock cannot be edited by any user including a Super User.
Excludeblocks are designed to protect content on a page that is produced by a dynamic process, such as a JavaScript document.write() function or an SSI-ASP-PHP include.
An ExcludeBlock must be created in the page's source code. Examples:
<div excludeblock="one">
<script>
document.write("Hello")
</script>
</div><!--excludeblock="one" -->
<div excludeblock="two">
<!--#include virtual="/path/calculate.cgi" -->
</div><!--excludeblock="two" -->
An excludeblock may be placed anywhere on a page, including inside of an editblock. An excludeblock's open and close may not span across other element (you can not start an excludeblock in one table cell and close in another table cell.
|
jes Member
| Joined: | Mon Jul 7th, 2008 |
| Location: | |
| Posts: | 6 |
|
Posted: Wed Jul 9th, 2008 10:42 am |
|
Hi. been trawling thru the forum today and learnt heaps about EditWrx. Looks good.
just have a quick question (sorry its so basic but that's where I'm at)
I'm planning on using a couple of javascripts to:
1. change the style on the 'active page' menu-links, and
2. document.write/encrypt the email addresses, which are repeated on several pages.
I gather I use Excludeblocks for these situations BUT do I need to call each instance a different name/number?
For example, say I have the same script in the header of every page to set the style of the active link on that page.
can I just copy and paste the same code (and therefore the same Excludeblock code) in each header? yes?
TIA,
jes
|
Keith Moderator
| Joined: | Fri Apr 8th, 2005 |
| Location: | |
| Posts: | 578 |
|
Posted: Wed Jul 9th, 2008 03:44 pm |
|
Each excludeblock, like editblocks, must have a unique name/number.
When using excludeblock(s) or editblock(s) the browser does not send the content of the page to the server to be saved, it sends only the editblock(s) and the name of the excludeblocks. The server side has to find the editblock(s) and excludeblock(s) in the source code. The only way to do that is to give each a unique name/number.
|
jes Member
| Joined: | Mon Jul 7th, 2008 |
| Location: | |
| Posts: | 6 |
|
Posted: Wed Jul 9th, 2008 11:01 pm |
|
OK I get it now. Thanks Keith. you're a legend.
j
|
 Current time is 05:02 pm | |
|