steven
unread,Nov 17, 2009, 9:27:34 PM11/17/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fancybox
I pretty much have the same problem but the object expected error only
occurs when i click the link 2nd time.
here is the code,
<script language="javascript" type="text/javascript">
function SetToCookie(clientid, catid, lessonid) {
setCookie("clientid", clientid, 1);
setCookie("catid", catid, 1);
setCookie("lessonid", lessonid, 1);
//alert($("a#autostart").fancybox());
$("a#autostart").fancybox().trigger('click');
}
</script>
<div class="Nav"><a href="#" onclick="SetToCookie('172','22','312')"
>TEST from script</a></div>
<div class="Nav"><a href="test.htm" id="autostart" >Hidden or not</a></
div>
when i click TEST from script the first time, the content in test.htm
will be shown in fancybox, but when i close the fancy box and click
TEST from script again,
an object expected error will occur. $("a#autostart").fancybox() is
where the error come from. Any help will be appreciated.