Tuesday, July 23, 2013

Find previous td in JQuery

<pre class="brush: js">// Comment
<table>
<tr><td><asp:Label ID="lblAmt" runat="server"  CssClass="jqHDHP">5.00</asp:Label ID><td> </td><td><asp:Label ID="lblTotal" runat="server"  CssClass="jqNet">5.00</asp:Label ID></td></td></tr></table> 

// In this Jquery snippet we will loop over  total label (jqNet) & find the value of Amount label which is previous to previous td of total label
//var sNet = $(this).html(); 
 alert(total); });
 alert(total);
 });
 $('.jqNet').each(function () {
 var total = parseFloat($(this).closest('td').prev().closest('td').prev().find('.jqHDHP').html()); 
}
</pre> 

Monday, July 1, 2013

Windows: Fix C:\Progra~1\Google\GOOGLE~2\GOEC62~1.DLL Bad image error message on windows application startup

Download the Autoruns utility  http://live.sysinternals.com/autoruns.exe and Run the apllication (as prompted).
Go to the "AppInit" tab  then search for a file with something like "\GOEC62~1.DLL. Or Browse~1.dll
Right click on this file, and Delete.

Restart the system & error has been fixed