rafael.html

Gesponsorde koppelingen

PHP script bestanden

  1. rafael.html
  2. test.php

« Lees de omschrijving en reacties

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://github.com/DmitryBaranovskiy/raphael/blob/master/raphael-min.js?raw=true"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="application/javascript">
var paper;
var circle;
function LoadPostcodeChecker(form){
    if (window.XMLHttpRequest){
          xmlhttp=new XMLHttpRequest();
      } else {
          xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp.open("GET","test.php?p="+form.test.value,false);
    xmlhttp.send();
    var text = xmlhttp.responseText;
    $('#output').html(text);
    if(text.indexOf("OK") > -1){
        rect.animate({fill: 'green'},1000);
    } else {
        rect.animate({fill: 'red'},1000);
    }
}
function OnLoad(){
    paper = Raphael("notepad",155,50);
    rect = paper.rect(0,0,155,10);
    rect.attr("fill","yellow");
    rect.animate({height: 50},2000,"bounce");
}
</script>
<title>Untitled Document</title>

</head>

<body onload="OnLoad();">
<div id="test"><form id="testform" action="" method="get">
<input style="width: 150px;" id="test" name="test" type="text" onkeyup="LoadPostcodeChecker(this.form);" />
</form></div>
<div id="notepad">
</div>
<div id="output"></div>
</body>
</html>

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.