Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-27-2011, 03:24 PM   PM User | #1
eddyzhuo
New to the CF scene

 
Join Date: Oct 2011
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
eddyzhuo is an unknown quantity at this point
Question How to refresh a webpage using a event from another page?

Hello. Today is little bit cold. I thought this will be a simple question, but it seen like hard to find a fast and simple solution. I am working on an online sign in tool. Two browser windows are open at the same time. One is for people to sign in with password and submit their information; another one is for Administrator to see who sign in. I am trying to refresh the Administrator page whenever user finished sign in and submitted their information. These two pages cannot be parent and child page, and will be open in multiple computers. I am new to Ajax, but many people suggest this is the best way. What will be the easiest way to solve this in Ajax? Thank you so much for your time. Have a wonderful week.
eddyzhuo is offline   Reply With Quote
Old 10-27-2011, 05:40 PM   PM User | #2
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
the easiest thing to do would be to refresh the admin pages every X amount of seconds, or save a page variable to indicate how many total are logged in, and run a timed ajax function to check if the total number of logged in users has changed in comparison to the stored variable on the page and if so, refresh the information on the admin page.

I wont say it's impossible to do it the way your asking, but if possible it would be much more complicated.
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is online now   Reply With Quote
Users who have thanked DanInMa for this post:
eddyzhuo (10-27-2011)
Reply

Bookmarks

Tags
ajax, cross browser, refresh, reload

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:32 PM.


Advertisement
Log in to turn off these ads.