{"id":662,"date":"2022-08-30T15:05:05","date_gmt":"2022-08-30T15:05:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/problem-about-jquery-load-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:05:05","modified_gmt":"2022-08-30T15:05:05","slug":"problem-about-jquery-load-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-jquery-load-collection-of-common-programming-errors\/","title":{"rendered":"problem about jquery-load-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3db724a8e76acb9224d945d49384b857?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDamon<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/260c5e16f844ba7015d95be6ef247445?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJacob Harding<br \/>\njavascript jquery-ajax jquery-load jquery-post<br \/>\nI&#8217;m a javascript noob, and I don&#8217;t understand why this works:$().load(&#8216;\/my\/url\/&#8217;, {my:data, more:data}, jsFunc());function jsFunc() {$(&#8220;#myid&#8221;).val(&#8220;yep&#8221;); }But not this:$().load(&#8216;\/my\/url\/&#8217;, {my:data, more:data}, function() {jsFunc()});function jsFunc() {$(&#8220;#myid&#8221;).val(&#8220;yep&#8221;); }I tried an $.ajax instead of<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3a91a1f18811774f417241979a1e5ea3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nThomas McCabe<br \/>\nphp jquery ajax jquery-ajax jquery-load<br \/>\nI&#8217;m working on a project that involves quite a bit of loading PHP modules with jQuery. I&#8217;m running into a strange issue with the $.load function. About 50% of the time the POST variable isn&#8217;t passed with this function. This is another developer&#8217;s code, so I&#8217;m trying to work with it and change litt<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e3b9310fa7f56274306b1e1cb481e815?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBeardy<br \/>\njquery jquery-load<br \/>\nI&#8217;d like to bring in multiple fragments from 1 webpage into a div but the only way I have been able to get it working is by using multiple .load() functions.Is there a way to simplify the following into 1 html request?$(&#8216;.quickview-dialog-left&#8217;).load(&#8216;\/productlargetest .productlargeimage img&#8217;); $(<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e44804f7ae5725791a43de36b00714d8?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1437779<br \/>\njavascript jquery jquery-load getscript<br \/>\nI&#8217;ve seen many topics on this site about using jquery load and loading the script the in the html fragment. I, unfortunately, have not been able to get any of these methods (getscript) to work. Here is the c<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2f90e858672c079741471f72cba5480c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBen<br \/>\nphp jquery jquery-live jquery-load<br \/>\nI am using jQuery .load() to load a php-file. This php-file echos out a new div. This div contains an attribute &#8220;title&#8221;, whose value I need to get in my js-file.\/\/<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/62941756ae6ddc0c3e98b9f7080d38ae?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nArief<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-11-09 21:18:17. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Damon Jacob Harding javascript jquery-ajax jquery-load jquery-post I&#8217;m a javascript noob, and I don&#8217;t understand why this works:$().load(&#8216;\/my\/url\/&#8217;, {my:data, more:data}, jsFunc());function jsFunc() {$(&#8220;#myid&#8221;).val(&#8220;yep&#8221;); }But not this:$().load(&#8216;\/my\/url\/&#8217;, {my:data, more:data}, function() {jsFunc()});function jsFunc() {$(&#8220;#myid&#8221;).val(&#8220;yep&#8221;); }I tried an $.ajax instead of Thomas McCabe php jquery ajax jquery-ajax jquery-load I&#8217;m working on a project that involves quite a bit [&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-662","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/662","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=662"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/662\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}