Calling PHP Snippet from on-page Ajax
-
Hi, I’ve been unable to find an example of how to call a PHP Snippet from an on-page Ajax function. Doesn’t look like shortcodes are an option yet. Could anyone point me in the right direction? Any helps appreciated.
$('#CryptoQR') .ajaxForm({ url : 'myscript.php', dataType : 'json', success : function (response) { document.getElementById("QRCode").src = "data:image/png;base64," + response; //your ByteArray as Base64 } }); </script>The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Calling PHP Snippet from on-page Ajax’ is closed to new replies.