Jump to content

[SOLVED] AJAX AND PAGINATION


dlebowski

Recommended Posts

Hello.  Below is my code for the .js portion of my ajax code that I have written.  Is there anyway to use pagination within this code?  Thanks for helping me out.

 

var xmlHttp

function updatelotslive(str, str2, str3, str4, str5, str6, str7, str8, str9, str10)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="updatelotslive.php"
url=url+"?ud_LotID="+str
url=url+"&ud_LotNumber="+str2
url=url+"&ud_LotTitle="+str3
url=url+"&ud_SellingPrice="+str4
url=url+"&ud_LotPaymentExempt="+str5
url=url+"&ud_Buyer="+str6
url=url+"&ud_OnlineOnsite="+str7
url=url+"&ud_AbsenteeBid="+str8
url=url+"&ud_SellerNumber="+str9
url=url+"&ud_LotAuctionDate="+str10
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
} 
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
//Internet Explorer
try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
}
return xmlHttp;
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.