Advanced Search

View RSS Feed

molendijk

  1. Replacing iframe attributes with javascript (HTML5)

    I was working the other day on a script for setting the height of an iframe to match the height of its content and noticed that under certain circumstances the iframe gets its scroll bars 'back' when it shouldn't. This happens mainly when the iframe is given a very small width. Overflow: hidden solves the problem in Firefox (most of the time), but not in IE. This browsers needs scrolling="no", which also works in non-IE. However, attributes like scrolling="no" and frameborder="no" ...

    Updated 01-12-2012 at 09:36 AM by molendijk (Corrections in text)

    Categories
    Post a JavaScript
  2. Select boxes having javascript in the options

    In non-IE except Google Chrome, we can call functions from inside a select box by putting things like the following in the options:
    <option value="bla" onclick="some_function()"></option>
    <option value="bla" onclick="window.open('http://www.google.com')"></option>
    etc.

    This is not possible in IE and Google Chrome. In an earlier attempt to solve the problem, I created a script based on the idea that ...

    Updated 12-01-2011 at 08:46 AM by molendijk (Corrections in text)

    Categories
    JavaScript & Ajax
  3. Deferred document.write

    While surfing on the Internet I found this page on how to pass data from one page to another. After a while, I realized that the script used on the page actually contains a technique (implicitly) for deferring document.write. Just for the fun of it, I modified the script so as to have some easy ways of dynamically inserting internal and external content into a given div via document.write. Here it is:
    Code:
    <script type="text/javascript">
    function HttpRequest(url){
    var pageRequest
    ...

    Updated 10-31-2011 at 06:05 PM by molendijk (Correction)

    Categories
    JavaScript & Ajax
  4. A better Iframe Shim

    The 'iframe shim technique' lets us overlay a div over windowed elements such as flash objects, select boxes and applets. The trick is to have the div accompanied by an iframe that must have exactly the same size and position as the div, whose z-index must be higher than the iframe's z-index. The windowed element itself must have a lower z-index and the iframe should have a background-color. Here's an example of how to have a div overlay a flash object:

    <iframe style="position: ...

    Updated 10-03-2011 at 09:57 AM by molendijk (Correction in text)

    Categories
    JavaScript & Ajax
  5. Broadcast your YouTube-playlists

    People using YouTube-playlists do so on their YouTube-channels, most of the time. But we don't need YouTube to broadcast our YouTube-playlists. We only need YouTube to create them and to determine our playlist-number(s). If you want to broadcast your playlists outside any channel, do the following.

    Go to http://www.youtube.com/my_videos. (You have to create a YouTube account if you are 'new').
    Create a playlist and add videos to it by clicking on 'add videos', or simply add ...

    Updated 07-19-2011 at 07:55 PM by molendijk

    Categories
    Uncategorized
Page 3 of 6 FirstFirst 12345 ... LastLast