Hey,
I have a JS code for loading pages via AJAX, and I want it so when a button is clicked it calls my function for saving (I need it to save multiple times, so i put it in a while() statement in PHP
and NOT in the while() statement I haveCode:<script type="text/javascript"> function save() { ajaxpage('savepage.php?user=<? echo $_SESSION[username]; ?>&id=<? echo $row[id]; ?>&name=<? echo $row[name]; ?>, 'savediv'); } </script>
but it doesn't save, and in Firebug I get an error saying "save is not a function" when clicking the button :S, any help? ThanksCode:<form> <input type="button" name="save" onClick="javascript:save();" value="Save"></form>





Reply With Quote

