Opening a browser window from a CHM (Win7)

Hi All,
I'm having a problem where a script we've had for years to open a special window (sized, no browser buttons, etc) for certain content is no longer working correctly in Windows 7.
Here is the script:
function OpenWindowSize(strUrl, u_width, u_height) {
var w_width = ",width=" + u_width;
var w_height = ",height=" + u_height;
var strOptions = "scrollbars=yes,resizable=yes"
strOptions += w_width;
strOptions += w_height;
strOptions += ";";
var newWin = window.open(strUrl, "newWin", strOptions);
//     newWin.document.close();
  newWin.focus();
WinXP & Vista: a link within a CHM correctly opens a new window with only scroll bars, and resizable, with the specified dimensions (e.g. u_width=500, u_height=700)
Win7: a link opens in a regular browser window with full menus, etc and not sized to the specified dimensions. An error also displays in the CHM file.
CHM error message (snippet): 'newWin' is null or not an object.
A developer managed to get the CHM error to go away by adding if (newWin != null) above the focus() line.
He also managed to prove that the problem only exists within CHMs. When the same javascript is used in plain HTML, the window is called correctly, as per the WinXP & Vista example above.
Does anyone know how to get my script working in Win7 so that it is sized correctly and doesn't have the menus/buttons?
Thanks,
Amber

Hey All,
I just got a message from PatricioV2, for this...I totally forgot to come back to the forum...I was so busy trying to work out the solution that now, I forget the specifics, but I did find out that there is NO WAY to customize a pop-up window from a CHM with IE 9 or 10 installed...any pop-up will have ALL the browser timings. And since I didn't want that effect, I abandoned that idea and pursued a different solution.
However, I was able to use jQuery Colorbox...which really surprised me. But even with this, you cannot use "linked" images from the stylesheet so the controls don't show...so, you need to "style" the elements with color values (i.e. background, borders, etc.).
Also, and very important, if your content is in an IFRAME in the CHM (which mine was), you MUST use a jQuery technique to get your colorbox to work on the PARENT window...otherwise, the colorbox effect will happen ALL INSIDE THE IFRAME...
...and on a side note: the code in the original post is very close to the code I was using...but all I needed to do was define the value of NULL and the script worked without any errors (which is in a post above)...but not being able to style the pop-up just ruined it for me...

Similar Messages

  • Open new browser window from Hyperlink in BIP PDF output report?

    Hello,
    Is there a way to open a new browser window from Hyperlink in PDF report?
    Thank you all in advance.
    MT

    Dear Friend,
    It is not supported for PDF Report. But below links helps you, to accombish this task in PDF report.
    [url http://oracleapps4u.blogspot.com/2011/03/open-hyperlink-in-new-browser-window.html]http://oracleapps4u.blogspot.com/2011/03/open-hyperlink-in-new-browser-window.html
    Thanks & Regards
    Ahamed Rafeeque Cherkala

  • Open new browser window from a JApplet

    Hi,
    I want to open a new browser window from a JApplet.My first thought was to use the Live Connect technology but it worked only with simple applets not with JApplets.Then i tried it by getting the Applet context (getAppletContext() method) but it still didn't work with JApplet...(it worked with Applet).I believe it has something to do with the applet security but i haven't yet figured it out.
    For example when i call the getAppletContext() method from a JApplet i get an java.security.AccessControlException ... .Thanks

    I must correct myself now :).
    The getAppletContext() method does work with JApplets too.Still , i have problems with the Live connection alternative.It seems that it by importing the netscape.javascript package i get the security eror that i mention above...

  • Open a browser window from flash actionscript 2 in safari or firefox

    I am having a problem. I found the actionscript 2 code to open a browser window, but it is not working in Safari, or Firefox. I found an old action script 1 file version 5 for the flash player that works just fine, but I am using 8 and actionscript 2 so that doesn't work for me.
    Any body have any idea how I can do this?

    if you're testing locally, use:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l

  • Open new browser window from an Applet

    I have an applet that needs to initiate a new browser window to open and go to a specified URL. Can anyone help me with this?? Thanks in advance.

    http://developer.java.sun.com/developer/qow/archive/48/index.html

  • Is it possible to open a browser window from an applet?

    Hi,
    this might seem a simple beginners question to you, but to me it is more like a nightmare.
    Is it possible to have a link in an Applet that opens up a new browser
    window with a fixed address??
    If yes, can anybody tell me how? or where can I find documentation about it?
    Please help me.
    Thanks.
    dunja

    myApplet.getAppletContext().showDocument(URL url, String target);
    TARGET:
    "_self" Show in the window and frame that contain the applet.
    "_parent" Show in the applet's parent frame. If the applet's frame has no parent frame, acts the same as "_self".
    "_top" Show in the top-level frame of the applet's window. If the applet's frame is the top-level frame, acts the same as "_self".
    "_blank" Show in a new, unnamed top-level window.
    name Show in the frame or window named name. If a target named name does not already exist, a new top-level window with the specified name is created, and the document is shown there.

  • Opening new browser window from View Library links

    On some of the documentation pages, e.g. http://www.oracle.com/technology/documentation/ias.html , a new browser window is opened using target=new_win in the HTML code. This window will be re-used if the user goes back and clicks on another, similar link. It's better to use target=_blank for this purpose, because that would ensure that a new browser window is opened every time.

    You would have to a) swap the image, and b) expose a
    previously hidden layer
    that superimposes the image with a transparent GIF on which
    the onClick
    behavior has been applied.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "tldesignstudios" <[email protected]> wrote
    in message
    news:e7vfhm$1hf$[email protected]..
    > Hi all, does anyone know if it is possible to set a
    swapped image to open
    > a new browser window on a click command? Any help woul
    dbe much
    > appreciated. thank you in advance. :)

  • Opening new browser window from image swaps

    Hi all, does anyone know if it is possible to set a swapped
    image to open a new browser window on a click command? Any help
    woul dbe much appreciated. thank you in advance. :)

    You would have to a) swap the image, and b) expose a
    previously hidden layer
    that superimposes the image with a transparent GIF on which
    the onClick
    behavior has been applied.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "tldesignstudios" <[email protected]> wrote
    in message
    news:e7vfhm$1hf$[email protected]..
    > Hi all, does anyone know if it is possible to set a
    swapped image to open
    > a new browser window on a click command? Any help woul
    dbe much
    > appreciated. thank you in advance. :)

  • Opening a browser window from iBooks

    Is it possible to have a link to a website in an ibook author textbook but instead of dumping you out of ibooks into Safari, it opens up a browser window within iBooks?  I don't want to have the user to leave the iBook just to check out a website for a minute.
    I know I've seen apps that will overlay a browser window which you can then close, keeping you in the app the entire time.
    Thanks,
    Paul

    Try making a dashcode widget to display remote content...
    iBooks Author: About HTML widget creation

  • Opening new browser window from backing bean

    Is it possible to open new window from backing bean?
    Regards, Simy

    quite sure its not possibleIt is possible !! But a fifferent way of doint it!
    I assume this is what you want ! on click of a button you want to go to the backing bean and come back with the new page on a new window !!
    Do the following! On click of a button, call a javascript method which does the following
    window.open('/jsf/somepage.jsf',.....)In the constructor of the backing bean, do the backend processing and set the fields of teh backing bean. And when the page gets rendered its as good as what you want...

  • CS4 - Difference in height on "Open New Browser Window" from Safari to IE?

    I have put a site together and have some links that are set to "Open New Window" and have given them the appropriate sizing and on Safari Mac they show correctly but on Windows IE they show short. Is there a difference in the height dimension on Windows platform or IE in particular? Any help would be greatly appreciated.
    Thanks,
    jodmcc49

    You are going to have to post a link to the page in question.  If you set something to be a specific height and width in pixels it will be the same in both screens.

  • Open a browser window in the same window

    Hello everybody, I have a question:
    I want to open a browser window from an applet. Not in a new window but in the same window.
    I already know about the
    getAppletContext().showDocument(new URL("http://java.sun.com"), "_blank");
    applet-instruction but it opens the html page in a new window. I have already proved changing the "_blank" parameter for "_self" or "_parent" but stills the same: it's opened in a new window. Does anybody could help me please?
    Thanks

    public void showDocument(URL url)
    Replaces the Web page currently being viewed with the given URL. This method may be ignored by applet contexts that are not browsers.
    Parameters:
    url - an absolute URL giving the location of the document.
    Applet must be running in a browser for this to work. More information at this website
    http://java.sun.com/j2se/1.4.1/docs/api/

  • Opening a browser window

    My issue is as follows:
    Our application consists of images and forms. We display the image in an image viewer, on left half of the screen and the form on the right half.
    When we display the image in a browser using web.show_document the image gets displayed fine but the focus remains on the newly opened browser window. The user has to click into the form to start entering information from the image into the form, losing valuable time in a high volume processing environment.
    Is there a way other than using web.show_document (foreign functions/Java/any other technology) that will allow me to open a browser window from the form and then send the control back to the form?
    Thanks
    SP

    Hi,
    check this one
    WEB.SHOW_DOCUMENT
    Frank

  • Open a new Window from Applet --- beginner

    Hi all,
    I need to open a browser window from an applet and control the window properties (width, height .. etc). Can anyone please give a code example for this
    thank you.

    hi
    First, thank you for your reply.
    Second, I need to know how could I found this Netscape calss to can be abelto import it.
    And I want to know if it will work on (IE) browsers or it is just working on Netscape Browser.
    Thank you again :)

  • How do I open a new browser window from Flash

    I wish to open a new browser window from Flash and when the new window closes to return to the location from whence I started.
    ThomasChen

    The command to open a new window would be the "_blank" part of a command to link to a web page in the code below.
    navigateToURL(new URLRequest("http://www.anothersite.com", "_blank"));
    As far as the new window closing and getting back to where you were in the original window, I don't understand where that original window might have gone to... You should be wherever you last left it.

Maybe you are looking for

  • DVI to component video - possible?

    I'm trying to find a way to connect the DVI output of my MacBookPro 1.1 to the component video inputs of a Sony STR-DH810 receiver which is hooked up to my TV. I discovered I can't use the HDMI inputs on that receiver with an alternate audio source,

  • Create a PO in SAP and then transfer it to SRM

    Hello, i just wanted to know if it is possible to create a PO manually in SAP and transfer it to SRM portal ?

  • Time conversion form calday to quarter.

    Hi, I have calday in ODS with format (MM/DD/YYYY). Now in Cube I want 0fical week and 0fiscal quarter. pls give me the logic. fiscal year starts from 1st-oct. Regards, Sai

  • Transferring files to new Mac from pc

    Hi, our old PC recently crashed and we have now "seen the light" and bought a new mac. Luckily, we were able to get a back-up of the hard drive of the old PC. I was wondering how to get my music from the back-up discs of my PC into I -tunes on my mac

  • Do I have to use Iweb's plain hyperlinks?

    I want to add my own hyperlinks/menu bar using different colors and shapes like I have seen on other pages but can't find instructions on how do accomplish this in the program.