JOptionPane goes behind browser window (Help PLEASE!)

I apologize if this is not the best place to post this question.
I have an applet that open a JOptionPane using the following:
int rc = JOptionPane.showConfirmDialog(null,
"Do you want to save the changes you made to " + appInfo.getName() + "?", ProductInfo.ProductName,
JOptionPane.YES_NO_CANCEL_OPTION,
JOptionPane.WARNING_MESSAGE);
THE PROBLEM I'm seeing is that this JOptionPane pops up for a second and then goes behind the applet browser window.
I have 2 html files (index.html and product.html). index.html opens product.html in a new browser window (minus the toolbar and menu) using a small javascript (see below for code).
I only see this problem when I open product.html via index.html. When I open product.html by itself this problem does not occur.
Please help if you can - thanks ahead of time!!
INDEX.HTML
===============================
<html>
<head><title>ProductName&trade;, Version 2.0</title></head>
<body>
<script>
<!--
/*Full screen window opener script: Written by JavaScript Kit (www.javascriptkit.com) More free scripts here*/
function winopen(){
var targeturl="./product.html"
newwin=window.open("","","scrollbars")
if (document.all){
newwin.moveTo(0,0)
newwin.resizeTo(screen.width,screen.height)
newwin.location=targeturl
//-->
</script>
<script>winopen()</script>
</body>
</html>

Solved my own problem!!
I modified index.html (see below) and it now works - the JOptionPane stays on top. Still don't know why though.
INDEX.HTML
=============================
<html>
<head><title>SwitchView&trade;, Version 2.0</title>
<SCRIPT>
function fullWindow(url) {
var str = "left=0,screenX=0,top=0,screenY=0,resizable";
if (window.screen) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
str += ",height=" + ah;
str += ",innerHeight=" + ah;
str += ",width=" + aw;
str += ",innerWidth=" + aw;
win=window.open(url, "w", str);
</SCRIPT>
</head>
<body>
<script>fullWindow('./product.html')</script>
</body>
</html>

Similar Messages

  • Im trying to buy a film from i tunes, and i put in all my card details corectly, but im just going round in circles help please?

    im trying to buy a film from i tunes, and i put in all my card details corectly, but im just going round in circles help please?

    Perhaps if you were to explain what is happening, then someone could help.

  • Open New Browser Window in CS4 opens behind existing window - HELP!

    I am creating a website in CS4, and everything works fine EXCEPT ona few pages, for every link I have set up to open in a new browser window, the new window opens BEHIND the existing window, so that you cannot see it. I tried one solution that said to type "javascript:;" in the href (link) box, but that did not correct the problem. Any ideas?
    Thanks.

    Sounds like you have Tabbed browsing enabled.
    IE
    http://www.ie-vista.com/tabs.html
    Firefox
    http://www.mozilla.com/en-US/firefox/features/#tabs
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.com/blogspot.com

  • Plug-in Window goes behind main window(CS5)

    hi all,
         I've been working on a plug in development for After Effects(CS5)..But i'm facing a problem now. The plug in window goes behind the After effects main window..So i would like to know the reason and solution for the problem..so could anybody help me out on this?
    Cg soft

    hi cg soft.
    welcome to our little, quiet sea-side developers community. (where people are nice and the pharmacies are open late)
    i can't understand whether the problem you're describing is in regards to a custom made window (pop up), a palette plug-in, or the ECW.
    this is a long thread that deals with a lot of different issues, but also goes into details on creating os level windows:
    http://forums.adobe.com/message/3337511#3337511
    at the end if it you'll find this very useful video, courtesy of gutsblow:
    http://vimeo.com/17206258
    he shows how to create windows using cocoa.
    if you're not dealing with an os level window then... what exactly is the problem?

  • New Window Opening Behind Browser Window

    I have produced a page in DW3 for an artist where you click
    on a thumbnail and it opens a new window with an enlargement of
    that image. (I use the DW3 javascript behaviour to do this).
    When I test it on my browsers the windows open in front of
    the main browser window and all is hunky dory.
    When my client does the same, she claims that some of the
    windows open in front of the main browser window but some open
    behind the browser window and are obscured. She says she perceives
    a "flash" if the new window opens behind the browser window. She is
    using Firefox 2.0.9.17
    Has anyone experienced this behaviour and figured out a
    fix?

    .oO(spiro_t)
    >I have produced a page in DW3 for an artist where you
    click on a thumbnail and
    >it opens a new window with an enlargement of that image.
    (I use the DW3
    >javascript behaviour to do this).
    >
    > When I test it on my browsers the windows open in front
    of the main browser
    >window and all is hunky dory.
    >
    > When my client does the same, she claims that some of
    the windows open in
    >front of the main browser window but some open behind the
    browser window and
    >are obscured. She says she perceives a "flash" if the new
    window opens behind
    >the browser window. She is using Firefox 2.0.9.17
    >
    > Has anyone experienced this behaviour and figured out a
    fix?
    Usually the user/browser decides where new windows/tabs will
    be opened.
    But why open a new window at all? Why not use something like
    Litebox?
    Micha

  • Video for browser window help needed

    Hi,
    I have an idea for a website where it starts with a short
    video that plays at what ever size the users window is at, then the
    clip stops to a stand still and the user interface then pops up or
    it may appear along with the video. . . but I'm a bit worried as
    I'm kinda new to flash and I have no idea how I can get a video to
    play to the full size of a browser window (not full screen) , I
    think I can do the interface popup bit at the end though. Here is
    an example of the sort thing I'm taking about
    http://www.uniqlo.jp/uniqlock/
    though their video goes on and on =] but it's roughly the same idea
    with an interface built on top of it. Vision skate website has the
    same thing too
    http://www.visionstreetwear.com/
    If any one has any ideas on how this can be done or maybe a
    tutorial link that would great thanks.

    The way that a flash file will display and stretch, or not,
    is defined in the HTML options tab of the Publish Settings window.
    You need to use both the Dimensions option and the Scale
    option.

  • WHAT IS GOING ON WITH VERIZON THAT THEY CAN'T DO WHAT THEY SAY THEY ARE GOING TO DO? HELP PLEASE!!!!

    Over the last month and a half I have called and spoke to 3 or 4 different Verizon customer service agents about a problem with my account & every time I am told that the problem will be fixed only to have nothing happen. What is going on here?
    Around the beginning of March I made the mistake of edging up & my account has been screwed up ever since.  I was using the iphone 5 & had only $130 left before the iphone 5 was completely paid for (I had been making payments on it every month through the edge program) and my contract was up in April. I stupidly decided to edge up & Verizon sent me the iphone 6+ & told me I was to send them my iphone 5. I decided that I would rather keep the iphone 5 so I could pay the remaining $130 left on the edge agreement & I would own the iphone 5 outright. I returned the iphone 6+ (yes it was within the 14 day window that Verizon gives you to return a new device) to a Verizon store and paid the $35 restock fee. I never activated the iphone 6+.
    Somehow or other Verizon started me on a whole new edge agreement as if I had kept the iphone 6+. Verizon says that I have $600 some dollars left to pay on my edge agreement. I've already made almost $600 total edge payments over the last year and I had $130 left to pay. Why is Verizon trying to charge me again for a phone I've already paid for??? My last monthly payment due was $185, it's usually around $110  & the extra charges were because of the "new edge device" agreement I was put on.
    I understand mistakes happen but this is ridiculous. I've called and spoke to at least 3 different Verizon customer service agents and they've all told me they would correct my account and I would see the correction on my verizon in a week or 10 days or something like that so I wait and nothing happens. I was told the extra $75 I paid last month would be credited & put towards my account, I was told by one of Verizons people I spoke with that I would be getting some form I needed to sign in the mail but it never came. I am so tired of wasting so much time on a mistake Verizon made but seems unwilling to fix. Why is it so difficult to remedy my account?

    We want to see this resolved once and for all, cem421! I have sent you a Direct Message so that we can work to end this frustration for you. I will look forward to working with you further!
    YaleK_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the �Correct Answer� button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Cannot connect to itunes/windows help please!!!

    Hi,
    I have a 8gb ipod touch i brought it in australia and now im back in england, i cannot seem to connect to itunes, when i plug the cable in it makes the noise to say its connected and then the ipod camera window pops up but still doesnt connect to itunes, ive reset everything and deleted all the media files now i have to re-install it but i still cant seem to connect to itunes to re-install. please help having a mini drama with this ipod!!

    maybe log into itunes click the your account button on the right then change country?? no idea if that would have a difference but worth a try

  • Quicktime player opens behind browser window

    I have have a webpage that has several quicktime movies, each one is linked to another quicktime movie that opens a rtsp stream which is located in a password protected directory (using htaccess).
    When a movie is clicked a password dialog box opens, after the username and password are entered the player begins the stream. On mac's, the player opens in front of the browser... on pc's(windows xp), the player opens behind the browser. Does anyone know how to make the player open in front of all windows on a pc?
    Here is the html code:
    <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="200" width="128"> <param name="controller" value="false" /> <param name="src" value="####.mov" /> <param name="href" value="#####.mov" /><param name="target" value="QuickTimePlayer" />
    <embed src="####.mov" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/" controller="false" href="#####.mov" target="QuickTimePlayer" height="200" width="128">
    </object>

    Okay, good news. Mac OS X hints has the solution for the problem. Just go to: http://www.macosxhints.com/article.php?story=20060130071542683
    and that's all you need to do.
    Jyri

  • Not booting straight to windows help please

    im trying to get a real fast boot time on my pc but i keep geting these 3 screens befor it gose to windows i have the msi 760gma-p34 (fx) mother board i set the ssd raid 0 as boot and it still says cant find any device and then loads the drives then gose to windows idk y please help
    heres a video of what its doing
    here is my computer specs
    Board: 760GMA-P34 (FX)
    Bios: Version 25.0
    VGA: Galaxy GT 430
    PSU: Cooler Master Extreme Power Plus ATX12V v2.3
    cpu: AMD FX-4300 Vishera Quad-Core 3.8GHz (4.0GHz) Socket AM3+ 95W Desktop Processor FD4300WMHKBOX
    MEM:G.SKILL 8GB (2 x 4GB) DDR3 1600 (PC3 12800)
    HDD: Kingston SSDNow V300 Series SV300S37A/120G 2.5" 120GB SATA III Internal Solid State Drive (SSD)
    COOLER: Stock

     How many more times and places in this forum do you plan on posting this same topic? Once is enough and more than once is against the rules. 3 times now is way too many.
     >> Forum Rules <<

  • All my LOOPS disappeared from L8 Loop browser.  HELP Please !

    hi, my loops do not show up in my loops browser in logic 8 all of a sudden. yesterday the did, and now, there is nothing there. all the choices like "dark" or "experimental" or "guitars" etc. no longer highlight. the only button that highlites is "All". and when i click it the "Reset" button highlites. then i click that an nothing again. not finding them. but when i search for them they are on my harddisk... not deleted. does anyone know how to get the loop browser to rescan the drive? ive quit logic and restarted, resterted the computer. looked thru all my choices n tried to read logic manual. cant find anything to get my loops to show back up in the browser. can anyone help?

    what is the path to your loop directory?

  • Browser Compatability Help please?

    Hi.  Im somewhat new to Dreamwevaer, I actually still use GoLive, but slowly trying to move over to DW.
    Im doing Browser Compatability tests for a website, and not sure how to fix these errors DW is giving me.
    Id appreciate any help or thoughts?
    thank you in advance!
    -Unsupported value: 'inline-block'  Affects: Netscape 8.0
    -Unsupported value: 'inline-block'  Affects: Internet Explorer 6.0, 7.0; Internet Explorer for Macintosh 5.2; Opera 8.0, 9.0; Safari 2.0, 3.0
    -Error parsing styles Affects: Firefox 3.0
    -Unsupported property: zoom  Affects: Firefox 3.0; Internet Explorer for Macintosh 5.2; Netscape 8.0; Opera 8.0, 9.0; Safari 2.0, 3.0
    -Unsupported property: content  Affects: Internet Explorer 6.0, 7.0, 8.0; Internet Explorer for Macintosh 5.2

    You do have some HTML errors. If you run it through this validator, it will show you where they are and you can repair them...
    http://validator.w3.org/
    There is an error in the css of your <head> section, you have a line of css outside your <style> tags...
    #example-one li,#example-one li a { display: inline-block; float: none; *display:inline;/* ie6 and 7 inlin e-box hack */ zoom: 1.0; }
    If you don't need it, delete it, if you do, just move it into one of the <style> tag sets. (you may want to clean the css up and move it to an external sheet so everything is in the same place)
    The rest of it looks fine according to the CSS validator here: http://jigsaw.w3.org/css-validator/ the errors it throws, aside from the out of place css line are to be expected and don't affect anything negatively (they're just browser specific code).
    I wouldn't be surprised if that line is causing the error you're seeing.

  • I phone4 is dead, not carging, not turning on, doing absolutely nothing!  have tried all the buttons etc and linked it up to my computer, no nothing...its just dead!? whats going on, could anyone help please?? its only 3 months old, poor thing.. Mel

    could anyone help, just baffled, my i phone is literllly dead for no reason. i thought the battery had ran out, thou it had plenty left... i have tried to charge it and no life. also have plugged it in with my computer, again no life or aknowledgement... why? how can i fix it? Can i or is it the end of the road for my 3 month old Iphone 4???

    My 3GS did the exact same thing today at about the same time. Thanks for the advice, because Apple was about to charge me $30 to tell me that!

  • "Cursor Window" Help Please

    Hello all... I need some help with creating roll-over effect
    in flash... if you click this link...
    http://www.triworks.net/triworks2008/index.php.
    Then click on website, (Not blog)... when the site loads, and you
    roll over the objects on the page, a box appears on the cursor with
    info about that object. I want to achieve this, but cant find any
    tutorials online. Any help would be HUGELY appreciated. Thank
    you!

    For some reason this link wasnt working... this is the same
    site... just a different link... sorry... Any help is again REALLY
    appreciated... I cant seem to find ANYTHING on how to achieve
    this....
    http://www.triworks.net

  • My iPhone is randomly calling people turning on and off going to voice control HELP please

    My iPhone is doing random things such as calling people some I don't even know turning itself on and off and going between apps and screens HELP

    Try resetting it: Hold the home butting + lock button for 10-12 seconds until the Apple logo appears.

Maybe you are looking for

  • How can we insert a field when it is null and not present in database?

    I am working on a report in CR XI..i have strucked ata point where i am unable to find solution..my report has fields like Financial supply and physical supply..as a froup...but both are not displaying on all pages as there are no values to be displa

  • Illustrator CS2 or CS3  Can't delete print presets

    In File/Print I can save any preset I make with my own options wich is great, but now I want to delete one of this presets but can't find how. Is it possible? b I tried to find via finder where that presets are stored but nothing is retrieved.. see h

  • [svn:osmf:] 15864: FM-505: Add text to link instead of displaying URL

    Revision: 15864 Revision: 15864 Author:   [email protected] Date:     2010-05-02 19:21:01 -0700 (Sun, 02 May 2010) Log Message: FM-505: Add text to link instead of displaying URL Ticket Links:     http://bugs.adobe.com/jira/browse/FM-505 Modified Pat

  • PSE 12 organizer crashes continually after movie project in Premiere 12

    I have PSE 12 both organizer and Premiere. I've completed a movie project after first working up a slide show in Organizer but when I tried to burn my dvd the program did not recognize my burner (which is LG's HL-DT-ST GH24NS50 SC SI) so I burned to

  • Using distinct with an Order by

    Hi all, I'm not an expert SQL coder and I've got stuck with the following issue. I have a table named Workorder which contains a set of orders. Orders with status_id = 2 contain an error and this need to be re-submitted: [ ID ] [WO_ID] [STATUS_ID] 1