This is the same ajax script I always use, but for some reason it takes 5 minutes before it calls the data.
After five minutes the requist starts and is don in a sec.
Here's the code :
PHP Code:
<?php include("files/checklogin.php"); $query = mysql_query("SELECT * FROM `probleemtypen`"); $rows = mysql_num_rows($query); ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title> ICT HELPDESK | van den Udenhout Groep </title> <link rel="stylesheet" type="text/css" href="../style/main.css" />
<script lang="javascript"> <!-- //ajax requist script voor selectie vlakken var xmlhttp //Oproepen gegevens voor subtype function loadSub(str) { xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Your browser does not support AJAX!"); return; } var url="files/select_subtype_option.php"; url=url+"?q="+str; url=url+"&sid="+Math.random(); xmlhttp.onreadystatechange=stateChanged; xmlhttp.open("GET",url,true); xmlhttp.send(null); } function stateChanged() { if (xmlhttp.readyState==4) { document.getElementById("subDiv").innerHTML=xmlhttp.responseText; } } // function GetXmlHttpObject() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); } if (window.ActiveXObject) { return new ActiveXObject("Microsoft.XMLHTTP"); } return null; } --> </script> <meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> </head> <body> <div id="wrapper">
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?