Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Sync Web Browsing

    Ok I need help going about how to do this and am hoping to get some example codes on how to go about this.

    My idea is to have a web page that is a "room" and in that room someone is leading the web browsing in a Iframe or something similar and then when the "leader" goes to a new web page in real time the other people in the room would be redirected. I understand that there would of course be delay but that wouldn't matter.

    so does anyone know any examples i can look at or anything like that?

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    The only way I can think of to do that is to use a server side script to track the changes and an ajax call of some sort from JavaScript attached to the page that polls for the change to force the update.

    It certainly can't be done with HTML & CSS and even JavaScript can only do part of the job since the only way for everyone to be connected together is via the server.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • Users who have thanked felgall for this post:

    inferno564 (02-05-2012)

  • #3
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Ya that would most likely be the best way to go about it. Thanks
    I was thinking of using a db to hold the the redirect URLs and use php to read the db and javascript to do the refreshing.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •