[jQuery] Re: $(document).ready(function() is causing scripts to run twice!

2009-03-21 Thread Derek Perkins
Thanks for taking the time to help me out James and MorningZ. The first time the image is loaded, it is loading the large image file (patty1.jpg) into the main scrolling window via PHP into #slideshow. At the same time, I am pulling the thumbnail out (patty1-53x40.jpg) and using it as an anchor t

[jQuery] Re: $(document).ready(function() is causing scripts to run twice!

2009-03-20 Thread James
Looking at your page source, it looks like you have in your HTML, hard- coded or something: http://derekperkins.com/seatability1/pattys-taking-over/"; title="Patty’s Taking Over">http://derekperkins.com/ seatability1/wp-content/uploads/2009/03/patty1.jpg" alt="Patty’s Taking Over" class="thumbnail

[jQuery] Re: $(document).ready(function() is causing scripts to run twice!

2009-03-20 Thread Derek Perkins
You can see where it is running twice here: http://derekperkins.com/seatability1/ Basically, in the middle box and in the right sidebar, I am dynamically loading images via Javascript, but they are being double loaded. In the middle of the page, you can see that the thumbnails are loaded twice.

[jQuery] Re: $(document).ready(function() is causing scripts to run twice!

2009-03-20 Thread James
Showing some code and html would definitely help. There's a possibility that you're loading a page that runs the code, and then dynamically loading another page immediately (e.g. through AJAX Tabs) that contains the piece of code again on that page and executing it. On Mar 20, 6:25 am, MorningZ

[jQuery] Re: $(document).ready(function() is causing scripts to run twice!

2009-03-20 Thread MorningZ
If the code is running twice, then you don't have it wired in correctly showing the HTML and script would be a big help to getting others to help you On Mar 20, 11:38 am, Derek Perkins wrote: > I encase all of my functions inside of a jQuery(document).ready > (function() {} block, but I notice