Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   "partial page refresh" ? (https://www.warriorforum.com/programming/206475-partial-page-refresh.html)

Ashley Gable 27th April 2010 04:10 PM

"partial page refresh" ?
 
Hi

I have just installed a comment script on one of my sites. But the page I am using it on has a pretty big video on it, so I dont like the idea of each person who comments loading the page twice. Plus it takes a while to load.

Is there a way to just have the comment area do its thing after they submit it, while the rest of the page stays the same?

I dont know if such a thing is even possible. So I thought I would ask here.

Thanks

Ashley

theIMgeek 27th April 2010 05:09 PM

Re: "partial page refresh" ?
 
It is very possible with the wonderful world of AJAX. Using javascript you can update only a portion of a page. However, putting that into action does require some heavy technical lifting.

The easy way might be to look at using IntenseDebate comments enhance and encourage conversation on your blog or website

-Ryan

Manfred Ekblad 27th April 2010 10:11 PM

Re: "partial page refresh" ?
 
Quote:

Originally Posted by RJP (Post 2036671)
However, putting that into action does require some heavy technical lifting.

The easy way might be to look at using IntenseDebate comments enhance and encourage conversation on your blog or website

heavy technical lifting? :D

If you want to be the owner and in control of the content on your website then have a look at this free comment system script in PHP/AJAX.

Ashley Gable 27th April 2010 11:25 PM

Re: "partial page refresh" ?
 
Quote:

Originally Posted by Manfred Ekblad (Post 2037549)
heavy technical lifting? :D

If you want to be the owner and in control of the content on your website then have a look at this free comment system script in PHP/AJAX.

Thanks Manfred

I just installed it quickly on my site, it was very easy! The only reason I cannot use it is because it doesnt have an admin panel.

I dont like the idea of not being able to approve messages before they are posted.

But it had a nice looking effect, it was exactly what I was looking for minus the ability to put posts in moderation.

But I have already found another use for it, so thanks!

Quote:

Originally Posted by RJP (Post 2036671)
It is very possible with the wonderful world of AJAX. Using javascript you can update only a portion of a page. However, putting that into action does require some heavy technical lifting.

The easy way might be to look at using IntenseDebate comments enhance and encourage conversation on your blog or website

-Ryan

Thanks Ryan. I started searching around for ajax and partial page refreshing and found a couple, but you are right, they were way to complicated for me to understand!

I think I may just have to put this feature on hold, my head is starting to hurt now!

They were all too complicated, they dont take it step by step, which I need, they all seem to be posting examples for other programmers to look at, not me!


Thanks again for the help you guys, I appreciate it.

Ashley

Christopher Airey 27th April 2010 11:34 PM

Re: "partial page refresh" ?
 
While I normally wouldn't recommend this, an option would be to use iframes. Simply post whatever comment system you want in an iframe, and any reloads will only occur within that frame. Sample below to do google in an iframe on your page:

<iframe src="http://google.com" style="height: 300px; width: 500px;">
</iframe>

Chris


All times are GMT -6. The time now is 03:25 PM.