Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-07-2011, 07:26 PM   PM User | #1
thenajsays
New Coder

 
Join Date: May 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
thenajsays is an unknown quantity at this point
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?
thenajsays is offline   Reply With Quote
Old 11-07-2011, 08:45 PM   PM User | #2
thenajsays
New Coder

 
Join Date: May 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
thenajsays is an unknown quantity at this point
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
thenajsays is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:38 PM.


Advertisement
Log in to turn off these ads.