Re: Dynamic update of content
| From: | Galkov Vladimir | Date: | Thu, 01 Nov 2001 05:48:02 +0000 |
| Subject: | Re: Dynamic update of content | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73109@lists.php.net to get a copy of this message | ||
Good day!
Well... you can recive access to any tag on HTML page form java-script with
code like this:
<h1 id='Razdel'> here will be text from selected option </h1>
<br>
<select id=selector onchange='some_event()'>
.............
</select>
........
function some_event()
{
objH1 = document.all["razdel"];
objSelector = document.all["selector"];
objH1.innerText = objSelector.value;
}
.........
innerText is a content betvin <h1> </h1>
Well... don't test that code... so cach only idea... but if you need more
coments mail me I'll send working example.
Have a nice day!
-------------------
Galkov Vladimir
galkov@kraft-s.ru