Skip to content


One last Java Script hurdle

So I finished all my Java Script projects for the semester last week…until I got to class on Monday and my instructor tells me that Project 3B isn’t working so he cannot grade it. I pull out my thumb drive, open the web page, and it works flawlessly. Double check that the proper file was uploaded to the school server, which it was, but it doesn’t work there. Not in Firefox, not in IE.

Two days later and lots of grumbling I figure out a fix. The fix of course doesn’t work locally, only when I upload it to the server! I still do not know exactly what is wrong but kinda have a clue. The project involves writing and then reading a cookie. The cookie tracks how many times a particular person has viewed the page and loads a different photo for each subsequent visit. It appears that the cookie the server writes is quite different than the one from the local machine.

My instructor hates cookies. Now I understand his feelings. If anyone out there has some knowledge about cookies (and I don’t mean the chocolate chip kind) I would greatly appreciate your enlightenment. The page works properly now, I would just like to know why!

Posted in JavaScript, VOX Post, Website Design.



RED LINE STUDIO BLOG is Digg proof thanks to caching by WP Super Cache!