View Full Version : Prototype only works after refresh

07 Nov 2011, 04:10 PM
I'm having an issue with prototype...
I have the following code that I want to execute:

Event.observe(window, 'load', function(){
$('cancelTour').observe('click', function(){
the very first time it's loaded, it doesn't work, but if the page is refreshed, it works perfectly. is there something I'm missing?
ive tried a number of variations on order, placing the code directly in the page, placing it in a file and linking to the file... nothing works... but other javascript functions work correctly... just not the new ones i've added. this site was managaged by someone else previously and i recently am taking it over.
to get it to duplicate the issue ive been resetting the browser each time, clearing out everything...
to log in, use tester@fakenstein.com, password 123456