473,388 Members | 1,309 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

copy from body into title

Hi,

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??
Jul 19 '05 #1
6 1394
If you are using tags throughout the "text," perhaps you could consider
using an XML parser (MSXML) and get the value of contribute2 tag. I think
this is the best way.

Otherwise, you have to do a text search for the tag and retrieve the value
between tags -- use InStr/Mid function.

--
Manohar Kamath
Editor, .netBooks
www.dotnetbooks.com
"chris" <lo*****@yahoo.co.uk> wrote in message
news:14*************************@posting.google.co m...
Hi,

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??

Jul 19 '05 #2
I am missing what you are saying, but would like to help ... is the
user going to be changing the title of the page? ... or when does the
title change exactly.

On 1 Jan 2004 09:45:24 -0800, lo*****@yahoo.co.uk (chris) wrote:
Hi,

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??


;)

Brynn
www.coolpier.com
Jul 19 '05 #3
z@z.com (Brynn) wrote in message news:<3f***************@news.comcast.giganews.com> ...
I am missing what you are saying, but would like to help ... is the
user going to be changing the title of the page? ... or when does the
title change exactly.

On 1 Jan 2004 09:45:24 -0800, lo*****@yahoo.co.uk (chris) wrote:
Hi,

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??


;)

Brynn
www.coolpier.com

------------------------------

Ok,

The pages are made as templates so the authors can only alter two
areas of a page, the page headline which apears 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..
Hope this helps
Jul 19 '05 #4
"chris" wrote:
: > >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/tre...er/default.asp
-MSDN Library-
http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #5
The second option does just the job, you a giant amongst men sir...

Chris


"Roland Hall" <nobody@nowhere> wrote in message news:<On**************@TK2MSFTNGP10.phx.gbl>...
"chris" wrote:
: > >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/tre...er/default.asp
-MSDN Library-
http://msdn.microsoft.com/library/default.asp

Jul 19 '05 #6
"chris" wrote:
: The second option does just the job, you a giant amongst men sir...

I'm only 6'1". (O:=

Glad I could help.

--
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 Knowledge Base-
http://support.microsoft.com/default...&ln=EN-US&FR=0
-Technet Script Center-
http://www.microsoft.com/technet/tre...er/default.asp
-MSDN Library-
http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: tabonni | last post by:
Hi all I want to create an ASP page, which can copy the real PDF files into the clipboard and then the user can paste it in Outlook message as attachments(it's like inserting attachments) My...
5
by: tabonni | last post by:
Hello All I am creating an ASP page. There are a list of filename and checkbox next to it. When user checked all the documents they want and click ADD TO CLIPBOARD button. All filepaths will be...
1
by: Alexandre Jaquet | last post by:
Hi, I would like to copy and paste a selected item on a web page I already 've a context menu when the user rigth click on an item. I would like to draw a rectangle who carry about current...
7
by: Bani | last post by:
Is it possible to get browser-menu events (IE) into Javascript? I have a special copy/paste on the onkeydown event (ctrl+c/ctrl+v). Now the users would like to trigger it also from the browser...
5
by: Gernot Frisch | last post by:
How can I put text from a <textarea name="test"></textarea> into my clipboard (Windows, Firefox+IE). -- -Gernot int main(int argc, char** argv) {printf ("%silto%c%cf%cgl%ssic%ccom%c", "ma",...
2
by: charles-brewster | last post by:
I'm trying to write a simple JavaScript function which will use a button to copy table cell data into a form input text box as the "value" attribute. The following is intended to test the...
13
by: Mounir | last post by:
Hi, Assume that right and left are multiple select elements. It's about the following line : right.options=left.options; It copies the content of left.options into right.options, but...
1
by: brussel | last post by:
I'm trying to copy information in one iframe to another iframe with javascript. I am using firefox and information from my local domain so there are no security issues. However I'm just not getting...
12
chunk1978
by: chunk1978 | last post by:
hi there... i'd like to know if it's possible to copy a selected file's name (value?) and insert it into a basic text field thru an onchange event handler... here is my code: <!DOCTYPE html...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.