IPhone - Safari parent window focus problem

Hi All,
I am having a peculiar problem with a website i am developing. The problem *only* happens on the iPhone(safari).
My setup is as follows.
1) I have a CLIENT page - shows an initial page, and has a login button.
2) User clicks on the LOGIN button, and is shown a LOGIN popup/new-window  (this is created by posting a form using jquery 'submit' function with target='_blank')
====
CLIENT.html
var formData = '<form style="display: none; margin: 0; padding: 0; border-width: 0; overflow: hidden;" id="MyFormId" action="https://MYSERVER.COM/v2/widgets" method="POST" target="_blank"><input type="hidden" name="action" value="connect"/><input type="hidden" name="referringURL" value="http://MYCLIENT.com/ClientPage.html"/><input type="hidden" name="cartOwnerId" value="A2R6QUFKT17A1O"/></form>';
CBA.jQuery("#"+this.getLocation()).append(formData);
jQuery("#"+formIdName).submit();                                                                                                                                
====
3) User enters credentials on LOGIN window, and submits. A call is made to the SERVER to authenticate. On SUCCESSFUL authentication, we want to
   * CLOSE the LOGIN window
   * REDIRECT Client page to new URL
4) Everything works as planned, EXCEPT that the Client window (that created the LOGIN popup/new window), does not return to full-screen (after the LOGIN window closed).
If i try to put a window.opener.focus() in the LOGIN page javascript, i get focus on the CLIENT page, but the LOGIN page does not close(even if i put window.close before the window.opener.focus())
====
LOGIN html
jQuery(document).ready(function() {
        var messageToOpener = true;
        var fullMessage = PURCHASE_CONTRACT_ID_PREFIX + "${viewer.purchaseContractId}";
        CBA.Checkout.sendMsg( messageToOpener, fullMessage, '<c:out value="${viewer.merchantUrl}"/>');
        window.close();
        window.opener.focus()
====
Is there any tips on how i can close the LOGIN window, and redirect the client page to a new URL, and make the Client window full screen?
Any tips would be appreciated.
Thanks

I have made  a static script that I try and use to do something similar - it works everywhere else just not on the iphone..
<script>
(function(){
do something to make 'tok'..the following post message sends the original script 'tok' it just isnt working only on iphone
window.opener.postMessage(tok,"http://gamerdj.net.gridhosted.co.uk/");
alert('wois '+window.opener);
self.close();
</script>
I use the above after authenticating with google and getting a token back in this case tok and this needs passing back to the original app. I would prefer not to launch a new window and have this mess but becasue the google API wont accept a proper route url for angular I cant get that to work. This way was the closest that I got.

Similar Messages

  • Safari Beta 4 child window focus problem

    It seems that Safari/Windows Beta 4 does not properly focus a child window. In my case, I'm using Javascript to directly intercept keystrokes. If a new page is opened in the same window, the keyboard works just fine. If it's opened in a child window, the keyboard is ignored until the window is manually focused (mouse click). This behaviour is unique to Safari on Windows. On the Mac, it's fine. On all other browsers and operating systems, it's fine.
    You can see an example at http://sentientdata.com/focustest/kbug_demo.html .

    Sounds like it might be a question of the Developer forum? Or a some other forum on web design? This is a user-to-user tech support forum.
    Best of luck.

  • Iphone 5 and windows 8  problems

    I am having syncing problems with my iphone 5 and windows 8. 

    whats your exact setup as in how do you do it?
    what do you do?
    what result do you expect?
    what result do you receive ?
    how does what you receive differ from your expectation?

  • Significant Computer Window Focus Problem With Verizon Access Manager 7.7.1.0 (2707e)

    With the newly released Verizon Access Manager 7.7.1.0 (2707e) there is a significant computer focus problem with it.
    What I mean by this is that if I am using ANY application on my computer with the Verizon Access Manager minimized to the Windows System Tray, something will go on with the Verizon Access Manager and it steals the window focus - I am unable to work in the other application unless I click on the application to use it again.  
    An example of this would be my typing to post a message in this forum.  Something occurs in the Verizon Access Manager and my typing is rendered useless unless I click with my mouse on the browser window to be able to use it again.
    I'm highly suspecting whenever networks are coming and going in the Access Manager is when the problem occurs.
     This problem did not exist in the previous version of the Access Manager I was using.
    This is extremely annoying - please issue a fix for this ASAP!

    I have found by not minimzing the Verizon Access Manager 7.7.1.0 (2707e) the focus problem does not occur - it appears to be a problem when the app is minimzed to the system tray.

  • ACR to Photoshop CS5 window focus problem.

    Running Photoshop CS5 on Win7, both 64 bit. No problems for months, then recently this minor "annoyance" appeared.
    I "host" ACR via Bridge, with the windows for all three apps maximized. I double-click a raw file in Bridge and ACR opens. I make my ACR adjustments, or not, and click "Open Image" to pass to Photoshop.
    The images passes into Photoshop OK, but the Photoshop window does not receive "focus". Instead, the ACR window closes, leaving the underlying Bridge window displayed. But then no window has focus.
    When I click once on the Photoshop tab, I get a screen flicker, like a window is being minimized, but the Bridge window remains displayed. I click again on the Photoshop tab and it comes up, full screen with focus.
    If I take the ACR window out of "maximized" mode, the problem does not occur. Raw images pass from Bridge through ACR to Photoshop with proper window focus. Opening tif, psd, or jpeg images via Bridge is no problem. Only when raw images pass through a maximized ACR window does Photoshop fail to receive focus.
    A few days ago I used the Windows 7 "snap" feature to place the Photoshop window and ACR window side-by-side. This is done by dragging a window off-screen until it turns blue and then releasing. I believe this action caused the problem I'm having now. I've unsnapped, resnapped, and unsnapped the Photoshop and ACR windows several times, hoping to clear the problem, but it remains.
    Keeping the ACR window out of maximized mode is an easy work around, but the mystery remains and I hate mysteries.

    I know how you feel, I've had a few problems like this with CS5. I can only think of two suggestions:
    1. Disable Windows 7's fancy desktop (Aero peek, or whatever it's called) to see if that helps.
    2. Make sure you're sorting by filename in Bridge. I have noticed that sorting by metadata causes Bridge to sometimes steal focus when it's not wanted. I love Bridge, but christ it needs a good sorting out.

  • X11 Window Focus Problem Driving Me Crazy

    Hello,
    For no reason that I can figure, I'm having difficulty in OS X with the window focus. In the gimp, or inkscape or any other X11 program, when I click on a button, after about a second, the focus of the window is temporally lost. I've uploaded a video to show the problem more exactly:
    http://www.screencast.com/users/grey1618/folders/Jing/media/d826455a-9657-4409-b 085-a8a1b3c5ca19
    If you watch the close, minimize and plus button on the top of each window after I click each tool you'll see what I mean.
    Any help would be really, really appreciated.
    Thank you,
    -Grey

    Best you post to the Unix forum under OS X Technologies where the Unix, Terminal, and X11 mavens congregate.

  • Safari for windows dll problems

    I have been using Safari for Windows 7 and it has worked very well up until today.  When I tried to open Safari, I get an error message that reads 'The prcedure entry point sqlite_wal_checkpoint could not be located in the dynamic link library SQLite3.dll."  I have tried to repair several times, uninstall and re install, and nothing changes.  I even tried to go to an earlier version and nothing.  Can anyone help me with this issue?

    Uninstall and re install and nothing changes
    If you are referring to uninstalling and reinstall Safari, then try reinstalling Reinstalling Windows 7

  • Safari + Parental Controls Enabled = Problem

    Not sure whether to post this in Safari or Snow Leopard. Just wondering if anyone has run into the infamous (for me at least) Parental Controls bug that was present in 10.5 and now it seems it's found a way into 10.6.2. I tried to checkout today at the Apple Store online and also at Wal-Mart to get a black friday deal, neither of the processes would go past the "Check Out Now" button where you would enter your address information. I switched to my Guest user account and magically it worked. Remembering that i could not connect to the iTunes store in 10.5 with parental controls enabled i tried disabling the parental controls for my user and voila! It works. Has anyone else come across this? Nothing big just annoying to have to switch users.
    Additional info: I only use it so i won't delete dock icons no internet access is limited and nothing else is set except for cannot change password. I tried it with FireFox (don't use it regularly just downloaded it) and got the same result, would not go past to the checkout.
    Thanks!
    Richard

    K T wrote:
    This one?
    http://forums.macosxhints.com/showthread.php?t=84368
    It's a similar problem
    The problem in 10.5 was discussed here also:
    http://discussions.apple.com/thread.jspa?threadID=1512896
    It's not a big deal, just a bit frustrating, i do order online a lot.
    Since you went to the trouble to ask here, I'd think that not being able to use some of the sites you mentioned would be more important - do you need instructions on how to initiate/replace dock icons?
    Haha! No, i've been using Mac OS X long enough i know how it works.

  • Safari for Windows - Autofill Problems

    I recently downloaded Safari Beta for Windows. After deleting the history and cache, I was still unable to delete the AutoFill form for websites such as the Google Search (google.com). Is there anyway I can delete theses? The 'Edit' button for 'Other Forms' in Preferences doesn't work (only one for Address Book Card).
    ACER   Windows XP  

    Remember it is still beta.
    That's all i can say

  • KDE Window Focus Problem

    In KDE, when I'm focused on a window in foreground and I click on the contents of a window in the background the focus of the window changes, but the window that was in the foreground does not go behind the window that I just clicked on.
    http://img404.imageshack.us/img404/2745 … cusli7.png
    In that picture, I was focused on the Pidgin window and I clicked on this text box of Firefox and the Pidgin window in the foreground.
    The only way to place that window in the background is to click the title bar on top of Firefox, then it behaves normally.  By the way, I'm running KDE3.
    Any help would be appreciated, thanks.
    Last edited by darkNiGHTS (2008-03-26 02:19:46)

    It's been quite some time since I've used KDE, but isn't there some kind of "raise on focus" setting that would raise newly focused windows? I'm certain this setting exists for focus-follows-mouse but I don't remember if it applies to click-to-focus.
    j

  • Restoring / Find My iPhone / Forgotten Parental Controls' Passcode Problem

    Hi, I was wondering, how do I restore my iphone when I cannot disable Find My iPhone because the Parental Controls' passcode has been forgotten, which cannot be disabled because I would need to restore my iPhone, which obviously I cannot do?

    You can disable Find My iPhone by going to iCloud.com and signing in with the Apple ID and password, then clicking Find My iPhone and choosing to "remove this device".  Your Apple ID password is almost certainly different from your Restrictions Passcode.  If you also do not remember your Apple ID Password, then do not restore the iPhone, as that would leave you with an Activation Locked iPhone.  Your best bet would be to take steps to reset or recover the Apple ID password before proceeding.  AppleID.apple.com is where you can go to reset the Apple ID password if that is the case.

  • CSV file downloading replaces the parent window

    Hi,
    I'm trying to download a .csv file from my web application using Content-Disposition
    here is my code
    response.setContentType("application/octet-stream");
    filename = filename.concat(downloadType);
    response.setHeader("Content-Disposition","attachment; filename="+filename+";");
    //response.setHeader("Content-Disposition","application/octet-stream; filename="+filename+";");
    String source = (String)ivHttpRequest.getAttribute("downloadFile");
    if(downloadType.equals(".txt")) {
    source = Utils.decodeHtmlEntities(source);
    byte [] byteArray;
    if(source == null)
    // use ivRequest instead
    String source2 = (String)ivRequest.getAttribute("downloadFile");
    if(downloadType.equals(".txt")){
    source2 = Utils.decodeHtmlEntities(source2);
    byteArray = source2.getBytes();
    else
    byteArray = source.getBytes();
    ServletOutputStream out = response.getOutputStream();
    out.write(byteArray);
    out.close();
    I'm able to download the file in all the browsers, But while using IPAD the content of the file replaces the existing window (Parent Window) without asking for Save or Open option. So i'm unable to get the parent window again.
    Please let me know is there any special content type or anythinmg else i have to change.. So that i could be able to open the csv file in a new tab without replacing the parent window.The problem i faced only with IPAD

    Hi,
    For pdf file if we choose adhoc or by giving the proper name, we can able to get the options like OPEN or SAVE. This will work fine for pdf.
    But here im trying with csv file /html file, so the file is replacing the existing screen itself when i click the csv link. In my web application, i cannot get the parent window by using back button once i get the csv file instead page gets expired.
    So my best suggestion is should we able to open the csv file in new Tab of safari instead of replacing the parent window where im clicking to open the csv file.
    Suggestions pls.

  • Window focus bug

    A while ago (since two or three updates) I started having window focus problems.
    When I uese expose to switch to a window, the application does not focus, and the window stays covered by some other window (usually the application that pops back up is Mail, Safari, or Finder).
    This is an extremely annoying bug, does anybody now how to fix it?
    I don't know if this can help, but I've upgraded my system from 10.3, all the way to 10.4.5 using the several updates. I use an external mouse, but I get the bug using the trackpad as well.
    Also, I don't know if the two problems are related, but I get very odd bugs in ICal with the mouse (clicking on an event changes the scroll status on the events pane and I end up selecting a random task with that same click...)
    Thanks,
    JS
    Powerbook G4 12   Mac OS X (10.4.5)   System upgraded from 10.3
    Powerbook G4 12   Mac OS X (10.4.5)   System upgraded from 10.3

    Create a new account, name it "test" and see how Expose and iCal work in that User acct? (That will tell if your problem is systemwide or limited to your User acct.) This account is just for test, do nothing further with it.
    Open System Preferences >> Accounts >> "+" make it an admin account.
    Let us know and we'll troubleshoot this further.

  • CSV file replacing the parent window

    Joined: Dec 16, 2011
    Posts: 5
    posted    Friday, December 16, 2011 3:35:15 PM
    0
    Hi,
    I'm trying to download a .csv file from my web application using Content-Disposition
    here is my code
    response.setContentType("application/octet-stream");
    filename = filename.concat(downloadType);
    response.setHeader("Content-Disposition","attachment; filename="+filename+";");
    //response.setHeader("Content-Disposition","application/octet-stream; filename="+filename+";");
    String source = (String)ivHttpRequest.getAttribute("downloadFile");
    if(downloadType.equals(".txt")) {
    source = Utils.decodeHtmlEntities(source);
    byte [] byteArray;
    if(source == null)
    // use ivRequest instead
    String source2 = (String)ivRequest.getAttribute("downloadFile");
    if(downloadType.equals(".txt")){
    source2 = Utils.decodeHtmlEntities(source2);
    byteArray = source2.getBytes();
    else
    byteArray = source.getBytes();
    ServletOutputStream out = response.getOutputStream();
    out.write(byteArray);
    out.close();
    I'm able to download the file in all the browsers, But while using IPAD the content of the file replaces the existing window (Parent Window) without asking for Save or Open option.
    Please let me know is there any special content type or anythinmg else i have to change.. So that i could be able to open the csv file in a new tab without replacing the parent window.The problem i faced only with IPAD

    You are probably better off asking in the developer forums : https://devforums.apple.com/index.jspa

  • Problem with onBlur="window.focus()"

    Hi,
    inside the body tag of a popup widow i have used onBlur="window.focus()" and it is working fine i.e. when i tried to click on parent window the focus transfers back to popup window but i tried this by clicking like hundred times it fails i.e. the focus transfers to parent window.
    Does this function depends on number of click.
    manish

    Hi,
    No the problem is still there and it is not related to no of clicks because today for the just first time it failed.
    U have written
    "except maybe you can use onBlur and onFocus to set a variable to indicate the state and use setInterval to constantly check that every couple seconds as a backup to push it forward."
    i have not used this setInterval. ok let me tell u how i have used.
    In the parent page when it popups a window i have set a flag(global var.) to true and in the body tag (of parent itself) i used "onFocus="javascript:chkChildWin()""
    <script language="Javascript" >
    function chkChildWin()
    if(childFlag)
              cal_setFocus()// method to set the focus to popupwindow
    </script>and inside the popup window body tag i used
    onBlur="window.focus()"
    when user selects some thing from popup window or it closes the popup window then variable is reset to false. and as it is clear from the above mentioned code that parent window checks this flag on its focus method.
    sometimes it work fine and sometimes it does not.
    I don't know how to solve a problem which is not consistent, i mean this occurs randomly.
    plz help me out
    manish

Maybe you are looking for

  • How do I use a protected cartridge in my other HP printer

    I had an HP 6510 die on me so I picked up an HP 6520. They use the same ink cartridges, but when I ran out of the ink the new printer came with I discovered the old cartridges from my 6510 won't work because I must've had the protection setting on. I

  • CUSTOMER SERVICE/ FINANCIAL SERVICE COMPLAINT

    I have literally attempted to make a payment via phone 3 times this morning.   I have been blocked from making online payments because my secondary line person made 2 payment promises and they bounced.   I was asked by KINAYSHA WITH FINANCIAL SERVICE

  • How to turn off Vodafone

    In Hungary with iPhone5.  Apartment has wifi.  iPad connected no problem and uses wifi, I think.  In the upper right hand corner it just says iPad.  She ever I turn on the iPhone, service is automatically provided by Vodafone. I have verizon in the U

  • Watching .avi files with quicktime?  Help

    Hi all, I have a bunch of .avi movie files I want to watch, but when I try to open them with quicktime, I'm told I may need additional components to watch them. I'm taken to a screen with a bunch of vendors offering Quicktime components, but I have n

  • LightSwitch IIS Deployment Problem

    Hi there! I publish my LS Application (Client Type: Web, Web Service Only). I set the wizard to create a package on disk. I don't create an autentication file for it. I deploy the LS Application to IIS 8.5..... (Windows 8.1) When I try to open the ap