ajax_object is not defined when ajax call the funtion

When i call function in php using ajax i get Uncaught (in promise) ReferenceError: ajax_object is not defined html2canvas(document.getElementById(“primary”)).then(function(canvas) { console.log(“image_base64: “, canvas); var data = { ‘action’: ‘bingogames_canvas_save’, ‘play_id’: play_id, ‘image_base64’: canvas.toDataURL() }; jQuery.post(ajax_object.ajax_url, data, function(response) { console.log(‘Got this from the server: ‘, response); }); }); My jquery function is in template file an…

Details

HAproxy redirect map

I have à large amount of redirection to make for multiple hosts. Redirections look like this : dom.aaa/page_src_a —–> dom.bbb/page_dist_1 www.dom.aaa/page_src_b —–> dom.bbb/page_dist_2 dom.ccc/page_src_c —–> dom.bbb/page_dist_3 dom.ccc/page_src_d —–> dom.bbb/page_dist_4 dom.ddd/page_src_e —–> dom.bbb/page_dist_5 … … dom.zzz/page_src_z —–> dom.bbb/page_dist_X Destination domain is always de same, only source domain, source req_uri and destination req_uri are variables. Can I…

Details