My datalist loads. When I nclick thumbnail image in datalist I get error 'Microsoft JScript runtime error: Object doesn't support property or method 'onCleanup'' My browser is ie9. I believe all my links are correct. Thanks for assistance.
I looked at those links and triedwhat they suggested but that didn't solve problem. I downloaded latest version of fancybox and put all links into content page and that worked. Don't knowwhat was wrong with original approach but I now have working fancybox.
sg48asp
Member
322 Points
475 Posts
Fancybox Error - Object doesn't support property or method 'onCleanup''
May 26, 2012 08:47 PM|LINK
My datalist loads. When I nclick thumbnail image in datalist I get error 'Microsoft JScript runtime error: Object doesn't support property or method 'onCleanup'' My browser is ie9. I believe all my links are correct. Thanks for assistance.
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Photos.aspx.vb" Inherits="Photos" %> <asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server"> <style type="text/css"> .uibtn:hover{ cursor:pointer;} </style> <script type="text/javascript"> $(document).ready(function () { $("a[rel=example_group]").trigger('click'); $("a[rel=example_group]").fancybox({ 'transitionIn': 'none', 'transitionOut': 'none', 'titlePosition': 'over', 'titleFormat': function (title, currentArray, currentIndex, currentOpts) { return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '</span>'; } }); }); </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Main" Runat="Server"> <div> <asp:datalist id="dtl1" runat="server" RepeatDirection="Horizontal" RepeatColumns="5" RepeatLayout="Table" > <ItemTemplate> <a rel="example_group" href='<%# "images/photos/" & _ Eval("Filename") & "_b." & Eval("Ext") %>' title='<%#Eval("Title")%>'> <img alt=" " src='<%# "images/photos/" & Eval("Filename") & "_s." & Eval("Ext") %>' /></a> </ItemTemplate> </asp:datalist> </div> </asp:Content>rageshS
Member
664 Points
319 Posts
Re: Fancybox Error - Object doesn't support property or method 'onCleanup''
May 27, 2012 10:19 AM|LINK
Try this links
http://stackoverflow.com/questions/5015464/fancybox-not-working-in-ie8-method-oncleanup-not-supported
http://stackoverflow.com/questions/4468348/fancybox-d-oncleanup-is-not-a-function
sg48asp
Member
322 Points
475 Posts
Re: Fancybox Error - Object doesn't support property or method 'onCleanup''
May 27, 2012 04:07 PM|LINK
Thanks for response.
I looked at those links and triedwhat they suggested but that didn't solve problem. I downloaded latest version of fancybox and put all links into content page and that worked. Don't knowwhat was wrong with original approach but I now have working fancybox.