javascript presentation CD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zorgi
    Recognized Expert Contributor
    • Mar 2008
    • 431

    javascript presentation CD

    Hi everyone

    I am not sure if this is the place to post this question but ...
    Well I was asked to do presentational CD using HTML and Javascripting. No problem I thought and few hour later everything was ready and it worked great on my hard drive. I than look up in google for how to create autorun and my CD was ready. But then we tested it around the office on different machines with different default browsers and all kinds of security messages started poping up. Cd works but only after one clicks several times to confirm this or that.

    Here is code from my start.html page:
    Code:
    <script>
    window.open("index2.html",true,"status=no,toolbar=no,menubar=no,location=no,titlebar=no,channelmode=yes");
    window.opener = self;
    window.open('','_parent','');
    window.focus();
    self.close();
    </script>
    The code above is my main problem.

    In firefox does happens one of two:

    1) It starts only start page never opening index2.html OR
    2) It starts everything including index2.html but never closes start.html

    In IE works fine but if you have sp-2 than you get yellow activX warnings on both start.html and index2.html

    I looked around and found no solution to this problem. I am now asking myself if this is at all suppose to be done in this way because everything I found are some half way hacks.

    Thank you for your help
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    It seems what you're trying to do is open a window and close the parent (opening) window. Why would you want to do that?

    Comment

    • zorgi
      Recognized Expert Contributor
      • Mar 2008
      • 431

      #3
      Originally posted by acoder
      It seems what you're trying to do is open a window and close the parent (opening) window. Why would you want to do that?
      Hello acoder

      Because only window that is opened via javascript can be closed without getting dialog box from the browser. This script is all that is on the first page. It is ment to open child window and than close itself. That way I can have full screen for Child window and use window.close() on it without dialog box poping up.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        This can't work with default settings. You will need to run this with privileges (e.g. trusted zone) to allow it to work. Note also that channelmode is IE-only.

        Comment

        • zorgi
          Recognized Expert Contributor
          • Mar 2008
          • 431

          #5
          Yeah. Thanks. I think guys at work are finding different solution to the problem (Not using default browser for presentation). I'll be happy to pass this problem on :)

          Once more Thank you

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            You're welcome! Let us know if you manage to solve it.

            Comment

            Working...