www.webdeveloper.com
Results 1 to 4 of 4

Thread: using javascript function window.focus() to bring the window to the front

  1. #1
    Join Date
    Feb 2014
    Posts
    4

    using javascript function window.focus() to bring the window to the front

    Hi,

    In our web application we have a requirement to kick off a job & display progress in a modeless status page so user can continue to work while the status page will display progress / updates. We’ve implemented this by doing a window.open to launch the status page.

    On job completion (or failure) we need the status to come to the front to alert the user about job completion and so he can look at the details. Is there a javascript function that does this. We tried using window.focus(), this highlights the window on the task bar but does not come up to the front if another window is active.

    Thanks,
    Reshma

  2. #2
    Join Date
    Feb 2014
    Location
    Managua, Nicaragua
    Posts
    45
    I would like to recomend u use a popup modal window instead 'window.open'... Because that way you can manipulate the window

  3. #3
    Join Date
    Feb 2014
    Posts
    4
    Thanks JCPerez, but this will be a long running job & I don't want to block the user from going back to the opener page and continue to do what he is doing until the job completes. That's the reason for launching the status on a separate page as opposed to launching it modal. Any other ideas on how to do this ?

  4. #4
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,507
    Why do people always have to go for the difficult option?

    In my opinion, you only need to incorporate a status window withing the existing page that pops up from time to time as needed.
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles