View RSS Feed

All Blog Entries

  1. 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
  2. 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
  3. Spambot observation: Do spambots only hit the first form?

    A few years ago, I set up a web page that contained several different forms. I don't really know much about how spambots work (does anyone?) but, after a few weeks, it started taking hits - the usual junk about mail order brides and marketing advice, etc. The strange thing was that the spam only ever came in on the very first form - that is, via the form that appeared uppermost in the HTML - and it happened with too much predictability and regularity for it to just be coincidence.

    ...
  4. Seamless iframes

    There are many scripts on the Internet that aim to set the height of the iframe element to accommodate the contained document's height, so that the window scrollbars can be used instead of iframe scrollbars for a more seamless appearance. Some rather well-known scripts are those created by David Bradshaw (http://davidjbradshaw.com/iframe-resizer/example, jQuery based) and Dynamic Web Coding (http://www.dyn-web.com/tutorials/ifr...eight/demo.php). The DynamicDrive script (http://www.dynamicdrive.com/dynamici...iframessi2.htm) ...

    Updated 04-22-2017 at 08:19 AM by molendijk

    Categories
    Uncategorized
  5. Transferring videos from Google Drive to YouTube

    You can transfer videos from Google Drive to YouTube by sending them as email attachments, see, for example: https://www.oxhow.com/upload-youtube...m-google-drive. But when you use this method for transferring videos to YouTube, you cannot upload files larger than 25MB, since the maximum file size of an email attachment is this size. Also, I don't think you can upload videos from someone else's GoogleDrive to Youtube using the email-attachment method, even if you know the GoogleDrive-url ...
    Categories
    Uncategorized
Page 1 of 29 12311 ... LastLast