Posts

Showing posts from May, 2015

JQuery : jQuery.noConflict(); Resolve the $ Conflict

Image
The JQuery library by design uses only two global namespace so that it would not conflict with other JavaScript libraries. $ - the dollar is used as a reference to JQuery namespace Also used by Prototype library, YUI and mootools jQuery - is also used to reference to jQuery namespace, this the more unique reference of the two options, but nobody really uses it So what do you do if you wanted to use jQuey and Prototype on the same page?  Well jQuery can concede the $ sign to the other libraries with the code jQuery.noConflict() function This sample code shows how jQuery gives up the $ sign to the JavaScript library Prototype <!DOCTYPE html> <head> <meta charset="UTF-8"> <title>JQuery No Conflict</title> <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.7.2.0/prototype.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="t

Installing The Northwind Sample Database From Microsoft

Image
The Northwind sample database is probably the most mention sample database of all time.  Most of the tutorials on the web uses the Northwind sample database as an example.  However, it's not as straight forward to add the Northwind database to your SQL Server instance as you may have think.  The reason is because the Northwind database was initially created for SQL Server 2000.  Therefore, most of the newer versions of SQL Server will throw an error when you tried to attach the .mdb file.  It is easier to run the SQL script that is provided with the download.  In this blog we will go over where to download the Northwind sample database, and how to add to your SQL Server instance using the SQL script. 1. Open your browser and type in the following URL in the address bar https://www.microsoft.com/en-us/download/details.aspx?id=23654 2.  Click on the "Download" button 3.  Save the SQL2000SampleDb.msi file to a location that you will remember in your PC 4.  Double click on th