Pastes:104575  Views:2159311 

Languages:

   ASP
   C#
   C++
   HTML
   Java
   PHP
   VB.NET
   Visual Basic 6

more languages available...


Looking to freelance?


Warning: file_get_contents(http://www.getafreelancer.com/affiliates/itsdan/6f.txt) [function.file-get-contents]: failed to open stream: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? in /home/nmp/public_html/support/googlereferrals.php on line 21
( bids)

Source: GetAFreelancer.com


Delphi 3D Engine

 

 

 

 

 

 

Here's the requested code from the pastebin:

Wrap Lines   Use Line Numbers
var xmlHttp
 
var layername
 
function GetRecordSet(query)
 
{
 
xmlHttp=GetXmlHttpObject()
 
layername = "Layer3"
 
if(xmlHttp==null)
 
{
 
alert("Your browser is not supported?")
 
}
 
var url="get_records.php"
 
url=url+"cmd=GetRecordSet&query="+query;
 
url=url+"&sid="+Math.random()
 
xmlHttp.onreadystatechange = FetchComplete(layername);
 
xmlHttp.open("GET",url,true)
 
xmlHttp.send(null)
 
}
 
function GetAuctionData(pk)
 
{
 
xmlHttp=GetXmlHttpObject()
 
layername = "Layer2"
 
if(xmlHttp==null)
 
{
 
alert("Your browser is not supported?")
 
}
 
var url="get_auction.php?"
 
url=url+"cmd=GetAuctionData&pk="+pk;
 
url=url+"&sid="+Math.random()
 
xmlHttp.onreadystatechange = FetchComplete(layername);
 
xmlHttp.open("GET",url,true)
 
xmlHttp.send(null)
 
}
 
function FetchComplete(layer)
 
{
 
if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 
{
 
document.getElementById(layer).innerHTML=xmlHttp.responseText
 
}
 
if(xmlHttp.readyState==1 || xmlHttp.readyState=="loading")
 
{
 
document.getElementById(layer).innerHTML="loading"
 
}
 
}
 
function GetXmlHttpObject()
 
{
 
    var xmlHttp=null;
 
    try
 
    {
 
        xmlHttp=new XMLHttpRequest();
 
    }catch (e)
 
    {
 
 
 
        try
 
        {
 
                xmlHttp =new ActiveXObject("Microsoft.XMLHTTP");
 
        } 
 
        catch (e) {}
 
 
 
    }
 
return xmlHttp;
 
}
Syntax Highlighting:  



Copyright 2007 - NoMorePasting.com