PHP Builder Forum IndexPHP Builder
free solutions for web developers
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in            Calendar

NEWS:
[Snippet] MyComet -> Reverse Ajax Example

 
Post new topic   Reply to topic    PHP Builder Forum Index -> Snippets, Tutorials & Other Stuff
View previous topic :: View next topic  
Author Message
zewa666
Site Moderator
Site Moderator


Joined: 01 Feb 2007
Posts: 606
:


Items

PostPosted: Wed Oct 22, 2008 8:24 pm    Post subject: [Snippet] MyComet -> Reverse Ajax Example Reply with quote

Hello boys and girls out there.

After a long time, here comes a new snippet.
http://zewa.ze.funpic.de/datagrid/mycomet.rar

Download from above link and read on to understand what it is.


Reverse Ajax is a way to let the Server tell the Clients that something new happend. Either on scripting side or lets say in a Database ... whats more interesting for us.

Now this little example i packed in the rar, is called Ghost Refresher. It is bound to a mysql database, and does following:

There is a table TEST, which holds just some users, and when they entered something into this table.
Now the Ghost Refresher, looks regularly, all 3-4 seconds into the table with a prepared statement and asks if someone newer then himself (in this case User "ZEWA") has entered anything newer from date.

If so, the running page will immediatly show you, you should update your page.

OK this example for it self isnt very important, but imagine usage in Datagrid.
Many people work on the same grid, and if anybody does something new, automaticly all the other users, are noticed that some refresh should be done, without having them to do anything. Like from Ghost Hand ^^

Prerequisites for this example are:

*PHP 5 (one with PDO)
*Mysql Database (of course)


So try it out and tell me if you have problems. You can also ask me via ICQ.

Greetings
Zewa
Back to top
View user's profile Send private message Send e-mail Visit poster's website
aahelee
Newbie
Newbie


Joined: 29 Jun 2011
Posts: 1
:


Items

PostPosted: Tue Jul 12, 2011 7:50 am    Post subject: Reply with quote

What should I choose best to work with in Ajax and why, JQuery or GWT? I'm coding in JSP and a little bit confused from choosing jQuery or GWT in creating Ajax apps. Provide me the best information to help make my mind for the right choice.
____________________
keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PHP Builder Forum Index -> Snippets, Tutorials & Other Stuff All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
PHP Builder topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group
FREE FORUM HOSTING by AtFreeForum. Terms of Service - Privacy Policy
FASHION ACCESSORIES - BLING BLING - LADIES WATCHES - KOREAN CHILDREN CLOTHING - ONLINE BARGAIN STORE - FASHION JEWELLERIES