Jump to content

PHP/AJAX Button Update?


LAEinc. Creations

Recommended Posts

does anyone know ajax?

 

I am trying to script a page, where lets say two different people have the page open, at the same time, and one of them clicks on a button. I want that button, and that button only, on a page filled with buttons, to update on both screens, even if the other viewer is not clicking on anything.

 

Another simpler example, is it possible to make an ajax script capable of updating a buttons status (pressed, or released looking) using CSS, and ajax?

I want to be able to have a page, where if one person on the net presses a button marked, for example, "ON", then that same button will be pressed/lit up on everyones page that is currently viewing that site.

 

I dont know how else to explain it.

 

I dont want it to be a massive server hog either, but id like it to be as real time as possible.

any luck guys?

 

Thanks in advanced, I have 0 knowledge with ajax, or javascript

Link to comment
Share on other sites

YOU SURE CAN.. just not with AJAX.. you can in flash/as3 with externalinterface, and sockets..

 

http://lovinglori.com/newServer.phps is a php script you can run on your home computer to turn your computer into a server that listens for connections and handle data and distribute it across every connected user..

 

for example.. you'd want to have 1 server.. and ALL your clients connect to that server.. then when a user clicks a button.. you send some information to the server.. and you code your server to relay all that information to all connected clients.. and then you use externalinterface from flash to use javascript in order to modify the page the way the server demands you to. it sounds complex but its not :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.