Login To InderWeb ! Just Play !

Username:
Password:

UserSubmittedComments

Ajax

304 code in response not modified

10.3.5 304 Not Modified

If the client has performed a conditional GET request and access is
allowed, but the document has not been modified, the server SHOULD
respond with this status code. The 304 response MUST NOT contain a
message-body, and thus is always terminated by the first empty line
after the header fields.

The response MUST include the following header fields:

What's jQuery how to use jquery

Jquery is lightweight Java Script Library that provides functionality for may events in just few lines of code.To use jquery you must download first the jquery library file.

 You can download the latest version -- 1.2.6 the latest version from jquery site.

Functionality And Working Of Jquery :-

response codes from server

In coding often we have to check for ststus of any link and given site.We may need this in CURl or ajax mostely.We have following codes which indicate different ststus from server.

[Informational 1xx]
100="Continue"
101="Switching Protocols"

[Successful 2xx]
200="OK"
201="Created"
202="Accepted"
203="Non-Authoritative Information"
204="No Content"
205="Reset Content"
206="Partial Content"

[Redirection 3xx]
300="Multiple Choices"
301="Moved Permanently"
302="Found"
303="See Other"
304="Not Modified"
305="Use Proxy"
306="(Unused)"
307="Temporary Redirect"

Ajax request for google search results CURL

This code can be used to retrieve Google results for a keyword using ajax.

//This section will be excuted for ajax request and can be placed in seperate file
if(isset($_REQUEST['search']))
{
$ch = curl_init();
// set URL and other appropriate options
$result_cnt=10; //can be changed
$search=$_REQUEST['search']?$_REQUEST['search']:"";
$url="http://www.google.co.in/search?num=$result_cnt&hl=en&safe=off&q={$search}";

curl_setopt($ch, CURLOPT_URL, $url);

//Becoz we dont want to show result by default

Syndicate content

Popular Tags

tags in Web Links