{"id":1704,"date":"2022-08-30T15:18:45","date_gmt":"2022-08-30T15:18:45","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/29\/asp-net-repeater-with-fancybox-inline-html-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:18:45","modified_gmt":"2022-08-30T15:18:45","slug":"asp-net-repeater-with-fancybox-inline-html-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/asp-net-repeater-with-fancybox-inline-html-collection-of-common-programming-errors\/","title":{"rendered":"ASP.NET Repeater with FancyBox Inline html-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to have a repeater which shows items from a database, and then a modify button at the end which opens up a modify form in a fancy box. I am able to make inline HTML appear in a fancybox just fine following the tutorials from the website. However, the issue is when I try to do this within a .net repeater.<\/p>\n<pre><code>\n    \n\n    Modify\n\n    \n       Some content here\n    \n\n    \n\n<\/code><\/pre>\n<p>Javascript:<\/p>\n<pre><code>$(document).ready(function () {\n    $(\".modify\").fancybox(); \n});\n<\/code><\/pre>\n<p>When I load the page, I can see the content divs are created with the correct ID&#8217;s, and the HREFS on the links are pointing to the correct ID as well.<\/p>\n<p>When I click the button to modify, it just reloads the entire page inside the fancybox.<\/p>\n<p>In the console, I will see it says &#8220;Uncaught TypeError: Canot call method &#8216;width&#8217; of undefined<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-29 06:07:26. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to have a repeater which shows items from a database, and then a modify button at the end which opens up a modify form in a fancy box. I am able to make inline HTML appear in a fancybox just fine following the tutorials from the website. However, the issue is when I [&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-1704","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1704","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=1704"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1704\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}