Jump to content

Ajax Request Not Working


ShadowMage
 Share

Recommended Posts

I have an AJAX request that queries a database. Problem is, the records aren't being found. Am I sending the request properly?

postParams = "QuoteNum="+tmpQuote+"&SetNum="+tmpSet+"&Type="+tmpType; //+"&RevNum="+tmpRev;httpRequest.open("POST","/SkyPrice/Scripts/AJAX_Requests/GetDtlInfo.php",true);httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded")httpRequest.send(postParams);

I know it's accessing the PHP file because it spits out the text it's supposed to if no record is found. Trouble is I know the records exist in the database. It's just not finding them.Help please?Thanks,jkloth

Link to comment
Share on other sites

Ah found the problem. The quote numbers look like this "99999-9" and JS was evaluating it as a mathematical expression.I don't know why, but I always seem to find the answers right after I post here. Sorry, for wasting space.Thanks, Ingolme, for your response.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...