SitePoint Sponsor

User Tag List

Results 1 to 13 of 13
  1. #1
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to blink new opened window

    Hi guys i need one small help....

    I am opening one new window using open.window() function.

    Suppose if user minimize that window then how i can show blink on that window if any event occuir on that window....

    I do't want one more pop-up for user its not user friendly....

  2. #2
    SitePoint Evangelist sysice's Avatar
    Join Date
    Oct 2004
    Location
    Hackettstown, NJ
    Posts
    418
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Refresh the content? You can't make the window blink, and I think this is OS and Browser dependent.

    Do you have an example of this already on the web?

  3. #3
    SitePoint Wizard bronze trophy C. Ankerstjerne's Avatar
    Join Date
    Jan 2004
    Location
    The Kingdom of Denmark
    Posts
    2,702
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Don't make anything blink. Period.
    Christian Ankerstjerne
    <p<strong<abbr/HTML/ 4 teh win</>
    <>In Soviet Russia, website codes you!

  4. #4
    SitePoint Evangelist
    Join Date
    Apr 2006
    Location
    Halifax, Canada
    Posts
    498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think what you mean is that you want the window to come to the front of the screen. If thats the case, call self.focus() from the popped-up window.
    Paul Butler.org
    JSSpamBlock - Reduce WordPress spam.

  5. #5
    SitePoint Enthusiast
    Join Date
    Jun 2005
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think he is asking for the window to "blink" if minimised in the taskbar - to draw attention to it (i.e. an event has occured; have a look).

  6. #6
    SitePoint Wizard bronze trophy C. Ankerstjerne's Avatar
    Join Date
    Jan 2004
    Location
    The Kingdom of Denmark
    Posts
    2,702
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    self.focus() is the same as a new pop-up. Making the taskbar blink will stress people.
    Christian Ankerstjerne
    <p<strong<abbr/HTML/ 4 teh win</>
    <>In Soviet Russia, website codes you!

  7. #7
    SitePoint Enthusiast Tygatur's Avatar
    Join Date
    Apr 2006
    Location
    Germany
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    change the document.title property to something like "new information"
    If the window is in the taskbar, the title of the document will be displayed there.
    to code or not to code ?
    that's too much of a question for a signature.

  8. #8
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks guys....
    Sorry but I never seen any example in web but i think its possible. If Yahoo chat can do this then why not we can do the same in our popup.

    If it OS / Browser dependent then how to do that. I think using javascript we can do anything then why not this little task.

    And i can't use focus coz i do't want to disturb my user with popups.
    I need a feature same like yahoo Instant chat window. It blinks when new msg comes up. I know that is different thing but still

    So pls try to find the solution ..... I think this will usefull for many users.

    Onemore simple question :

    Whenever new popup comes up some popup blocker blocked it. How i can add our site in "Allowed popup list" for IE and firefox? I mean to say how user can add my site in there list so that my popup will never be blocked. Is there any readymade javascript to add my site in there allowed list for both Mozilla & IE.
    Please help me out.

  9. #9
    SitePoint Wizard bronze trophy C. Ankerstjerne's Avatar
    Join Date
    Jan 2004
    Location
    The Kingdom of Denmark
    Posts
    2,702
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Why do you insist on using pop-ups? Why not make normal pages, like everyone else. Do you really have pages which takes so long to process that the user can't wait?
    Christian Ankerstjerne
    <p<strong<abbr/HTML/ 4 teh win</>
    <>In Soviet Russia, website codes you!

  10. #10
    SitePoint Enthusiast
    Join Date
    Jun 2005
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by C. Ankerstjerne
    Why do you insist on using pop-ups? Why not make normal pages, like everyone else.
    May I remind you that some people still use pop-ups. Heck, even SitePoint use pop-ups!

  11. #11
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by prashcom
    I think using javascript we can do anything then why not this little task.

    Because Javascript can't do just anything. Its access is restricted to the web page itself and a few other very limited things most of which are read only.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  12. #12
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by adpd
    Heck, even SitePoint use pop-ups!

    I have never seen a single popup on Sitepoint. You must not have your browser configured to block popups properly if you are seeing popups on sitepoint.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  13. #13
    SitePoint Wizard bronze trophy C. Ankerstjerne's Avatar
    Join Date
    Jan 2004
    Location
    The Kingdom of Denmark
    Posts
    2,702
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    adbd
    As Stephen, I can't recall seing any pop-ups here either (and I don't use a pop-up blocker - I just don't visit sites with pop-ups, or rather, I don't come back).

    Besides that, even if other sites does use pop-ups, I don't see why someone else should. The mere fact that people are using a solution doesn't make it superior (think Windows, for example).
    Christian Ankerstjerne
    <p<strong<abbr/HTML/ 4 teh win</>
    <>In Soviet Russia, website codes you!


Bookmarks

Posting Permissions

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