Register JS methods change for CefSharp while updating cefsharp version from v. 57 to version 75.1.143

We were using cefsharp version 57.0 in our application and it was working all fine. But now due to some limitations we need to update cefsharp version to 75.1.143 and suddenly our working code broke. One change was to change LegacyJavascriptBindingEnabled to true and secondly this line is breaking: browser.RegisterJsObject(“objectForCallingServerSideMethods”, this); giving error System.ArgumentException: Registering…

Details

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