TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-10-2008, 09:43 AM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default Live feedback

How would I show live feedback from something? Like say i was to want live feedback on when a new user posts, it just shows a new element with the new post, not having to refresh, etc, and xmlHttp object doesnt work like that. :/ so help
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 05-10-2008, 04:51 PM   #2 (permalink)
The Wanderer
 
Join Date: Jan 2008
Posts: 24
Thanks: 13
sidisinsane is on a distinguished road
Default

You might want to look into Comet. Here's a pretty good tutorial on How to implement COMET with PHP, including downloadable examples.
Basicly it enables you to send data without the client requesting it. Could that help you with your live feedback?
sidisinsane is offline  
Reply With Quote
The Following 3 Users Say Thank You to sidisinsane For This Useful Post:
ETbyrne (05-11-2008), Geert (05-13-2008), Orc (05-10-2008)
Old 05-10-2008, 08:11 PM   #3 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by sidisinsane View Post
You might want to look into Comet. Here's a pretty good tutorial on How to implement COMET with PHP, including downloadable examples.
Basicly it enables you to send data without the client requesting it. Could that help you with your live feedback?
Looks great! thanks
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 05-11-2008, 01:44 PM   #4 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

Great find thanks!
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 05-11-2008, 03:12 PM   #5 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Damn, this helped me understand more about the XHR object! woot
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 05-12-2008, 04:46 PM   #6 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Wow, it looks like this can be used with the php json functions, json_encode and decode, well.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 05-13-2008, 03:49 AM   #7 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

hey, how do you stop it from constantly looping?
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:48 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design