:
: > >I need some asp which I can use to put between some words within the
: > >body of a page which takes these words and places them inbetween the
: > >title tags.
: > >
: > >The idea is when an editor changes these tagged words (with
: > >Contribute2), it will also change in the title tags of a page.
: > >
: > >Any ideas??
:
: Ok,
:
: The pages are made as templates so the authors can only alter two
: areas of a page, the page headline which appears in the body as an H2
: tag, and the main content area.
:
: When the headline of the page is changed by the author I need the
: title tag to also be updated at the same time but the author has no
: access to the title tags.
:
: So,,,,,
:
: If some asp script could go around the headline on the page, then what
: ever is put in it by the author should then appear within the title
: tags..
See if this is what you're looking to do:
Option 1:
Note: Once you click the item to edit, you have to press ENTER to save the
changes. Do not click outside the text box before pressing ENTER to save
your changes or it freaks out.
http://rockintheplanet.com/lab/titlepage.asp
This is the ASP code you can't see that goes at the top of the page:
<%@ Language=VBScript %>
<% Option Explicit
dim headline
headline = "CLICK ME TO EDIT"
%>
Option 2:
This is possibly an IE only solution using contentEditable...
Instructions are on the page:
http://rockintheplanet.com/lab/titlepage.html
--
Roland
This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
-Technet Script Center-
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/default.asp
-MSDN Library-
http://msdn.microsoft.com/library/default.asp