 |

CoachRichard
User
Apr 8, 2003, 9:06 AM
Post #1 of 4
(2575 views)
Shortcut
|
I am trying to have the HTML page title <Title></Title>, and my content page title change when my content editors change a certain field in the site. I thought about using innerHTML to pull from one area and paste to another, but everything I have read seems to need an input method using a form. Does anyone have experince with innerHTML or have a similar Perl suggestion to get content from one area and have it write to another? I would try javascript too, but prefer not. Richard
|
|
|  |
 |

Benjamin
Staff

Apr 8, 2003, 3:09 PM
Post #2 of 4
(2565 views)
Shortcut
|
You prefer Perl over JavaScript? Erg ;-) (no bias here) Even with innerHTML, you'd need to call it with JavaScript (or if there's another way, this would certainly be the simplest). Plus, bear in mind innerHTML only works with compatible browsers - the later ones. Post me back with the explicits of what you're trying to do and I'll see if I can't help. :-) Ben interactivetools.com
|
|
|  |
 |

CoachRichard
User
Apr 8, 2003, 3:21 PM
Post #3 of 4
(2562 views)
Shortcut
|
I build pages for people that have one of two content management systems (one being your Page Publisher, the other a coldfusion product). In theory, I like to build for them blank pages that they can populate at will without coming to me daily for more pages. I'd like these pages to be functional as soon as they are finished entering hier content and linking to them. My need is to have the a visual title field <DIV> or <span> that would be populated with the title that they give elsewhere. I would also like to copy thta content to the <title></title> field at the top of the HTML page. Does that make sense?
(This post was edited by CoachRichard on Apr 9, 2003, 8:01 AM)
|
|
|  |
 |

Benjamin
Staff

Apr 10, 2003, 12:02 PM
Post #4 of 4
(2534 views)
Shortcut
|
Hey Richard, Try this out: <html> <head> <title id="title">NEW Content!!!</title> </head> <body> <span id="replace"> Old Content!!! </span> <script> <!-- document.getElementById('replace').innerHTML = document.getElementById('title').innerHTML; --> </script> </body> </html> Ben interactivetools.com
(This post was edited by Benjamin on Apr 10, 2003, 12:02 PM)
|
|
|  |
|