View RSS Feed

Uncategorized

Entries with no category

  1. The YouTube rel parameter

    As announced in this document, it's no longer possible to disable related (YouTube) videos in iframe embeds using the rel parameter. This means that we can no longer use it to prevent suggested videos from appearing after an embedded video has come to an end. So what can we do if we don't want them? Read this.
    Categories
    Uncategorized
  2. Iframe resizing: remarks, requirements and a script

    I. Proportional heights inside an iframed document must be (re)calculated with respect to the height of the parent document
    There exists a variety of methods for setting the height of an iframe to match the height of its content. But I haven't found one that correctly handles the case of iframed documents containing elements with proportional heights ('vh' or '%'; correct me if I'm wrong). The problem is that, in a standard situation, any information sent to the iframe as regards to the proportional ...

    Updated 09-24-2018 at 07:36 PM by molendijk

    Categories
    Uncategorized
  3. Firing scripts on page load

    EDIT 02-12: I added some ameliorations to the tutorial and designated a 'best method' for firing load events.
    Many people think that putting a script at the end of the body section guarantees that it will fire because of its position in the document. While this is true in many cases, we can't rely on this because a script put at the end of the document starts to run as soon as the dom is ready (unless we inform it to wait using a timeout or another method). At this 'domready stage', there ...

    Updated 02-12-2018 at 10:51 PM by molendijk

    Categories
    Uncategorized
  4. Long right side toggle menus and the ugliness of double scrollbars

    All the right side toggle menus I've seen on the Internet show a vertical scrollbar appearing next to the vertical scrollbar of the window if both the page and the menu on it are long enough to have scrollbars. To take away this ugliness of double scroll bars appearing next to each other, we should make sure that the vertical scrollbar of a long right side toggle menu shows at the left side of the menu when the window has a vertical scrollbar too. When the window has no vertical scrollbar, the menu's ...
    Categories
    Uncategorized
  5. Document.write again

    I know, I know... We should not recommend the use of document.write (DW). But not all uses of it are necessarily bad. There are even instances where it is definitely useful, see this. And there's a solution for many problems that people relate to the use of DW. Here's my small contribution to a discussion that is not dead yet:

    DW is bad because it does not work in XHTML.
    Comment:
    XHTML is a dead duck, so consider changing your DOCTYPE.

    DW executed after ...

    Updated 05-10-2017 at 08:23 AM by molendijk

    Categories
    Uncategorized
Page 1 of 7 123 ... LastLast