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 03-06-2009, 06:37 PM   PM User | #1
surreal5335
Regular Coder

 
Join Date: May 2008
Posts: 446
Thanks: 23
Thanked 5 Times in 5 Posts
surreal5335 is an unknown quantity at this point
function undefined

I am using a jcarousel lite plugin and trying to get it to show a certain selection of photos upon clicking a picture in another carousel.

I have been able to get the sub carousels to show up, but just not in a carousel format, just made random static lists.

The code I have below firefox says the showMe(n) is not defined, well actually it says that about the html code onclick="showMe(1)" which is placed in the img tag of the main carousel.




Code:
var currentUl = 1;
function showMe(n) {
	$("ul#gallery").click(function(){
	$("#ex_"+currentUl).hide();
	$("#ex_"+n).show(function() {
		$("div#picture").show();
		$("span#picture").show();
	});
currentUl = n;
});
}
I have this code loaded into the
$(document).ready(function(){

Which I understand is crucial to getting this kind of thing to work.

my link:

http://royalvillicus.com/photo_site/photo.html

I appreciate any assistance in the matter
surreal5335 is offline   Reply With Quote
Old 03-06-2009, 11:05 PM   PM User | #2
Eldarrion
Regular Coder

 
Join Date: Feb 2009
Location: Wheeling, IL
Posts: 358
Thanks: 5
Thanked 62 Times in 60 Posts
Eldarrion is on a distinguished road
Try this:

Code:
	onclick="showMe('1')"
Should solve the issue.
Eldarrion is offline   Reply With Quote
Old 03-07-2009, 01:20 AM   PM User | #3
surreal5335
Regular Coder

 
Join Date: May 2008
Posts: 446
Thanks: 23
Thanked 5 Times in 5 Posts
surreal5335 is an unknown quantity at this point
Thanks for the suggestion, although that didnt seem to help.


The odd thing is, I have used this code with other sites no problem that was mostly javascript. Could be a jquery issue I guess.

Thanks a lot for all your help
surreal5335 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 08:44 PM.


Advertisement
Log in to turn off these ads.