How can I do this without the ajaxy goodness? I need to debug a troublesome php script. There isn’t a form just an image that when clicked performs the following.
$.post("php/navTabs.php", { action: "deleteTab", theHTM: thehtm }, function(jdata) {
alert("The tab was " + jdata.is_deleted);
}, "json");
Thanks again,
Todd
Short answer: you can’t with Javascript.
Long answer:
If you want to avoid using AJAX, you have two options:
1) Make the image part of a form and submit hidden inputs upon clicking the button.
2) Make the image a link with the inputs tacked onto the URL. Like:
Not sure why you’d want to avoid using AJAX, though.