I need my Popup Window to be at the Center of the Screen - help

Please tell me how can I popup a new window at the center of the screen. I know to position at particular x,y point, using top, left parameters in the window.open() function, but I need to get the center point of the screen. I need to get maxX and maxY value.
Thanks,
Guhan

use this javascript function in ur code,it will work
function alignToCenter(w, h)     {
     var e = openWin(w, h);
     var x = (screen.width-w)/2;
     var y = (screen.height-h)/2;
     e.moveTo(x,y);
}

Similar Messages

  • How can you get your music synced from iTunes to your iPod when a window pop ups on the screen saying"The iPod "Edward's iPod" cannot be synced. An unknown error occured (13019))?

    I had 429 songs already on my iPod Touch. When I was in the process of syncing a song from my iTunes Library on to my iPod, a window popped up on the screen saying, ""The iPod "Edward's iPod" cannot be synced. An unknown error occured (13019)). I click "Device" on my iTunes Library to make sure the song was in my iPod. It showed the song that was recently synced now listed under "Device", but when I physically looked for the song on my iPod Touch, it does not appear on there at all. It all started when I decided to put a Playlist I created in the iTunes Library and transferred it on to my iPod. Do you know why it may affected my syncing process and is there any way where I could get the syncing function back to normal so that I can continue adding songs on my iPod? Thank you for listening.    P.S. My iPod iOS version is 4.3.5.
    Message was edited by: edwardwashere

    Try here:
    iTunes: Error 13019 during sync

  • My ipad has a message that i cloud needs to be backed up . but now the screen is frozen

    my ipad has a message that icloud needs to be backed up. but now the screen is frozen

    Try a reset:
    Hold the Sleep and Home button down until you see the Apple logo.

  • My laptop have refused to start it will just show windows boot manager on the screen,

    My laptop have refused to start up, it will just show windows boot manager on the screen,and me to choose an operating system to start or press tab to select a tool but when I tryed all those things none of it will respond

    Thanks also Star 1. I have gone the route you suggest also but with the same results as I explained to the hatter. I have about a dozen die-hard Windows friends and they have been trying to help me also. We have tried everything and I have read a several pages on how to do it but nothing looks like what they are saying it does. When in Vista, Vista says it is the default SU OS. When in XP, XP says it is the default SU OS. So there is nothing to change. Only the Windows Boot Manager (which is really not a manager but a boot selector) shows Vista as default and XP next. I've learned again what I already knew. Windows is a conglomerated piece of crap that is hard as heck to use.

  • In a multiple monitor situation, how do I get popup windows to open on the same monitor as the parent application is displayed.

    I have two monitors. I have an application that I run all day, displayed on my secondary monitor. Whenever a popup windows is launched form that application, it always opens on the primary monitor. Very annoying. Any way to get the popup to launch in on the same monitor as the parent application?

    Did you solve this problem ?

  • Blocking popup windows even when disabling the popup blocker

    For quite some time now, Firefox has been blocking essential popup windows on my computer. It's not just those annoying ones, even those when I am trying to write an email and similar things. I have disabled the popup blocker and it does not change anything at all. It does not alert me that it has blocked anything either, it is simply as if I never clicked anything in the first place. I have tried adding exceptions to my popup blocker, and this does not work either. This is really frustrating and is interfering with my daily use of firefox, and forces me to use crappy explorer which does not block things. What can I do?

    Hi Sachin
    Thank you so much for the reply.
    About your request, the codes that I used are:
    HTML for the PopUp:
    <SCRIPT LANGUAGE="JavaScript">
    function popUp(URL) {
    var iMyWidth;
    var iMyHeight;
    //half the screen width minus half the new window width (plus 5 pixel borders).
    iMyWidth = (window.screen.width/2) - (250 + 10);
    //half the screen height minus half the new window height (plus title and status bars).
    iMyHeight = (window.screen.height/2) - (225 + 50);
    //Open the window.
    var win2 = window.open("http://xarao.businesscatalyst.com/caipiroska.html","Window2","status=no,height=450,width=500,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
    win2.focus();
    </SCRIPT>
    For the Link:
    javascript:popUp('http://xarao.businesscatalyst.com/caipiroska.html')
    Of course for all the different links in the page I've changed the http of each image in both codes.
    http://xarao.businesscatalyst.com/cocktails.html
    Thank you once more.
    Best regards,
    Augusto

  • Satellite L850D-12P: Need copy of Windows 8 to reinstall the OS

    Hi,
    I have a Satellite L850D-12P and need a copy of windows 8 to reinstall the OS
    I deleted all data on the HD inclding the recovery partiton, i dont fancy spening 30 ordering the disks and would like to download the
    The macine orinally came with Windows 8 ....
    Thanks
    Jaz

    I do not agree as customer support is good, its good... but idiot thing is we buyed the laptop from Toshiba, which is money minded,...if toshiba knows that after customer system drive is corrupted /erased accidently then no chance of getting the paid version of OS restoring...
    1. then why dont toshiba provided already a recovery CD before only..
    or
    2. they should have informed as pre-condition/pre-caution that if Hard Drive got erased then Toshiba cannot provide the product ID also which a customer is paying.
    i think toshiba should should value the customers money also & should keep inform the customers unwanted loss with pruchasing toshiba... as I would have atleast prepared the Backup-restor CD if i was warned after purchasing....atleast..
    As if i can purchase this laptop, then i can pruchase a CD also write & create a backup CD,,,, but as a customer will be unaware of these internal problemss... he will be facing this type of problems....

  • Uninstalling the 'block popup window' using ' safari'... preferences security did not help. Can somebody please help?

    Why turning off ' block popup window' does not work for me when i open the page?

    r! A popup blocker may be preventing the application from opening the page. If you have a popup blocker, try disabling it to open the win

  • Browser window is minimized when computer wakes from sleep, needs to be mazimized two times to restore a window as large as the screen

    i have tried to use the reset feature, but it doesn't work
    i cannot a feature such as the one available on
    AOL that allows the "screen size and position" to be saved

    Operating system is Windows 7 x64. Firefox Version is 20.0.1
    Note: my problem has stopped since I manually enlarged (instead of using the enlarge button) the Firefox window to fill the screen

  • My one year old disabled my iphone 5 so i need to "connect it to itunes" as the screen directs. I know how to do this with my laptop but it says i will be doing a factory reset. is there any way to get my phone open without losing everything?

    Long story short, my one year old disabled my iphone5 and I need to "connect to itunes" as the screen instructs. I went through the steps and it says that I will be doing a factory reset and I will lose everything. Is there any way to get my phone open without losing everything?? I'm mainly concerned about my pictures and videos.

    Once the Device is in Recovery Mode... it is too late to save anything...
    To minimise loss... after the successful Recovery... Restore from the most recent Backup...
    See Restore from Backup here
    http://support.apple.com/kb/ht1766

  • I need to get into my phone, but the screen is completely unresponsive.

    I have the iPhone 4 and a few months ago, I dropped my phone and the screen shattered. Now the screen is completely unresponsive and I would like to access my contacts, texts, calls, etc.. Is there anyway I could get into all of that through iTunes or at least my computer?
    It's been this way for about a week and the texts and calls are flooding in and I can't even let these people know my phone doesn't work. Which *****.
    *I don't have the money to replace/fix my phone at the moment, so I need to find an alternative.
    Thanks.
    -TMB

    You cannot access the phone via the computer. You could try and backup the phone and try and access the backup via a 3rd party software, however most of them cost. Touchcopy is a good one to see the texts, but I'm not sure it will allow you to look at the call lists.
    I suggest you find a dumbphone so you can at least handle texts and call since you cannot afford to fix the device right now.

  • Need to add new Text Field on the Screen

    Hi,
    I am using Oracle 9 Designer and generating the web pages using web pl/sql language. After I generate the page, my screen looks like this:
    Employee id: TextField
    Employee Name: TextField
    I want to add a comment"(Please enter characters Only" below the Employee ID like the following:
    Employee id : TextField
    (Please enter characters Only)
    Employee Name: TextField
    Can anybody help me how to add this in the designer form?
    thanks in advance.

    You can do this with an unbound item on a View Form. You cannot do it at all for an Insert Form. There is a work around but takes a little explaining for the Insert Form. You need to create a web page from the insert form html, modify it manually. I do it as a simple procedure so it is consistent with the rest of the application. Then all menus, links, etc. need to reference that page instead of the FormInsert procedure in the generated package.
    There may be other work arounds. Without knowing more about your requirements, I can't say.
    John Caputo
    [email protected]

  • Finder window resizing lower left corner is off the screen - Help!

    Moving from a 17" PowerBook to the 13" MBA, my Finder windows are too big. If I could only change my default window size from the 17" to the 13" I could Command-A Command-C Command-V the contents of my larger old windows to the smaller new screen...or a global resize of the windows would be even better. Any suggestions?

    That won't work when it is too big and off the screen.
    You have to click OPTION and the GREEN button to be able to resize it when it's off the screen.

  • Since upgrading to Yosemite, when I try to compose a new message, the window is wider than the screen and I can't adjust the width.

    Ever since I upgraded to Yosemite on my MacBook Air, I cannot get the mail window to adjust to a size that fits my screen.  It is wider than the screen size and although I can adjust the height, the adjustment arrows will not adjust the width.  I am not having the same problem with my mac mini since I upgraded that computer.  This is a pain because I spend most of my time on my air sending out e-mails to clients

    Greetings kbug61,
    It appears you are experiencing issues with window sizes and displays. Have you attempted to adjust your resolution at any point? That may be why the windows aren't managed properly. The following article may help you find a solution:
    OS X Yosemite: Adjust your display’s resolution
    Your display’s resolution determines the size of text and objects on your screen. By default, the resolution on your display is set to show the sharpest text and the most detailed images. While it’s best to use the default resolution, you can manually set the resolution to make text and objects appear larger on your screen, or adjust it to make text and objects appear smaller so you have more space on your screen.
    Depending on how you adjust the resolution, some apps may not fit entirely on the screen. Using a scaled resolution may affect performance.
    Set the resolution for your primary display
    Choose Apple menu > System Preferences, click Displays, then click Display.
    Select Scaled, then select one of the scaled resolution options.
    Set the resolution for a connected display
    If you have more than one display, additional resolution options are available.
    After the display is connected, choose Apple menu > System Preferences, click Displays, then click Display.
    Press the Option key while you click Scaled to see additional resolutions for the second display. Then select a scaled resolution option for the second display.
    If you changed your display’s resolution and now there’s no picture
    Connect multiple displays to your Mac
    Set options for accessibility
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

  • Windows moving spontaneously to the screen bottom - only title bar visible

    I have this odd behavior on my MBP after installing Lion.  I'll be replying to a message in Mail or moving a window in finder ... and suddenly the window disappears.  Sometimes I find it down at the bottom left of the screen, with only the title bar showing.  Other times, it will "walk" to the bottom of the screen on its own ... a "stutter step at a time," while I try in vain to stop it.
    In Mail, this will tend to happen if I start typing in the reply before the Genie has openened the message all the way.  In the Finder, it seems to happen if I move a window too quickly to the edge of a screen or across to my second monitor.
    It's slightly maddening, and a real waste of time as I watch helplessly as windows march their way to the bottom of the screen.  Any help is much appreciated.

    Hmmm ... Replying to my own message.
    After booting into safe mode, and seeing no problem, I began adding back my login items one at a time.
    It appears that the issues is with MenuEverywhere and 10.7 or 10.7.1.  Disable ME and all is well.
    I've opened a ticket with Binary Bakery.

Maybe you are looking for

  • USB Drive (Toshiba 16GB PA3875A-1MAB) Not formatted message

    Some months ago I purchased two 16GB USB drives with intention to use as a convenient backup for certain data files for myself and my wife on separates PCs, both of which were Dell desktops running Windows XP. I used my drive on a few occasions think

  • Avoid Page Submit

    Hi, I have an updateable tabular form. In that I have a hidden column. I also have a select list item based on which the tabular field filter is set. I have used select list with submit. So whenever the data is changed in the select list a submit eve

  • Check Register

    Dear All My claint want to study of check register How to study of cheque Register is any tcode is there ...pl Regards Satya...

  • Webdynpro ABAP application integration with portal

    Hi,       Can someone provide me the complete documentation for        1. webdynpro ABAP application development and        2. webdynpro ABAP application  integration with enterprise  portal. Thanks... Kundan

  • Orgamize bookmarks is no longer available to me in the bookmarks menu

    orgaNize bookmarks has not been visible to me in any version of 4Beta.