DEANO.ME

HTML

 

Recently I was trying to fix a website that needed to run PHP script from within HTML files, the site originally used a htaccess rule to set up html files so they were executed just like php files but this had stopped working. The problem is, there are many different methods for defining file extensions […]

 

I’ve seen allot of developers requesting the ability to resize a iFrame so that the content in the iFrame fits in the frame without any scroll bars, but also to adjust the height dynamically so that is always fits the height of the internal content, which is useful for iFrames who’s content changes often or […]

 

Being able to parse HTML with PHP is very important if you need to scrape data from a website or add/remove parts of a html document. Fortunately this is extremely easy with Simple HTML DOM, this 46KB include is a miracle script that enables you to read HTML files into an object which you can […]

 

Quite a few years ago I was having difficulty with sending HTML emails, on some clients they worked fine but for others they would come through all garbled. so I decided to research a correct approach, which I implemented into a function. A little while later I wanted to also send file attachments in the […]

 

This one has been causing me to rip my hair out, literally! So here is the scenario… You have an element in your DOM that contains some text, you wish to fetch that text and set it as the page title dynamically. So thinking this is the easy part of your JavaScript for today, you […]

 

Anyone looking to disable the Auto Complete drop down that appears when using an input box with the same name more than once can look no further. In your HTML all you need to do is specify autocomplete="off" on each input box you wish to disable auto-completion. Example <input type=”text” name=”email” value=”” autocomplete="off"> However you […]