Support Forums

Function Error

This is a discussion on Function Error within the Technical Support forums, part of the Technical Support Forums category; Hi, I'm stalling a GalleryView and i got this Error: $("#photos").galleryView is not a function . This the code I ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 07-09-2009, 04:02 PM   #1
Customer
 
Join Date: Jun 2009
Posts: 127
Rep Power: 10
pipelin is on a distinguished road
Default Function Error

Hi,

I'm stalling a GalleryView and i got this Error: $("#photos").galleryView is not a function.

This the code I have in layout.tpl:
{literal}
<script type="text/javascript">
$(document).ready(function(){
$('#photos').galleryView({
panel_width: 600,
panel_height: 450,
frame_width: 120,
frame_height: 90
});
});
</script>
{/literal}


and this is the code in viewlisting.tpl:
{if $viewphotos=="Y" && $data <> ''}
{foreach from=$data item=image}
<div id="photos" class="galleryView">
<div class="panel">
<img src="http://website.com/photos/{$image.image}" />
<div class="panel-overlay">
<h2>{$title}</h2>
<p><br/></p>
</div>
</div>

{/foreach}
<ul class="filmstrip">
{if $viewphotos=="Y" && $data <> ''}
{foreach from=$data item=image}

<li><img src="http://website.com/thumbs/small_{$image.image}" alt="{$title}" title="{$title}" /></li>

{/foreach}
{/if}
{else}
<img src="templates/{$smarty.const.MAIN_TEMPLATE}/images/nophoto.gif" width="100" hspace="5" vspace="5" border="1" />
{/if}

Can you help me please, to find where the error is?
pipelin is offline  
Old 07-09-2009, 08:35 PM   #2
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,090
Rep Power: 65
John Snyder is a jewel in the rough
Default

Sounds like you are not including the plugin script file or it isn't compatible with that version of jquery. I can help if you link to the page.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Payment/Coupons mis-function Bronxgodzilla Technical Support 4 12-31-2008 11:40 AM
Add Param to function hel68c Modules / Plugins / Modifications 4 11-25-2008 04:21 PM
php function seymourjames Modules / Plugins / Modifications 3 08-04-2008 11:43 AM


All times are GMT -4. The time now is 07:35 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0