PHP Classes

File: js/search.js

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Simple PHP Blog Script   js/search.js   Download  
File: js/search.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP Blog Script
Manage blog articles stored in a MySQL database
Author: By
Last change:
Date: 2 years ago
Size: 966 bytes
 

Contents

Class file image Download
function showHint(str) { if (str.length == 0) { document.getElementById("txtHint").innerHTML = ""; return; } else { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("txtHint").innerHTML = this.responseText; } }; xmlhttp.open("GET", "include/search.php?title=" + str, true); xmlhttp.send(); } } $(document).ready(function(){ $("#show").click(function(){ $(this).hide(function() { $("#hide").show(function () { $(this).click(function () { $("#nav").slideUp(); $(this).hide(function () { $("#show").show(); }) }) }); $("#nav").slideDown(); }); }); });