I am sure this is due to my core.js file with ajax hash url. But I try to submit the form, but it does not submit as I want. This is the core.js file:
// call init $(init); function init() { ajax_page_handler(); page_load($(window.location).attr("hash")); // goto first page if
Live viewing completed at www.krissales.com. The form is here: http://www.krissales.com/#/media/5.Testing-1
Click on the โLeave a commentโ link, then enter the text, then click on the comment, but it just updates but does not send it.
The actions that I took to solve it were in the comment file, in the form action field I inserted the name="#content" tag simply because this is the name of my div to which I am posting.
The original material is at http://blog.krissales.com/article/7.Testing-3-man (where you can post a comment and it will work)
But apparently, it does not work. Do you guys know what I'm doing wrong? Thanks for your help in advance!
<script type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "simple" }); </script> <form action="#/media/article.php" name="#content" method="POST"> Name: <br /> <input type="text" name="name" class="userpass"/> <br /><br /> Comment: <br /> <textarea id="elm1" name="comment" rows="7" cols="30" style="width: 500px;"> </textarea> <br /> <input type="submit" name="submit" value="Comment" class="button" /> <input type="reset" name="submit" value="Reset" class="button" /> </form>
source share