August 2009 Entries

jQuery SELECT does not show selected option

Scenario: You have a drop down box or list box in your jQuery jqGrid plugin and you edit the row via the form edit modal dialog but the form fails to show your selected option(s) in the drop down or list box. The reason: The jqGrid SELECT element binds the selected option(s) innerHTML (not the value) with the name value in the colModel. Example: In the JavaScript file I have a function that I call to setup the grid: function jqGridAccountContact(item, listURL, editURL, $rows, hideGrid) { //get all ......

jQuery function to truncate long text

The scenario: You have some text that is too long in for example a textarea and want to be able to truncate it client-side and only display a maximum amount of characters. You also want to add the ability for the user to dynamically expand the text by clicking the "more..." link appended to the text. The concern: This is not Ajax enabled and the entire text is rendered to the client and the text extending beyond the maximum is hidden. If the text you want to hide is very large it may suffice the ......

Free and trusted PC protection

Some free software downloads to help protect your home PC that I have used and can recommend: CLAMWIN - free anti-virus http://www.clamwin.com/cont... AVG - free anti-virus http://download.cnet.com/AV... Windows Defender - protects aganist spyware http://www.microsoft.com/do... ......