please feel free to delete this... i am an idiot... here is my code that works in case anyone was curious as to what i was trying to accomplish...
Code:
<? require("Sajax.php"); function sayhi(){ return "Name: Tom / Age: 26"; } sajax_init(); // $sajax_debug_mode = 1; sajax_export("sayhi"); sajax_handle_client_request(); ?> <html> <head> <title>Multiplier</title> <script> <? sajax_show_javascript(); ?> function sayhi(result) { document.getElementById('canvas').innerHTML += '<p>'+result+'</p>'; } </script> </head> <body> <div id="canvas" style="border: solid 1px black; margin: 1em; padding: 1em;"></div> <input type="button" name="check" value="Say Hi" onclick="x_sayhi(sayhi);"> </body> </html>
Comment