#Check to see if cookie has been set
#If it has, set $isExtended var to Cookie var
$isExtended = $_COOKIE['isExtended'];
#and echo current value
echo "isExtended = $isExtended ;";
#and set element's rendered class
[COLOR="Red"]if($isExtended == 0)
#If it hasn't, echo default value
echo "isExtended = 1 ;";
Same problem will occur with getProperty.
I didn't check if you were using this method with attribute style, but that will not work either.
05-13-2009, 02:25 PM
Thanks for the replies guys, I really appreciate it.
However, I've tried using that line of code aswell.
and the line of code posted above.
Each time I get a return message that 'footer' is null... which I don't understand since there is a div with the id of 'footer'...
I'm quite lost...
05-13-2009, 05:50 PM
05-13-2009, 06:44 PM
Thank you for your reply!
Yes, that particular way of fetching an element by id is from the Mootools framework, however, it's not the framework that I'm having an issue with, as no matter what syntax I use, even the most basic document.getElementById('footer').className='min';" returns that the footer is null.
The only question I have is why would it return the message of "document.getElementById("footer") is null" ?
I would greatly appreciate anyone that could help me understand this.
05-14-2009, 02:47 AM
we need to see the whole picture. Do you have a test page?
05-14-2009, 09:22 AM
element null issue
May very well be a sequence problem.