Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Use cookie to trigger innerHTML change


Br3nn4n - 9:45 am on Mar 13, 2008 (gmt 0)


Using this code, the innerHTML isn't changing. How do I make the innerHTML change? Maybe use setTimeout?

Code:
<?php
if(isset($_COOKIE['pollchoice']))
echo "<script type='text/javascript' language='javascript'>document.getElementById('pollarea').innerHTML=\"poll results here\"</script>";
?>

Any ideas? I'm sure this is much easier than I'm making it :P


Thread source:: http://www.webmasterworld.com/javascript/3599361.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com