Jump to content

Refreshing the page on the forum


Recommended Posts

Posted

When someone sends me an IM,I sometimes miss it, until I refresh the page by opening another thread, is there no way for this to be done automatically, or maybe an alert message, like you have just received a message ? :O

Posted

If you got Opera you could have a separate page on 'Who's Online' and set it to refresh every 5 seconds. Then you can see your Messages arrive and keep a close eye on who is online.

Posted

With Internet Explorer, go to Tools, Internet Options, with Temp Internet files click on Settings and select Every visit to the page.

How does that "pop" something up to show that you have recieved a IM? Does it refresh the page on its' own?

Posted

Nope, simplified:


  • [+]Someone sends an IM.
    [+]The IM is stored on the server, the server notices the new IM and checks if you're online or not. (logged in or not)
    [+]If you're logged in it'll load a new page with the message: you have a new IM(popup)
    [+]If you're not logged in... better luck next time. :P

Posted

This could be done through javascript.

It could slow the server down quite a bit, however.

This is not a big problem. Just remember to refresh your browser before exiting Dune2k, and the problem is solved.

Posted

should be possible with a script that run's every time an IM is send. Monitoring the webserver for database changes and every time an IM is entered. The IM is stored on the server, the server notices the new IM and checks if you're online or not.

If you are online a local command at the webserver is executed.

net send %userIP% you have one new IM !

Note that it will need a lot more then just website scripting. You even need execute privileges on the server and such and the users computer needs to accept net messages.

So for the last it probaly won't work for most users here .. although just a way to fix it.

Posted

Well, as forums like these only store data in a mysql database, the script had to search for new IM's, say every fifth second, and then tell you that you have got a new IM.

That would be the easiest way, but it would really put a strain on the server to do database searches in that rate.

This way would be 100% secure though, but I would never have used it myself.

But again, I see no use in these scripts at all as the user just have to make a habit to refresh the page just before he exits.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.