Quote:
Originally Posted by chrishirst
???????
It would appear that both of your example URIs ARE on the same site.
You simply need to work out what the code does differently on the page where you get the desired result to the page where you don't
HINT!
A cookie value does not exist until an action or event on the page creates it.
|
That's what's so baffling about it. I've changed nothing in the raw code, but inserting it into cbl.htm causes it to fail.
On the plus side, I've narrowed it down a bit. I've found that the code doesn't actually require a cookie to be set initially to work, so that's probably not my first problem at least.
The code works on initial page load by finding any <div id="tutor-guide"> and adding a class definition to make <div id="tutor-guide class="tutor-hide">.
Class="tutor-hide" is then described by CSS as "display:none" so the div will be hidden to start.
This is how it works in isolation (cbl-2.htm).
But again, for some reason, using the same code in cbl.htm does not produce this result. The tutor-hide class is not added to the div on page load so it is never hidden from the start.
Any possible cookie dysfunction is thus irrelevant, at least until I can find out why it won't initially hide.
Last edited by uomeds; 12-28-2009 at 06:41 AM..
|