showModelessDialog

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • oeyvind toft

    showModelessDialog

    I`m dynamicly creating a doc for a modeless window in IE 6..

    win= showModelessDia log(oArgs, window, sFeatures);
    win.document.ti tle = 'some title';

    doesnt work.

    Any ideas ?

    oeyvind
    --





  • RobG

    #2
    Re: showModelessDia log

    oeyvind toft wrote:[color=blue]
    > I`m dynamicly creating a doc for a modeless window in IE 6..
    >
    > win= showModelessDia log(oArgs, window, sFeatures);
    > win.document.ti tle = 'some title';[/color]
    [...]

    It could be for a number of reasons - you haven't explained what oArgs,
    window or sFeatures are.

    Here is Microsoft's documentation, it includes working examples (though
    I didn't test them).

    <URL:http://msdn.microsoft. com/workshop/author/dhtml/reference/methods/showmodelessdia log.asp>

    Needless to say, showModelessDia log is a Microsoft invention that is
    not well supported in other browsers (if at all).

    --
    Rob

    Comment

    • oeyvind toft

      #3
      Re: showModelessDia log

      "RobG" <rgqld@iinet.ne t.auau> skrev i melding
      news:41b2587d$0 $25785$5a62ac22 @per-qv1-newsreader-01.iinet.net.au ...
      [color=blue]
      > It could be for a number of reasons - you haven't explained what oArgs,
      > window or sFeatures are.[/color]

      thanks Rob

      The oArgs, window and sFeatures stuff isnt importaint here.

      What puzzles me is that I cant do 'win.document.t itle = 'some title';'

      Oeyvind

      --





      Comment

      • RobG

        #4
        Re: showModelessDia log

        oeyvind toft wrote:
        [...][color=blue]
        >
        > What puzzles me is that I cant do 'win.document.t itle = 'some title';'
        >[/color]

        Ah, so you are trying to change the title element of the document in
        the child window?

        There is a previous thread regarding changing the title of the current
        document that may be useful on 17 Sept. Search the archives for:

        "How do I change the document title?"

        In case you can't find it, some relevant parts are below:

        Yann-Erwan Perio wrote:[color=blue]
        > Richard Trahan wrote:
        >
        > [changing title of the document]
        >[color=green]
        >> In the interest of higher education, what was wrong with my node method?[/color]
        >
        >
        > According to the DOM/HTML specification the HTMLTitleElemen t inherits
        > from HTMLElement, which itself inherits from the core Element interface,
        > which gives it appropriate DOM methods. Since HTML defines the content
        > of TITLE as PCDATA, the title should be able to have text nodes and
        > change their node values.
        >
        > However, AFAICS, the specification does not state that the [normalized]
        > text nodes inside the title should be considered as the title's value:-)
        >
        > While IE has therefore decided to not create a text node, Mozilla and
        > Opera have however made the decision to have a text node for the title
        > value; in this regard, since changing the node's value does nothing, it
        > could probably be considered as a "bug" in those browsers, but certainly
        > not in regards of the reference.
        >
        > Apart from altering document.title, there's another standard way to
        > change the title, though probably less supported: change the text
        > property of the TITLE element.
        >
        >[/color]
        <URL:http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-79243169>
        [color=blue]
        >[/color]



        --
        Rob

        Comment

        • oeyvind toft

          #5
          Re: showModelessDia log

          Thanks a lot for your help Rob.

          However, I`ve deicded to use a premade html file as the modeless window
          source instead of
          a dynamicly created one. Saves me more trouble with this title thing...

          (I`m able to set the title on the dynamicly created modeless, but it just
          doesnt show up
          in the title bar. And I dont know how to 'sneak' in the title via the
          showModelessDia log method).

          Thanks for the effort !

          Oeyvind

          --





          Comment

          • Razzbar

            #6
            Re: showModelessDia log

            RobG <rgqld@iinet.ne t.auau> wrote in message news:<41b2587d$ 0$25785$5a62ac2 2@per-qv1-newsreader-01.iinet.net.au >...
            [color=blue]
            > Needless to say, showModelessDia log is a Microsoft invention that is
            > not well supported in other browsers (if at all).[/color]

            It should be, though. Dialog boxes have been on computer screens for
            twenty years!

            FURTHERMORE: Modeless dialogs can be faked with a new window, but a
            modeless dialog can not, except for 'confirm()', 'alert()' and
            input(). The programmer can not create a general modeless dialog
            except for MS browsers. When you need a modeless dialog, you
            reall do NEED one.

            ALL browsers should support modeless dialogs!

            Comment

            • Razzbar

              #7
              Re: showModelessDia log

              DAMN IT, why don't I proofread my posts?!?!?!?!?

              I wrote 'modeless' when I meant 'modal'. This is what I MEANT
              to say...


              RobG <rgqld@iinet.ne t.auau> wrote in message news:<41b2587d$ 0$25785$5a62ac2 2@per-qv1-newsreader-01.iinet.net.au >...
              [color=blue]
              > Needless to say, showModelessDia log is a Microsoft invention that is
              > not well supported in other browsers (if at all).[/color]

              It should be, though. Dialog boxes have been on computer screens for
              twenty years!

              FURTHERMORE: Modeless dialogs can be faked with a new window, but a
              ***modal*** dialog can not, except for 'confirm()', 'alert()' and
              input(). The programmer can not create a general ***modal*** dialog
              except for MS browsers. When you need a ***modal*** dialog, you
              reall do NEED one.

              ALL browsers should support ***modal*** dialogs!

              Comment

              • RobG

                #8
                Re: showModelessDia log

                Razzbar wrote:
                [...][color=blue]
                > It should be, though. Dialog boxes have been on computer screens for
                > twenty years![/color]

                Hmmm, that's a matter of philosophy. A browser is very different from
                a standard application platform. Your content is being hosted in
                someone else's application, so you should play by their rules. If you
                want full control of the UI, write a standard application in C++ or
                Java or whatever. Or write your own browser that does provide modeless
                dialogs and ask users to only use your browser on your site.
                [color=blue]
                > FURTHERMORE: Modeless dialogs can be faked with a new window, but a
                > modeless dialog can not...[/color]

                Errr, not quite sure what you mean.
                [color=blue]
                > except for 'confirm()', 'alert()' and
                > input().[/color]

                But some sites still try to use confirm and prompt dialogs to get you to
                click on the few modeless dialogs that are allowed.
                [color=blue]
                > The programmer can not create a general modeless dialog
                > except for MS browsers. When you need a modeless dialog, you
                > reall do NEED one.[/color]

                It's quite easy to program around modeless dialogs - just accept that
                the user is in control. I have yet to find a situation where it was
                *impossible* to design around a "required" modeless dialog.
                [color=blue]
                >
                > ALL browsers should support modeless dialogs![/color]

                I disagree.

                --
                Rob

                Comment

                • Randy Webb

                  #9
                  Re: showModelessDia log

                  Razzbar wrote:[color=blue]
                  > DAMN IT, why don't I proofread my posts?!?!?!?!?
                  >
                  > I wrote 'modeless' when I meant 'modal'. This is what I MEANT
                  > to say...
                  >
                  >
                  > RobG <rgqld@iinet.ne t.auau> wrote in message news:<41b2587d$ 0$25785$5a62ac2 2@per-qv1-newsreader-01.iinet.net.au >...
                  >
                  >[color=green]
                  >> Needless to say, showModelessDia log is a Microsoft invention that is
                  >> not well supported in other browsers (if at all).[/color]
                  >
                  >
                  > It should be, though. Dialog boxes have been on computer screens for
                  > twenty years![/color]

                  So have non-modal dialog boxes. Whats your point?
                  [color=blue]
                  > FURTHERMORE: Modeless dialogs can be faked with a new window, but a
                  > ***modal*** dialog can not, except for 'confirm()', 'alert()' and
                  > input(). The programmer can not create a general ***modal*** dialog
                  > except for MS browsers. When you need a ***modal*** dialog, you
                  > reall do NEED one.[/color]

                  Example? And if you think you need that much control, write your own App
                  and stop trying to do it in a web browser.
                  [color=blue]
                  > ALL browsers should support ***modal*** dialogs![/color]

                  Why?

                  And, how do you suppose a modal dialog should work in tabbed browsers?

                  --
                  Randy
                  comp.lang.javas cript FAQ - http://jibbering.com/faq

                  Comment

                  • glakk@potatoradio.f2s.com

                    #10
                    Re: showModelessDia log


                    RobG wrote:
                    [color=blue]
                    > Errr, not quite sure what you mean.[/color]

                    That's because I was sloppy with terms. Please ignore the
                    post. I clarified in a later post.

                    Comment

                    • glakk@potatoradio.f2s.com

                      #11
                      Re: showModelessDia log

                      RobG wrote:
                      [color=blue]
                      > Errr, not quite sure what you mean.[/color]

                      That's because I was sloppy with terms. Please ignore the
                      post. I clarified in a later post.

                      Comment

                      • glakk@potatoradio.f2s.com

                        #12
                        Re: showModelessDia log

                        RobG wrote:
                        [color=blue]
                        > Errr, not quite sure what you mean.[/color]

                        That's because I was sloppy with terms. Please ignore the
                        post. I clarified in a later post.

                        Comment

                        • Razzbar

                          #13
                          Re: showModelessDia log


                          Randy Webb wrote:[color=blue]
                          > Razzbar wrote:[/color]

                          [modal dialog box not supported by most browsers]
                          [color=blue][color=green]
                          > > It should be, though. Dialog boxes have been on computer screens[/color][/color]
                          for[color=blue][color=green]
                          > > twenty years![/color]
                          >
                          > So have non-modal dialog boxes. Whats your point?[/color]

                          There are times when a modal dialog is the best way to do
                          something.
                          [color=blue]
                          >[color=green]
                          > > FURTHERMORE: Modeless dialogs can be faked with a new window, but a
                          > > ***modal*** dialog can not, except for 'confirm()', 'alert()' and
                          > > input(). The programmer can not create a general ***modal*** dialog
                          > > except for MS browsers. When you need a ***modal*** dialog, you
                          > > reall do NEED one.[/color]
                          >
                          > Example?[/color]

                          Any time the user has to do something before continuing.
                          [color=blue]
                          > And if you think you need that much control, write your own App
                          > and stop trying to do it in a web browser.[/color]

                          Are you serious? Why have javascript at all? Sheesh, web pages
                          aren't just plain text any more. You can have interactivity, you
                          can deploy all kinds of real applications.

                          [color=blue][color=green]
                          > > ALL browsers should support ***modal*** dialogs![/color]
                          >
                          > Why?[/color]

                          Because they are a common feature of all common GUI's, and there
                          are times when they are the most appropriate thing to use. Just
                          because there are some misuses of them out there does not mean
                          they should not ever be used. I think it's simple-minded zealotry
                          to say -never- use them. There are times when a user has to do
                          something before continuing.


                          [color=blue]
                          > And, how do you suppose a modal dialog should work in tabbed[/color]
                          browsers?

                          Modal just to the tabbed window of course.

                          Comment

                          Working...