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 7 of 7
  1. #1
    New Coder
    Join Date
    Aug 2007
    Location
    Wagga, Australia
    Posts
    59
    Thanks
    0
    Thanked 1 Time in 1 Post

    Question How to get a users attention back to your page

    Hi everyone,
    I've started development of a php project. It is a php IM system will be integrable with many different types of online communities and even has enough power to be a standalone app.

    at this stage the only problem i face is alerting the user when someone has sent a message to them. I was looking to make the tabs and taskbar item flash to grab the users attention.
    Thanks in advance!

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    You might be able to use JS or flash to play a sound. That would be the best way imo.

  • #3
    New Coder
    Join Date
    Aug 2007
    Location
    Wagga, Australia
    Posts
    59
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Inigoesdr View Post
    You might be able to use JS or flash to play a sound. That would be the best way imo.
    Thanks for your reply Inigoesdr, but it already has sound that plays when a new message is received :P

  • #4
    Regular Coder
    Join Date
    Oct 2005
    Location
    Surrey, England
    Posts
    286
    Thanks
    2
    Thanked 2 Times in 2 Posts
    well php cant make an object flash, try javascript. If you can already make an object play a sound then why not use that to trigger a function to make toe object flash?
    Daniel Warner
    - - - - - - - - - -
    GuitarMart.co.uk - Free Online Classified Advertisement for Guitarists in the United Kingdom. Free Ads with a Free Photo.

  • #5
    Regular Coder
    Join Date
    Jul 2007
    Location
    USA
    Posts
    146
    Thanks
    5
    Thanked 3 Times in 2 Posts
    Is this going to be like an instant messaging thing where it's going to be used for lengthy conversations, or just similar to email and pm system? If it's similar to aim, and msn then I suggest having the screen flash orange like in aim. If it's for something that's not going to be instant conversation a pop up window to alert you that there's a message waiting, or an email (both works too) would also work.
    Quote Originally Posted by rmedek View Post
    Doctordew, as soon as they come out with the opposite of an infraction, I am going to give you a million of them. You are my new favorite person on the forum.

  • #6
    New Coder
    Join Date
    Aug 2007
    Location
    Wagga, Australia
    Posts
    59
    Thanks
    0
    Thanked 1 Time in 1 Post
    thanks for the replies, and yes it is like msn nd aim, i'll go ask in the javascript forum

  • #7
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Quote Originally Posted by usik View Post
    Thanks for your reply Inigoesdr, but it already has sound that plays when a new message is received :P
    Oh, I thought that's what you were asking for. But yeah, if you want a popup or something client-side you're going to need to use JS, probably checking every X number of seconds for new messages.


  •  

    Posting Permissions

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