View Full Version : Some form help :)
Excellent2
23-12-2008, 02:54 AM
Hey! So I have a basic comment form for my blog system and I'm wondering how I could get it to auto update? What I mean by this is when they submit the post it automatically adds it to the database and displays it on the page without having to refresh the page. This is obviously JS so could anybody help? :)
Jackboy
23-12-2008, 09:38 AM
if u do jQuery it's something like $('#idofthing').submit
That was a guess, because I'm not amazing at js. But just make it load a page into the display comments div.
Source
23-12-2008, 02:53 PM
I can give you a hand, hit me up on msn.
Protege
23-12-2008, 04:14 PM
on the button use the attribute "onClick" with a JS function - dont need to use jQuery but it is a plus.
Jackboy
23-12-2008, 04:32 PM
on the button use the attribute "onClick" with a JS function - dont need to use jQuery but it is a plus.
True i spose. But jQuery is good because it has the functions ready to use :P
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.