Page 1 of 1
MyDoPost not being called
Posted: Mon Dec 27, 2010 7:53 am
by BMillikan
I have a form on a web page with some other simple HTML elements and a dynamically updated page from the Netburner board. When I press the submit button on my page, the page updates but the function is not getting called. I have verified that the SetNewPostHandler() is getting called. Has anyone else run into a problem like this?
Brian
Re: MyDoPost not being called
Posted: Mon Dec 27, 2010 9:46 am
by greengene
probably easiest if you post your html page rather than us guessing what is in it.
first guess: on form, is "method=post"?
Re: MyDoPost not being called
Posted: Mon Dec 27, 2010 1:09 pm
by rnixon
I don't think the post handler has anything to do with a function getting called if you use the FUNCTIONCALL tag. If you are trying to call a function from a post handler, you normally need to parse the post data and call your function if appropriate. Not really enough info in your question to narrow it down.
Re: MyDoPost not being called
Posted: Mon Dec 27, 2010 4:36 pm
by greengene
well, depends which "the function" is being talked about.
Re: MyDoPost not being called
Posted: Tue Dec 28, 2010 6:53 am
by BMillikan
Yes, the method="post" was the solution. I forgot to add that to the HTML tags. It was apparently defaulting to the GET method.