onthespot Posted July 17, 2009 Share Posted July 17, 2009 After submitting a comment via a form, I then have to refresh the page for the comment to appear. the form action="". Is there anyway for the page to refresh once the comment is added so the comment appears immediately? Quote Link to comment Share on other sites More sharing options...
phporcaffeine Posted July 17, 2009 Share Posted July 17, 2009 Sure, but we would need to see how your script is working currently (i.e code). Sounds like the script is rendering the rest of the page prior to echoing the comment ... er something like that, alas ... that's as good as you get until I get some code. Quote Link to comment Share on other sites More sharing options...
Amtran Posted July 17, 2009 Share Posted July 17, 2009 Yep, what phpORcaffine said. Though if you wanna be fancy you could just use AJAX. Quote Link to comment Share on other sites More sharing options...
onthespot Posted July 17, 2009 Author Share Posted July 17, 2009 Sorted just moved the script to the top of the page. Simple really, thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.