{"id":1710,"date":"2022-08-30T15:18:48","date_gmt":"2022-08-30T15:18:48","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/29\/fancybox-and-msg-conflict-object-function-has-no-method-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:18:48","modified_gmt":"2022-08-30T15:18:48","slug":"fancybox-and-msg-conflict-object-function-has-no-method-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/fancybox-and-msg-conflict-object-function-has-no-method-collection-of-common-programming-errors\/","title":{"rendered":"fancybox and msg conflict &#8211; Object function has no method-Collection of common programming errors"},"content":{"rendered":"<p>I got these two scripts working at on my page:<\/p>\n<pre><code>$(document).ready(function() {\n    $(\".various\").fancybox();\n}); \n<\/code><\/pre>\n<p>wich is opening a lightbox with ajax content and the following:<\/p>\n<pre><code>$('.check_item_delete.edit').bind( 'click', function(){\n    $.msg({ content : 'blah blah' });\n});\n<\/code><\/pre>\n<p>wich is a kind of modal script.<\/p>\n<p>the triggering elements are those:<\/p>\n<pre><code>\n   \n      \n         Vorversion\n      \n      \n         l\u00f6schen\n      \n   \n   \n      (6) bla bla bla\n      \n         Ver\u00f6ffentlicht von xxx vor 48 Minuten am 15.12.2012 22:56 (AR)\n      \n   \n\n<\/code><\/pre>\n<p>Everything is working fine. But when I once opened the fancybox and then like to open the jquery.msg modal I get the following error:<\/p>\n<blockquote>\n<p>Uncaught TypeError: Object function (a,b){return new p.fn.init(a,b,c)} has no method &#8216;msg&#8217; (anonymous function)<\/p>\n<\/blockquote>\n<p>Im working with http:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.8.2\/jquery.min.js and the new versions of fancybox 2 and jquery.msg<\/p>\n<p>Anybody got an idea?<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-29 06:07:57. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I got these two scripts working at on my page: $(document).ready(function() { $(&#8220;.various&#8221;).fancybox(); }); wich is opening a lightbox with ajax content and the following: $(&#8216;.check_item_delete.edit&#8217;).bind( &#8216;click&#8217;, function(){ $.msg({ content : &#8216;blah blah&#8217; }); }); wich is a kind of modal script. the triggering elements are those: Vorversion l\u00f6schen (6) bla bla bla Ver\u00f6ffentlicht von [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1710","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1710"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1710\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}