function disableEnterKey(e) {
var key;
if (window.event)
key = window.event.keyCode; //IE
else
key = e.which; //firefox
if (key == 32)
return false;
else
return true;
}
function disableEnterKey(e) {
var key;
if (window.event)
key = window.event.keyCode; //IE
else
key = e.which; //firefox
if (key == 32)
return false;
else
return true;
}
function getQueryStringFromURL(key)
{
var queryString = window.location.search;
var subQrString = queryString.substring(1);
var arrQueryString = new Array();
var arr = subQrString.split(‘&’);
var index = -1;
for (var i=0;i<arr.length;i++)
{
index = arr[i].indexOf(‘=’);
if (key == arr[i].substring(0, index).toUpperCase())
{
return arr[i].substring(index + 1);
}
}
return null;
}
SQL Query
You can use a simple query in sql server 2005 to get the modified procedures from a particular date. You just need to specify the date in the query.
Try it out !!!
SELECT name , modify_date FROM sys.objects
WHERE type = ‘P’ AND modify_date >= ‘2011-11-24’ order by name
In the same way, you can retreive the modified tables also
SELECT name , modify_date FROM sys.objects
WHERE type = ‘U’ AND modify_date >= ‘2011-11-24’ order by name
AJAX is an acronym for Asynchronous JavaScript And XML.
I will start with a brief introduction of Ajax.
AJAX is an acronym for Asynchronous JavaScript And XML.
Using JavaScript technology, an HTML page can asynchronously make calls to the server from which it was loaded and fetch content that may be formatted as XML documents, HTML content, plain text, or JavaScript Object Notation (JSON). The JavaScript technology may then use the content to update or modify the Document Object Model (DOM) of the HTML page.
Web pages become more responsive using Ajax by exchanging data with the web server behind the scenes, instead of reloading an entire web page each time a user makes a change. In simple words, we can say that Ajax is used to asynchronously get the information from the server and update only that area of the web page where this information fetched needs to be displayed, avoiding refresh of the entire page.
From the above diagram, we can summarize the steps to send an asynchronous call to the server.
1. Some client event occurs (Javascript call to the server)
2. An XMLHttpRequest object is created and configured.
3. An XMLHttpRequest makes a call.
4. The web server will exchange the data from the data stores.
5. Response is received from the web server and we can further handle the response accordingly.
Now, we will go with the details of this with the help of a simple application.
Step 1 : Create an HTML page with the following code
Step 2 : Create a Javascript file (save this file as request.js)
In this step, we have to create and configure the XMLHttpRequest object.
The XMLHttpRequest object is used to exchange data with a server behind the scenes. XMLHttpRequest object can be implemented in two ways, ActiveXObject is Internet Explorer specific, and XMLHttpRequest works with other browsers. So a check is made before creating the object, like this,
Now write another function to execute the XMLHttpRequest object