Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client Call Backs

 
Stanley Tan
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm using the struts framework to implement a registration system for a University. Is there any way to force a browser refresh when, for example, the number of slots remaining in a class changes?
Any help would be greatly appreciated. Thanks.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. HTTP can't "push", only respond to "pull" requests. About as close as you can get would be to setup a page that has a periodic refresh.
Somebody trying to use a page to sign up for courses would find that rather intrusive, however; their data input would be disrupted. If you're thinking about a public display (something like airport flight monitors), then a periodic refresh should be OK.
 
Stanley Tan
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thanks.
 
Jim Wang
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There has a javascript function let your load page from url ( location.replace(url) ). I think if you put a timer before it, you may get refresh function. But it's not good to force your client to do something.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic