<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5723028345622520051</id><updated>2012-02-16T04:27:30.901-08:00</updated><category term='what is DOM'/><category term='jquery'/><category term='common http response code in ajax'/><category term='javascript basic for beginner'/><category term='basic ajax'/><category term='ajax'/><category term='http response code 200'/><category term='tutorial'/><category term='response 0'/><category term='image thumbnail'/><category term='whois query'/><category term='bux.to'/><category term='image resizing php'/><category term='Retrieve PHP  retrieve $_GET variables'/><category term='paid to click'/><category term='Retrieve PHP Post variable'/><category term='document object module'/><title type='text'>PHP, AJAX, CSS, XHTML TUTORIAL</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ajax-php-xhtml-css.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ajax-php-xhtml-css.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ajax tutorial</name><uri>http://www.blogger.com/profile/00353884646569132704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5723028345622520051.post-756972127719801535</id><published>2008-03-16T03:45:00.000-07:00</published><updated>2008-03-16T03:54:23.198-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='whois query'/><title type='text'>Whois Query using PHP</title><content type='html'>&lt;?php&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;** Function: whois_query (PHP)&lt;br /&gt;** Desc: A little function to query some NIC databases.&lt;br /&gt;** Example: see below&lt;br /&gt;** Author: Jonas John&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;function whois_query($domain)&lt;br /&gt;{&lt;br /&gt;    // fix the domain name:&lt;br /&gt;    $domain = strtolower(trim($domain));&lt;br /&gt;    $domain = preg_replace('/^http:\/\//i', '', $domain);&lt;br /&gt;    $domain = preg_replace('/^www\./i', '', $domain);&lt;br /&gt;    $domain = explode('/', $domain);&lt;br /&gt;    $domain = trim($domain[0]);&lt;br /&gt;&lt;br /&gt;    // split the TLD from domain name&lt;br /&gt;    $_domain = explode('.', $domain);&lt;br /&gt;    $lst = count($_domain)-1;&lt;br /&gt;    $ext = $_domain[$lst];&lt;br /&gt;&lt;br /&gt;    // You find resources and lists&lt;br /&gt;    // like these on wikipedia:&lt;br /&gt;    //&lt;br /&gt;    // http://de.wikipedia.org/wiki/Whois&lt;br /&gt;    //&lt;br /&gt;    $servers = array(&lt;br /&gt;        "biz" =&gt; "whois.neulevel.biz",&lt;br /&gt;        "com" =&gt; "whois.internic.net",&lt;br /&gt;        "us" =&gt; "whois.nic.us",&lt;br /&gt;        "coop" =&gt; "whois.nic.coop",&lt;br /&gt;        "info" =&gt; "whois.nic.info",&lt;br /&gt;        "name" =&gt; "whois.nic.name",&lt;br /&gt;        "net" =&gt; "whois.internic.net",&lt;br /&gt;        "gov" =&gt; "whois.nic.gov",&lt;br /&gt;        "edu" =&gt; "whois.internic.net",&lt;br /&gt;        "mil" =&gt; "rs.internic.net",&lt;br /&gt;        "int" =&gt; "whois.iana.org",&lt;br /&gt;        "ac" =&gt; "whois.nic.ac",&lt;br /&gt;        "ae" =&gt; "whois.uaenic.ae",&lt;br /&gt;        "at" =&gt; "whois.ripe.net",&lt;br /&gt;        "au" =&gt; "whois.aunic.net",&lt;br /&gt;        "be" =&gt; "whois.dns.be",&lt;br /&gt;        "bg" =&gt; "whois.ripe.net",&lt;br /&gt;        "br" =&gt; "whois.registro.br",&lt;br /&gt;        "bz" =&gt; "whois.belizenic.bz",&lt;br /&gt;        "ca" =&gt; "whois.cira.ca",&lt;br /&gt;        "cc" =&gt; "whois.nic.cc",&lt;br /&gt;        "ch" =&gt; "whois.nic.ch",&lt;br /&gt;        "cl" =&gt; "whois.nic.cl",&lt;br /&gt;        "cn" =&gt; "whois.cnnic.net.cn",&lt;br /&gt;        "cz" =&gt; "whois.nic.cz",&lt;br /&gt;        "de" =&gt; "whois.nic.de",&lt;br /&gt;        "fr" =&gt; "whois.nic.fr",&lt;br /&gt;        "hu" =&gt; "whois.nic.hu",&lt;br /&gt;        "ie" =&gt; "whois.domainregistry.ie",&lt;br /&gt;        "il" =&gt; "whois.isoc.org.il",&lt;br /&gt;        "in" =&gt; "whois.ncst.ernet.in",&lt;br /&gt;        "ir" =&gt; "whois.nic.ir",&lt;br /&gt;        "mc" =&gt; "whois.ripe.net",&lt;br /&gt;        "to" =&gt; "whois.tonic.to",&lt;br /&gt;        "tv" =&gt; "whois.tv",&lt;br /&gt;        "ru" =&gt; "whois.ripn.net",&lt;br /&gt;        "org" =&gt; "whois.pir.org",&lt;br /&gt;        "aero" =&gt; "whois.information.aero",&lt;br /&gt;        "nl" =&gt; "whois.domain-registry.nl"&lt;br /&gt;    );&lt;br /&gt;&lt;br /&gt;    if (!isset($servers[$ext]))&lt;br /&gt;    {&lt;br /&gt;        die('Error: No matching nic server found!');&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    $nic_server = $servers[$ext];&lt;br /&gt;&lt;br /&gt;    $output = '';&lt;br /&gt;&lt;br /&gt;    // connect to whois server:&lt;br /&gt;    if ($conn = fsockopen ($nic_server, 43))&lt;br /&gt;    {&lt;br /&gt;        fputs($conn, $domain."\r\n");&lt;br /&gt;        while(!feof($conn))&lt;br /&gt;        {&lt;br /&gt;            $output .= fgets($conn,128);&lt;br /&gt;        }&lt;br /&gt;        fclose($conn);&lt;br /&gt;    }&lt;br /&gt;    else { die('Error: Could not connect to ' . $nic_server . '!'); }&lt;br /&gt;&lt;br /&gt;    return $output;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;&lt;br /&gt;---------------------&lt;br /&gt;Some example queries:&lt;br /&gt;---------------------&lt;br /&gt;&lt;br /&gt;print whois_query('jonasjohn.de');&lt;br /&gt;print whois_query('example.com');&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;print whois_query('example.org');&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5723028345622520051-756972127719801535?l=ajax-php-xhtml-css.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajax-php-xhtml-css.blogspot.com/feeds/756972127719801535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5723028345622520051&amp;postID=756972127719801535' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/756972127719801535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/756972127719801535'/><link rel='alternate' type='text/html' href='http://ajax-php-xhtml-css.blogspot.com/2008/03/whois-query-using-php.html' title='Whois Query using PHP'/><author><name>ajax tutorial</name><uri>http://www.blogger.com/profile/00353884646569132704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5723028345622520051.post-6474334870090540222</id><published>2008-03-06T10:06:00.000-08:00</published><updated>2008-03-06T10:17:35.818-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='image thumbnail'/><category scheme='http://www.blogger.com/atom/ns#' term='image resizing php'/><title type='text'>Create Image Thumbnail on the fly</title><content type='html'>Today im not in the mood to explain more about this function but if you have any question, dont hesitate, just ask me in the comment section. Thanks.&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;&lt;br /&gt;function image_create_thumb($filename, $width, $height)&lt;br /&gt;{&lt;br /&gt;        list($image["Width"], $image["Height"], $image["Type"]) = getimagesize($filename);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        switch($image["Type"])&lt;br /&gt;        {&lt;br /&gt;            case IMG_JPG:&lt;br /&gt;            case IMG_JPEG:&lt;br /&gt;                        $im_image = ImageCreateFromJPEG($filename);&lt;br /&gt;                        break;&lt;br /&gt;            case IMG_GIF:&lt;br /&gt;                        $im_image = ImageCreateFromGIF($filename);&lt;br /&gt;                        break;&lt;br /&gt;            case IMG_PNG:&lt;br /&gt;                        $im_image = ImageCreateFromPNG($filename);&lt;br /&gt;                        break;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        if($image["Width"] &gt; $image["Height"])&lt;br /&gt;        {&lt;br /&gt;                $scale = $width / $image["Width"];&lt;br /&gt;                $thumb_width = $width;&lt;br /&gt;                $thumb_height  = floor($image["Height"]*$scale);&lt;br /&gt;        }&lt;br /&gt;        else&lt;br /&gt;        {&lt;br /&gt;                $scale = $height / $image["Height"];&lt;br /&gt;                $thumb_height = $height;&lt;br /&gt;                $thumb_width  = floor($image["Width"]*$scale);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        $im_thumb = @ImageCreateTrueColor($thumb_width, $thumb_height) or die("Cannot Initialize new GD image stream");&lt;br /&gt;&lt;br /&gt;        ImageCopyResized($im_thumb, $im_image, 0, 0, 0, 0, $thumb_width, $thumb_height, $image["Width"], $image["Height"]);&lt;br /&gt;&lt;br /&gt;        ImageDestroy($im_image);&lt;br /&gt;        ImagePNG($im_thumb, $filename);&lt;br /&gt;        ImageDestroy($im_thumb);&lt;br /&gt;&lt;br /&gt;        return true;&lt;br /&gt;}//image_create_thumb($filename, $width, $height)&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5723028345622520051-6474334870090540222?l=ajax-php-xhtml-css.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajax-php-xhtml-css.blogspot.com/feeds/6474334870090540222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5723028345622520051&amp;postID=6474334870090540222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/6474334870090540222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/6474334870090540222'/><link rel='alternate' type='text/html' href='http://ajax-php-xhtml-css.blogspot.com/2008/03/create-image-thumbnail-on-fly.html' title='Create Image Thumbnail on the fly'/><author><name>ajax tutorial</name><uri>http://www.blogger.com/profile/00353884646569132704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5723028345622520051.post-423680393925347812</id><published>2008-03-05T09:15:00.000-08:00</published><updated>2008-03-05T09:17:50.931-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='image resizing php'/><title type='text'>PHP Image Resizer</title><content type='html'>Today i give you a PHP tutorial about how to resize an image using PHP as your web programming language.&lt;br /&gt;&lt;br /&gt;function resize_jpg($inputFilename, $new_side){&lt;br /&gt;        $imagedata = getimagesize($inputFilename);&lt;br /&gt;        $w = $imagedata[0];&lt;br /&gt;        $h = $imagedata[1];&lt;br /&gt;&lt;br /&gt;        if ($h &gt; $w) {&lt;br /&gt;                $new_w = ($new_side / $h) * $w;&lt;br /&gt;                $new_h = $new_side;&lt;br /&gt;        } else {&lt;br /&gt;                $new_h = ($new_side / $w) * $h;&lt;br /&gt;                $new_w = $new_side;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        $im2 = ImageCreateTrueColor($new_w, $new_h);&lt;br /&gt;        $image = ImageCreateFromJpeg($inputFilename);&lt;br /&gt;        imagecopyResampled ($im2, $image, 0, 0, 0, 0, $new_w, $new_h, $imagedata[0], $imagedata[1]);&lt;br /&gt;        return $im2;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Maybe this image resizing code using PHP is not the best of all but at least, it'll help you to do your job =)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5723028345622520051-423680393925347812?l=ajax-php-xhtml-css.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajax-php-xhtml-css.blogspot.com/feeds/423680393925347812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5723028345622520051&amp;postID=423680393925347812' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/423680393925347812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/423680393925347812'/><link rel='alternate' type='text/html' href='http://ajax-php-xhtml-css.blogspot.com/2008/03/php-image-resizer.html' title='PHP Image Resizer'/><author><name>ajax tutorial</name><uri>http://www.blogger.com/profile/00353884646569132704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5723028345622520051.post-4188722013931148200</id><published>2008-03-04T08:33:00.000-08:00</published><updated>2008-03-04T08:46:48.870-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Retrieve PHP Post variable'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='Retrieve PHP  retrieve $_GET variables'/><title type='text'>Retrieve data from $_GET array</title><content type='html'>$q = explode("&amp;",$_SERVER["QUERY_STRING"]);&lt;br /&gt;foreach ($q as $qi)&lt;br /&gt;{&lt;br /&gt;  if ($qi != "")&lt;br /&gt;  {&lt;br /&gt;    $qa = explode("=",$qi);&lt;br /&gt;    list ($key, $val) = $qa;&lt;br /&gt;    if ($val)&lt;br /&gt;      $$key = urldecode($val);&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;This code is similar to previous code but this one is for $_GET global variables. Good luck with your programming !!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5723028345622520051-4188722013931148200?l=ajax-php-xhtml-css.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajax-php-xhtml-css.blogspot.com/feeds/4188722013931148200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5723028345622520051&amp;postID=4188722013931148200' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/4188722013931148200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/4188722013931148200'/><link rel='alternate' type='text/html' href='http://ajax-php-xhtml-css.blogspot.com/2008/03/retrieve-data-from-get-array.html' title='Retrieve data from $_GET array'/><author><name>ajax tutorial</name><uri>http://www.blogger.com/profile/00353884646569132704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5723028345622520051.post-568828372983934741</id><published>2008-03-03T13:15:00.000-08:00</published><updated>2008-03-03T13:17:35.410-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Retrieve PHP Post variable'/><title type='text'>Retrieve data from $_POST array</title><content type='html'>/**&lt;br /&gt; * Retrieve PHP Post variable&lt;br /&gt; */&lt;br /&gt;reset ($_POST);&lt;br /&gt;while (list ($key, $val) = each ($_POST))&lt;br /&gt;{&lt;br /&gt;  if ($val){&lt;br /&gt;   addslashes($val);&lt;br /&gt;    $$key = $val;&lt;br /&gt;    $_SESSION['data_advertiser'][$key] = $val;&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;so let say you have $_POST['name']. After this code to access this variable , what you have to do is just use $name instead of $_POST['name'] !!! so easy right?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5723028345622520051-568828372983934741?l=ajax-php-xhtml-css.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajax-php-xhtml-css.blogspot.com/feeds/568828372983934741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5723028345622520051&amp;postID=568828372983934741' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/568828372983934741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/568828372983934741'/><link rel='alternate' type='text/html' href='http://ajax-php-xhtml-css.blogspot.com/2008/03/retrieve-data-from-post-array.html' title='Retrieve data from $_POST array'/><author><name>ajax tutorial</name><uri>http://www.blogger.com/profile/00353884646569132704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5723028345622520051.post-6234687715453624421</id><published>2008-02-29T07:46:00.000-08:00</published><updated>2008-02-29T07:53:42.681-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='paid to click'/><category scheme='http://www.blogger.com/atom/ns#' term='bux.to'/><title type='text'>Bux.to</title><content type='html'>Today, I dont want to talk about ajax or javascript whatsoever but i want to talk about PTC or Paid to Click programs. I know that there a lot of scam programs out there but it's not that all of them are scam. There are a few PZTC that really pay their users such as Bux.to&lt;br /&gt;&lt;br /&gt;You should try take a look at Bux.to. It's not so difficult to join and you can earn a little money from there. &lt;a href="http://www.bux.to/r=register.form"&gt;Click Here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5723028345622520051-6234687715453624421?l=ajax-php-xhtml-css.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajax-php-xhtml-css.blogspot.com/feeds/6234687715453624421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5723028345622520051&amp;postID=6234687715453624421' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/6234687715453624421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/6234687715453624421'/><link rel='alternate' type='text/html' href='http://ajax-php-xhtml-css.blogspot.com/2008/02/buxto.html' title='Bux.to'/><author><name>ajax tutorial</name><uri>http://www.blogger.com/profile/00353884646569132704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5723028345622520051.post-8100936079167532191</id><published>2008-02-26T21:27:00.000-08:00</published><updated>2008-02-26T21:38:30.597-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='common http response code in ajax'/><title type='text'>Common HTTP Response Codes</title><content type='html'>Before I told you about the problems that can occur if we working on local files. You can view it here at &lt;a href="http://ajax-php-xhtml-css.blogspot.com/2008/02/http-response-200-or-0.html"&gt;HTTP Response 200 or 0? &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Today, I'll give you the common HTTP response code that we can easily found in ajax environnement.&lt;br /&gt;&lt;br /&gt;200 OK This response code is returned if the document or file in question is found and served correctly.&lt;br /&gt;&lt;br /&gt;304 not modified - This response code returned if a browser has indicated that it has a local, cached copy, and the server's copy has not changed from this cached copy.&lt;br /&gt;&lt;br /&gt;401 Unauthorized - This reponse code id generated if the request in question requires authorization to access the requested document.&lt;br /&gt;&lt;br /&gt;403 Forbidden - This response code is returned if the requested document does not have proper permissions to be accessed by the requestor.&lt;br /&gt;&lt;br /&gt;404 Not Found - This response code is sent back if the file that is attempting to be accessed cound not be found&lt;br /&gt;&lt;br /&gt;500 Internal Server Error - This code will be returned if the server that is being contacted has a problem&lt;br /&gt;&lt;br /&gt;503 Service Unavailable - This response code is generated if the server is too overwhelmed to handle the request&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5723028345622520051-8100936079167532191?l=ajax-php-xhtml-css.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajax-php-xhtml-css.blogspot.com/feeds/8100936079167532191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5723028345622520051&amp;postID=8100936079167532191' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/8100936079167532191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/8100936079167532191'/><link rel='alternate' type='text/html' href='http://ajax-php-xhtml-css.blogspot.com/2008/02/common-http-response-codes.html' title='Common HTTP Response Codes'/><author><name>ajax tutorial</name><uri>http://www.blogger.com/profile/00353884646569132704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5723028345622520051.post-4814392654180587493</id><published>2008-02-26T16:08:00.000-08:00</published><updated>2008-02-26T16:19:18.424-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='document object module'/><category scheme='http://www.blogger.com/atom/ns#' term='javascript basic for beginner'/><category scheme='http://www.blogger.com/atom/ns#' term='what is DOM'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><title type='text'>What is DOM Document Object Module in Javascript.</title><content type='html'>In short, it's the tree structure of a given document. Let see an example of a DOM structure.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.mejuke.com/out.php/i1062_table.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px;" src="http://www.mejuke.com/out.php/i1062_table.JPG" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If we want to see the graphical DOM representation of this code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.w3.org/TR/DOM-Level-2-Core/images/table.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px;" src="http://www.w3.org/TR/DOM-Level-2-Core/images/table.gif" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;resources : http://www.w3.org/TR/DOM-Level-2-Core/introduction.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5723028345622520051-4814392654180587493?l=ajax-php-xhtml-css.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajax-php-xhtml-css.blogspot.com/feeds/4814392654180587493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5723028345622520051&amp;postID=4814392654180587493' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/4814392654180587493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/4814392654180587493'/><link rel='alternate' type='text/html' href='http://ajax-php-xhtml-css.blogspot.com/2008/02/what-is-dom-document-object-module-in.html' title='What is DOM Document Object Module in Javascript.'/><author><name>ajax tutorial</name><uri>http://www.blogger.com/profile/00353884646569132704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5723028345622520051.post-1154830520301390884</id><published>2008-02-26T11:49:00.000-08:00</published><updated>2008-02-26T12:01:56.346-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='http response code 200'/><category scheme='http://www.blogger.com/atom/ns#' term='basic ajax'/><category scheme='http://www.blogger.com/atom/ns#' term='response 0'/><title type='text'>HTTP Response 200 or 0?</title><content type='html'>&lt;pre class="php"&gt;&lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;var&lt;/span&gt; xmlhttp;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;window.ActiveXObject&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;br /&gt;xmlhttp = &lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;new&lt;/span&gt; ActiveXObject&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"Microsoft.XMLHTTP"&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt; &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;br /&gt;xmlhttp = &lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;new&lt;/span&gt; XMLHttpRequest&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;function&lt;/span&gt; makerequest&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;serverPage, objID&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;var&lt;/span&gt; obj = document.getElementById&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;objID&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;var&lt;/span&gt; url = serverPage+&lt;span style="color: rgb(255, 0, 0);"&gt;"?weight="&lt;/span&gt;+document.getElementById&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;'weight'&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;.value;&lt;br /&gt;xmlhttp.open&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"GET"&lt;/span&gt;, url&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;br /&gt;xmlhttp.onreadystatechange = &lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;function&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;xmlhttp.readyState == &lt;span style="color: rgb(204, 102, 204);"&gt;4&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;xmlhttp.status == &lt;span style="color: rgb(204, 102, 204);"&gt;200&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;br /&gt;obj.value = xmlhttp.responseText;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;xmlhttp.send&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;null&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Look like a normal ajax request right? but do you believe that this code&lt;br /&gt;won't work if you are sending the request to a local file? try me. =)&lt;br /&gt;&lt;br /&gt;The fact is, if you are working on local files, use&lt;br /&gt;xmlhttp.status == &lt;span style="color: rgb(204, 102, 204);"&gt;0 &lt;span style="color: rgb(255, 255, 255);"&gt;instead of&lt;/span&gt;&lt;span style="color: rgb(255, 255, 255);"&gt; &lt;/span&gt;&lt;/span&gt;xmlhttp.status == &lt;span style="color: rgb(204, 102, 204);"&gt;200&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;But my solution to put both code together so that we can connect to whatever file we want.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;This is my solution.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;var&lt;/span&gt; xmlhttp;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;window.ActiveXObject&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;br /&gt;xmlhttp =&lt;span style="color: rgb(204, 204, 204);"&gt; &lt;/span&gt;&lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;new&lt;/span&gt; ActiveXObject&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"Microsoft.XMLHTTP"&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt; &lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;br /&gt;xmlhttp = &lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;new&lt;/span&gt; XMLHttpRequest&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;function&lt;/span&gt; makerequest&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;serverPage, objID&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;var&lt;/span&gt; obj = document.getElementById&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;objID&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;var&lt;/span&gt; url = serverPage+&lt;span style="color: rgb(255, 0, 0);"&gt;"?weight="&lt;/span&gt;+document.getElementById&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;'weight'&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;.value;&lt;br /&gt;xmlhttp.open&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;"GET"&lt;/span&gt;, url&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;br /&gt;xmlhttp.onreadystatechange = &lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;function&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;xmlhttp.readyState == &lt;span style="color: rgb(204, 102, 204);"&gt;4&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;xmlhttp.status == &lt;span style="color: rgb(204, 102, 204);"&gt;200&lt;/span&gt; || xmlhttp.status == &lt;span style="color: rgb(204, 102, 204);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;{&lt;/span&gt;&lt;br /&gt;obj.value = xmlhttp.responseText;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;xmlhttp.send&lt;span style="color: rgb(102, 204, 102);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(204, 204, 204); font-weight: bold;"&gt;null&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;}&lt;/span&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 204, 102);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5723028345622520051-1154830520301390884?l=ajax-php-xhtml-css.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajax-php-xhtml-css.blogspot.com/feeds/1154830520301390884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5723028345622520051&amp;postID=1154830520301390884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/1154830520301390884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/1154830520301390884'/><link rel='alternate' type='text/html' href='http://ajax-php-xhtml-css.blogspot.com/2008/02/http-response-200-or-0.html' title='HTTP Response 200 or 0?'/><author><name>ajax tutorial</name><uri>http://www.blogger.com/profile/00353884646569132704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5723028345622520051.post-1846713378655050508</id><published>2008-02-23T01:48:00.000-08:00</published><updated>2008-02-23T02:37:31.542-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jquery'/><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><title type='text'>Javascript (ajax) Framework</title><content type='html'>There are various javascript framework that you can choose depending on what you're working on. If you want to make special effects like drag and drop, sliding effect etc you could choose script.aculo.us library. But to be able to work on this library, you must include prototype framework. You can search in google to download these libraries.&lt;br /&gt;&lt;br /&gt;But i realize that jQuery framework is more powerful framework. I dont know what you think about this..&lt;br /&gt;&lt;br /&gt;In the next post, i'll commence the tutorial !!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5723028345622520051-1846713378655050508?l=ajax-php-xhtml-css.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ajax-php-xhtml-css.blogspot.com/feeds/1846713378655050508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5723028345622520051&amp;postID=1846713378655050508' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/1846713378655050508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5723028345622520051/posts/default/1846713378655050508'/><link rel='alternate' type='text/html' href='http://ajax-php-xhtml-css.blogspot.com/2008/02/javascript-ajax-framework.html' title='Javascript (ajax) Framework'/><author><name>ajax tutorial</name><uri>http://www.blogger.com/profile/00353884646569132704</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
