Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

jquery no conflict

Posted on 2012-03-28
3
Medium Priority
?
846 Views
Last Modified: 2012-03-28
Test page http://www.mistletoebay.co.nz/sandpit/test.php
My page was bug free until I added an accordion script that used var $j = jQuery.noConflict();
Since then I am receiving an Object expected error on line 34. The page still works fine however it would be great to resolve this issue.
can anyone suggest a fix?
Cheers,
N
0
Comment
Question by:Neil_Bradley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 37779893
replace :
        </script>
		<script type="text/javascript">
		$(function () {
			$('#slideshow-common img').hide();//hide all the images on the page
		});		
		var i = 0;//initialize
		var int=0;//Internet Explorer Fix
		$(window).bind("load", function() {//The load event will only fire if the entire page or document is fully loaded
			var int = setInterval("doThis(i)",500);//500 is the fade in speed in milliseconds
		});
		function doThis() {
			
			var imgs = $('#slideshow-common img').length;//count the number of images on the page
			if (i >= imgs) {// Loop the images
				clearInterval(int);//When it reaches the last image the loop ends
			}
			$('#slideshow-common img:hidden').eq(0).fadeIn(500);//fades in the hidden images one by one
			i++;//add 1 to the count
			
			$('#slideshow-common').removeClass('image-holder')
		}
	</script>

Open in new window

by :
        </script>
		<script type="text/javascript">
		jQuery(function () {
			jQuery('#slideshow-common img').hide();//hide all the images on the page
		});		
		var i = 0;//initialize
		var int=0;//Internet Explorer Fix
		jQuery(window).bind("load", function() {//The load event will only fire if the entire page or document is fully loaded
			var int = setInterval("doThis(i)",500);//500 is the fade in speed in milliseconds
		});
		function doThis() {
			
			var imgs = jQuery('#slideshow-common img').length;//count the number of images on the page
			if (i >= imgs) {// Loop the images
				clearInterval(int);//When it reaches the last image the loop ends
			}
			jQuery('#slideshow-common img:hidden').eq(0).fadeIn(500);//fades in the hidden images one by one
			i++;//add 1 to the count
			
			jQuery('#slideshow-common').removeClass('image-holder')
		}
	</script>

Open in new window

0
 
LVL 82

Expert Comment

by:leakim971
ID: 37779895
You've a 404 error for this file : http://www.mistletoebay.co.nz/sandpit/js/easyTooltip.js
0
 
LVL 5

Author Closing Comment

by:Neil_Bradley
ID: 37779925
A++ for that one!
Huge thank you the the fast and perfect solution.
Cheers,
N
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question