SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Dec 2004
    Location
    Norway
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IFRAME "steals" focus

    We make use of Outlook Webaccess 2003 in an IFRAME on our intranet. The problem is that owa takes focus after the "main" page has loaded. The browser window then scrolls down to the owa iframe.

    I believe owa has some code that makes it able to gain focus. Any ideas on how to deal with this kind of problem?

    Best regards
    Rune Snekkestad

  2. #2
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure about owa, but if it is taking the focus and forcing the page to scroll I don't think there is much you can do about it. You could put a timeout on the main page to regain focus, but then your page will jump about.

    You could have the page load without owa and have a link that brings it in when the user is ready. If it takes focus then, then it would be a good feature, automatically scrolling to it on request.

    I think that would be the best solution. There could be more javascript ways, resizing the iframe, putting it in a scrolling division, but if you are putting it into an iframe then I suggest doing it on request.
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if

  3. #3
    SitePoint Evangelist vikrantkorde's Avatar
    Join Date
    Jun 2004
    Location
    Mumbai, India
    Posts
    541
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you are talking about IFRAME then one thing u can do is that you can create an object of IFRAME and incoke the focus method.

    var iFrame = document.getElementById("owa");
    iFrame.focus();
    Vikrant Korde
    S Y S T I M E, Mhape,
    Mumbai, Maharashtra, India.

  4. #4
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe owa has some code that makes it able to gain focus. Any ideas on how to deal with this kind of problem?
    Do a search on the iframe page for "focus()" and delete it?

  5. #5
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I think its a program 7stud. I had a similar thought before writing my post but as I didn't know what Outlook Webaccess 2003 was I did a search in G. It appears to be a program like ftp ( from what I could gather with a quick glance ). So I don't think he will be able to do it that way. I doubt if it is accessible with javascript.
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if


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
  •