Categories

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 to [...]

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 [...]

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 was [...]

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 to [...]

Firefox Plugins: My recommendations

Today, a dear friend of mine asked me to send the list of plugins I use in Firefox along with details on what they do. I thought I should post it here for others as well.

So, here are some of the plugins I frequently use. Please feel free to post your recommendations as well.

1. Firebug

A nice [...]