Jump to content

Ajax Request Not Working


ShadowMage

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...