sketchucation logo sketchucation
    • Login
    1. Home
    2. Dan Rathbun
    3. Posts
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 92
    • Posts 4,903
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: WebDialog help - hide scrollbars

      CSS Attribute overflow:

      @unknownuser said:

      With Internet Explorer 6 and later, when you use the !DOCTYPE declaration to specify standards-compliant mode, this property (overflow ) applies to the html object.
      1. MSDN Library / CSS Reference: overflow Attribute | overflow Property

      posted in Developers' Forum
      Dan RathbunD
      Dan Rathbun
    • RE: WebDialog help - hide scrollbars

      NewOne, and all ... I found this article on virtuosimedia very informative
      Ultimate IE6 Cheatsheet: How To Fix 25+ Internet Explorer 6 Bugs

      .. in addition the author recommends always using !DOCTYPE, and makes a good case.
      .. other good tips, ie: the CSS Reset Rule.

      have a read y'all !

      posted in Developers' Forum
      Dan RathbunD
      Dan Rathbun
    • RE: Ruby to WebDialog Communication

      @unknownuser said:

      Martin wrote(in tutorial😞
      "You get scrollbars on a PC whether you want them or not."

      Not actually true. It depends on whether you need to specify a HTML version and standards-compliant mode in the webpage. This is done with a <!DOCTYPE> tag on the first line. You can leave it out, but then you would need to know what the 2 browsers (MSIE & Safari) will default to.

      Note the following from MSDN (on the body tag.)

      @unknownuser said:

      As of Microsoft Internet Explorer 6, when you use the !DOCTYPE declaration to specify standards-compliant mode, the body object can obtain its size from its content, or you can set its size explicitly—like a div object, for example. In standards-compliant mode, the html element represents the entire surface onto which a document's contents can be rendered. When the !DOCTYPE declaration does not specify standards-compliant mode, and with earler versions of Internet Explorer, the body object represents the entire surface onto which a document's contents can be rendered. The size of the body object cannot be changed and is equal to the size of the window. Margins you set on this object are rendered inside the border and scrollbars of the object.

      So... IF you do NOT want scroll bars, and want the WebDialog to look like a real dialogbox, you need to decide where (which tag, ie: HTML or BODY,) to place a SCROLL="no" attribute.

      @unknownuser said:

      With Microsoft Internet Explorer 6 and later, when you use the <!DOCTYPE> declaration to specify standards-compliant mode, this attribute (scroll=) applies to the HTML element. When standards-compliant mode is not specified, as with earlier versions of Windows Internet Explorer, this attribute applies to the BODY element, not the HTML element.

      I've pulled my hair out in the past, trying to find a perfect combination of compliant modes (just take a look at the table on the <!DOCTYPE> page and you will want to slap whomever it was that designed such a crazy 'switch'.)

      Anyway we are talking about simple dialogs, the best system may be to leave off the <!DOCTYPE> tag and put SCROLL="no" in both the HTML and BODY tags, letting the browser(s) ignore the one in the wrong place. I will tell you that in STRICT mode, an attribute in the wrong tag causes problems.

      I'd rather just go with wxRuby dialogs after all the problems I've had with html / hta dialog applets.
      (btw, HTA dialogs won't work with SUruby, MSIE takes over and opens the file in a second window disconnected from the window that SU opens. Nothing appears in the SU dialog, and the HTA window can't recognize the "skp:" callback. It opens yet a third window with the 'Unable to locate skp:callbackname@ website' message, or such like.) Really wish HTAs would work because I can trap ESC and ENTER keys in HTA but not in HTML (security for preventing browser hijacking.)
      .

      posted in Developers' Forum
      Dan RathbunD
      Dan Rathbun
    • 1 / 1