Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2008
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Prototype only works after refresh

    I'm having an issue with prototype...
    I have the following code that I want to execute:

    Code:
    Event.observe(window, 'load', function(){
    				$('mesTour1').hide();
    				$('mesTour2').hide();
    				$('mesTour3').hide();
    				$('mesTour4').hide();
    				$('mesTour1').appear().delay(0.5);
    				$('cancelTour').observe('click', function(){
    					$('mesTour1').fade();
    				});
    			});
    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?

  • #2
    New Coder
    Join Date
    May 2008
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    also, 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...
    test.chicagohomeestates.com
    to log in, use tester@fakenstein.com, password 123456


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •