TypeError: 'click' called on an object that does not implement interface HTMLElement
javascript, jquery, php
Solution
remove the " from the name of the properties
$.post (
postdataURL, {
formid:5,
clientid:1,
userid:1,
level:mycat,
extra:mytimer,
pid:pid
},
function () {});
And add a
alert("Got called");
after
function postData() {
to be sure the function is being called
Problem
I have some javascript that sends data to a function that calls a php page, however I get an error that I can't find any information on. The postData() call is in the middle of another plain javascript function. But I can't get it to submit the data to the php page. ``` function postData() { var postdataURL = "path/to/php/page.php"; $.post ( postdataURL, { "formid":5, "clientid":1, "userid":1, "level":mycat, "extra":mytimer, "pid":pid }, function () {}); } ```