I have a submit form in the forum (PHPBB):
And special javascript using API:HTML Code:<form id="postform" method="post" action="./posting.php?mode=post&f=1" enctype="multipart/form-data"> <div id="message-box"> <textarea name="message" id="message" rows="15" cols="76" tabindex="4" class="inputbox"></textarea> </div> <input type="submit" accesskey="s" tabindex="6" name="post" value="Submit" class="button1 default-submit-action" /> </form>
Its necessary to copy a text from the submit form (textarea name="message" id="message") to the value of 'message' for the above javascript when you click on the Submit button.Code:VK.api('wall.post',{ message: "Here must be text from the submit form", attachment: "" },function(data) { }); }
Any ideas? JS-parser? Ajax? Thanx


Reply With Quote

Bookmarks