PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of samushi   Weather Kosovo   example.php   Download  
File: example.php
Role: Auxiliary data
Content type: text/plain
Description: Class Example
Class: Weather Kosovo
Retrieve location weather information from Google
Author: By
Last change:
Date: 13 years ago
Size: 1,348 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#wait").hide(); }); function rez(){ $("#rezultati").hide(); var qyteti = $("#qyteti").val(); if(qyteti !==""){ $.ajax({ url: 'indexLoad.php?qyteti='+qyteti, beforeSend: function() { $('#wait').show(); }, complete: function() { $('#wait').hide(); }, success: function(data) { $("#rezultati").show(); $('#rezultati').html(data); } }); }else{ alert("Please fill!!"); } } </script> </head> <body> <div style="border: red 2px solid; width: 380px;margin:10px;padding:5px; text-align: center; background-color: #FFFF00; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold;">Duke shenuar qytetin dhe shtetin shembull (Pristina, Kosovo)</div> <input id="qyteti" type="text" name="qyteti"/> <input type="button" value="OK" onclick="javascript: rez();"> <div id="wait"><img src="loading.gif"></div> <div id="rezultati"> </div> </body> </html>