function show_productlist(categoryid) { dojo.xhrGet( { url: "products/list.php?categoryid=" + escape(categoryid), handleAs: "text", timeout: 5000, load: function(response, ioArgs) { dojo.byId("products-info").innerHTML = response ; return response; }, error: function(response, ioArgs) { console.error("HTTP status code: ", ioArgs.xhr.status); return response; } } ); } function categories_show(parent) { dojo.xhrGet( { url: "header/ajax_catscroll.php?parent=" + escape(parent), handleAs: "text", timeout: 5000, load: function(response, ioArgs) { dojo.byId("mycustomscroll2").innerHTML = response ; return response; }, error: function(response, ioArgs) { console.error("HTTP status code: ", ioArgs.xhr.status); return response; } } ); }