Forms and Dialogs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Simon Wigzell

    Forms and Dialogs

    This is what I am trying to accomplish:



    I want the small calculator window to be always in front and to be able to
    interact either with it or the main page. As the calculator is a normal
    window it disapears behind the main window when focus shifts to the main
    window. I can cure this problem by opening the calculator as a modeless
    dialog BUT! Then the form information from the main page does not get sent
    to it - it opens an empty dialog AND a normal page.

    The problem is stripped down to it's barest essence here



    Clicking Normal brings up a normal window that has recieved the form
    information but disapears behind the main page when you click in the main
    page.

    Clicking Dialog brings up an empty dialog that does not know the form
    information but does stay on top when you click in the main page and a
    normal page that does know the form information .

    How can I have the popup window behave like the modeless dialog but still
    receive form information?

    Thanks!


  • Lee

    #2
    Re: Forms and Dialogs

    Simon Wigzell said:[color=blue]
    >
    >This is what I am trying to accomplish:
    >
    >http://www.mississippiprinting.com/M...Size=8%20x%209
    >
    >I want the small calculator window to be always in front and to be able to
    >interact either with it or the main page.[/color]

    That's a function of the user's window manager environment
    which is beyond your control.

    Depending on the user's environment, the window in front
    is usually the only one that they can interact with.

    You can either make it a normal window and give it focus
    when you want to bring it to the front, or you can make
    it a dynamic part of the main window whose visibility
    is toggled to make it pop up or down.

    Comment

    • Simon Wigzell

      #3
      Re: Forms and Dialogs

      snip

      Thanks, but if you had read the entire post and tried my examples you will
      see that what I require is indeed possible by operning the window as a
      modeless dialog. My problem is that it cannot be used as the target of a
      form for some reason.


      Comment

      • Grant Wagner

        #4
        Re: Forms and Dialogs

        Simon Wigzell wrote:
        [color=blue]
        > snip
        >
        > Thanks, but if you had read the entire post and tried my examples you will
        > see that what I require is indeed possible by operning the window as a
        > modeless dialog. My problem is that it cannot be used as the target of a
        > form for some reason.[/color]

        It can not be used as the target of a form because it is a modeless dialog.

        <url:
        Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.

        />

        As you can see, it does not have a "name" attribute, and as such can not be
        the TARGET of a form.

        As for what you want being possible. When I visit your stripped down version
        at <url: http://www.mississippiprinting.com/M...windowtest.asp /> I receive
        the following error message in Firefox 0.8:

        Error: window.showMode lessDialog is not a function
        Source File: http://www.mississippiprinting.com/M...windowtest.asp
        Line: 25

        so it's obviously not possible. When I visit the main page you posted at <url:

        /> in Firefox 0.8 and scroll left or right, I receive four instances of:

        Error: document.all has no properties
        Source File:


        Line: 144

        so whatever you're trying to do there isn't working either. Not to mention
        your site seems designed for a browser width I do not use, forcing me to
        scroll from side to side to see the content. I especially like:

        <select onchange="DoCos ting();" name="FreightOp tion" size="1" style="width:
        212; height: 212"> which produces a square <select> filled with ... nothing.
        And DATE JOB TO PRINTER and DESIRED DELIVERY DATE don't do anything in Firefox
        0.8 except cause the following errors:

        Error: show_calendar is not defined
        Source File: javascript:void (window.__tabex tensions__LastE vent = (new
        Date()).getTime ());show_calend ar('ProductForm .ProjectRelease Date');
        Line: 1

        Error: show_calendar3 is not defined
        Source File: javascript:void (window.__tabex tensions__LastE vent = (new
        Date()).getTime ());show_calend ar3('ProductFor m.DesiredDelive ryDate');
        Line: 1

        I could go on, but I can't be bothered.

        In short: don't expect all your customers to be using the newest version of
        Internet Explorer, don't expect all your customers to be using a browser
        viewport width that makes your site look "pretty", don't expect those
        customers who are using the newest version of Internet Explorer and have their
        viewport width set appropriate to have Javascript enabled.

        --
        | Grant Wagner <gwagner@agrico reunited.com>

        * Client-side Javascript and Netscape 4 DOM Reference available at:
        *


        * Internet Explorer DOM Reference available at:
        *
        Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


        * Netscape 6/7 DOM Reference available at:
        * http://www.mozilla.org/docs/dom/domref/
        * Tips for upgrading JavaScript for Netscape 7 / Mozilla
        * http://www.mozilla.org/docs/web-deve...upgrade_2.html


        Comment

        • Lee

          #5
          Re: Forms and Dialogs

          Simon Wigzell said:[color=blue]
          >
          >snip
          >
          >Thanks, but if you had read the entire post and tried my examples you will
          >see that what I require is indeed possible by operning the window as a
          >modeless dialog. My problem is that it cannot be used as the target of a
          >form for some reason.[/color]

          I read the entire post and tried your examples.
          They don't do what you suggest that they do.
          What you require is indeed not possible.

          Comment

          Working...