Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2003
    Location
    Sao Paulo, Brazil
    Posts
    150

    Closing HTML page

    I am using a listbox object to display HTML pages. So far no problem.
    The browser used is the IE 6.0

    Two questions:
    1. Is it possible to hide the menu bar of the browser?

    2. I have included a button to close the browser window displaying the html page.
    <area shape="rect" coords="82,76,150,94" href="javascript:window.close();">

    The button works, but each time the page is displayed and the button is clicked, before the window closes, a dialog is displayed with the message "The web page you are visiting is trying to close the window. You confirm?" This message is not displayed if we click on the Windows close button (X) in the corner of the window.

    How to make the button work without displaying this annoying dialog?

  2. #2
    Join Date
    Oct 2003
    Location
    Sao Paulo, Brazil
    Posts
    150

    Thumbs up

    After looking for a solution, I realize that actually there is no way to control IE window properties for displaying html files from within AMS.

    Workarounds I tested and worked that may be helpful for someone else:

    1. The popup for confirming to close or not a html window in IE is inherent to main windows. Since windows (popups) that have openers can be closed unconditionally, the solution is to make IE think a main window has an opener. That is accomplished by giving a phantom opener a value, in this case, an empty string, like in this example (pls notice the single quotes after window.opener=)

    <a href="javascript: window.opener=''; window.close();">Close Main Window without Confirmation</a>

    2. Other solution is to open a html "dummy" file from AMS that in turn pops up the file we want through the javascript command window.open(). The "dummy" window is closed on loading the popup. Better yet, through this function we also have full control on the IE window properties.

    Sergio.
    Last edited by Sergio_S; 12-07-2006 at 06:38 AM.

Similar Threads

  1. How to insert bullet in a paragraph object
    By jrak in forum AutoPlay Media Studio 6.0
    Replies: 13
    Last Post: 12-29-2005, 10:53 AM
  2. html page and link
    By mountain07 in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 11-19-2005, 09:00 PM
  3. html page dissapears
    By captainmatt in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 12-08-2002, 05:23 PM
  4. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts