View RSS Feed

Uncategorized

Entries with no category

  1. A Client Side Way of Getting PHP into HTML

    This is pretty obvious, I suppose. I decided to post it anyway.
    The standard way of getting PHP output into a HTML file (that you don't want to give the PHP extension) is to configure the server to interpret HTML files as PHP. But your web host may not support the htaccess file(s) needed for this. No worries, there's a client side way of getting PHP output into HTML. Just put the following lines where you want the output to display in your HTML file (and don't forget to reference the jQuery ...
    Categories
    Uncategorized
  2. Iframes on iOS

    On iOS, a line like:
    Code:
    <iframe src="http://www.dynamicdrive.com" style="position: relative; width: 300px; height: 300px" frameborder="0"></iframe>
    won't produce a scrollable iframe having the height specified above, but an iframe whose height is automatically adapted to its contents. What scrolls, then, is not the iframe on the page, but the page itself.

    There's a way to force iOS to behave like you would expect. All you have to ...
    Categories
    Uncategorized
  3. Display: table-cell in css-tables

    I learnt a few things from this thread, as far as display: table-cell in css-tables is concerned. Beverleyh's info was highly useful. I experimented a little bit further with table-cells and put my findings in a small document made for personal use. Then I thought it might be useful to others too, so here it is.
    Categories
    Uncategorized
  4. Emulating the HTML5 seamless iframe attribute

    There are many scripts that present a method for setting the iframe's height to match its contents. But I looked in vain for a script that integrates the iframe in a completely seamless way into the containing document. So I tried to write a script for emulating seamless iframes myself.
    My seamless iframes are competely indistinguishable from the surrounding text/content and inherit their css from the main document. All the code is put in the main document. No special code required in the ...
    Categories
    Uncategorized
  5. How to open a new tab together with text or code 'of my choice'

    I knew that it is possible to programmatically force the browser to open a new window instead of a new tab, or the other way round. But I didn't know until now how to open a new tab together with text or code 'of my choice'.
    The text or code we may want to 'add' to a new tab must have the format of a string. The more complex the text or code we want to add, the bigger the danger of making mistakes in writing the string.
    So I decided to create a HTML-to-javascript-converter specially ...
    Categories
    Uncategorized
Page 1 of 5 123 ... LastLast