Sunday, July 22, 2012

Detecting Screen Height in jquery

$(window).height()

Tuesday, July 10, 2012

Adding and Removing Table Using Jquery

http://forum.jquery.com/topic/adding-removing-rows-from-table

Thursday, May 24, 2012

Jquery pop up boxes

http://www.shadowbox-js.com/index.html  //can use for youtube
http://lokeshdhakar.com/projects/lightbox2/

Sunday, May 6, 2012

The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine

You need to run Access database applications in a 32 bit asp.net application pool.  You do that via your IIS admin.

Open IIS manager, select Application Pools, select the application pool you are using, click on Advanced Settings in the right-hand menu.  Under General, set "Enable 32-Bit Applications" to "True".






http://social.expression.microsoft.com/Forums/en-US/web/thread/2111c297-fab8-482b-9439-53b1464b782e

Sunday, February 19, 2012

z-index problem in IE7

Add the following code,  so menu will be show all over the object.
$(function() {
    var zIndexNumber = 1000;
    $('div').each(function() {
        $(this).css('zIndex', zIndexNumber);
        zIndexNumber -= 10;
    });
    });

From http://www.vancelucas.com/blog/fixing-ie7-z-index-issues-with-jquery/

Sunday, February 5, 2012

Delete all tables including foreign key

Deleting all table
exec sp_MSforeachtable "DROP TABLE ? PRINT '? dropped' "

If cannot delete because of foreign key
1. run

SELECT *
FROM sys.foreign_keys
WHERE referenced_object_id = object_id('user')

2. run and copy the result
SELECT
    'ALTER TABLE ' + OBJECT_NAME(parent_object_id) +
    ' DROP CONSTRAINT ' + name
FROM sys.foreign_keys
WHERE referenced_object_id = object_id('user')

3. run copy lines

Sunday, January 8, 2012

Removing shadow from input box for mac browser

You need to add "-webkit-appearance: none;" to input box's css
eg.
input,textarea{
margin:0;
outline:0;
font-family:inherit;
font-size:inherit;
color:inherit;
-webkit-appearance: none;
}