Help on how to reload a page without refresh? and then more?

C++, C#, Java, PHP, ect...
Post Reply
Kennydin
Posts: 39
Joined: Sat Oct 31, 2009 12:47 am

Help on how to reload a page without refresh? and then more?

Post by Kennydin »

I've been looking around on how to reload a section of a page on click without a refresh. What Im looking to do is have a comment posting system that uses that kind of system. Any of you got facebook (ofcourse you do), when you update your status it doesn't refresh the page it reloads the status section and you see your new post.
Looking around I see ajax is the way to go about this. I just wondered if anyone could show me or give pointers on how to do it, if anyone knows?
Any help will be much appreciated.
Thanks
Kenny
PHP/Python (amongst other things) Person - Big Fan of MVC Architecture. Love CakePHP and CodeIgniter.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Help on how to reload a page without refresh? and then more?

Post by hallsofvallhalla »

ajax is definitely a good way. Look at iframes. I don't recommend using them per-say but things like iframes.
User avatar
Chris
Posts: 1581
Joined: Wed Sep 30, 2009 7:22 pm

Re: Help on how to reload a page without refresh? and then more?

Post by Chris »

I wrote a tutorial on here explaining how to make a username validation with ajax. The tutorial should help you understand how ajax is put together.
http://indie-resource.com/forums/viewto ... =26&t=1074
Fighting for peace is declaring war on war. If you want peace be peaceful.
Kennydin
Posts: 39
Joined: Sat Oct 31, 2009 12:47 am

Re: Help on how to reload a page without refresh? and then more?

Post by Kennydin »

Sweet! Nice one, that has come in much handy, Thanks! I'll be experimenting with that and trying to adapt it to commenting :D

Kenny
PHP/Python (amongst other things) Person - Big Fan of MVC Architecture. Love CakePHP and CodeIgniter.
Post Reply

Return to “Coding”