Categories

SmartDos - Adobe Air based DOS Console

Adobe Air based DOS console that uses the standard IO to read and write data. It support all DOS commands and also allows shortcuts to different console based applications as well as saving the console data to a file. [...]

innerHTML issue in IE

There are number of articles on internet that talk about the fix for the innerHTML issues in IE. some are

http://support.microsoft.com/kb/276228

http://domscripting.com/blog/display/99

None of these work when you try to insert javascript into the <script> tags. Thats because all these solutions talk about using a wrapper <div> for the content and it won’t work if you are trying [...]

Unclosed <P> before <form> breaks form submit in IE when using jQuery

If you are facing issues with form submits using jQuery in IE because of unclosed <P> tags.

Try this:

var form = $(document).find(“form”);

var frm = form.parent().html();

if(frm.toLowerCase().indexOf(‘form’) > -1 && frm.toLowerCase().indexOf(‘/form’) == -1) {
var frmTag = frm.substring(frm.toLowerCase().indexOf(‘<form’), frm.toLowerCase().indexOf(‘>’)+1);
var rest = frm.substring(frm.toLowerCase().indexOf(‘>’)+1);
form.parent().remove();
form.before(frmTag);
form.prepend(rest);
}

jQuery.append() Behaviour

jQuery.append() behaves a differently in different situations. It sometimes moves the contents from the DOM to the new location where it is appended and sometimes it clones it (keeping a copy of the dom element in its original location). I stumbled upon this when trying to fix an issue with <form> submit. The content I [...]

Time Tracking System (updated)

Filling up the timesheet never interested me and the thought of remembering what I did through out the day and putting time against each one of them was a pain. I always wished if there is an easier way to do it or in a way automate this redundant task. There are many tools available [...]