javascript - readyState does not get past 1 -
is trying to insert data into XML by Javascript open () function.
but the website is not the last 1,
below JavaScript code
function addItem () {var name = document.getElementById ( 'Iname'). Values; Var price = document.getElementById ('Iprice') value; Var quantity = document. GetElementById ('Iquantity'). value; Var Description = document.getElementById ('ecommerce'). Values; XHRObject.open ("GET", "listing.php", true); XHRObject.onreadystatechange = function () {if (xHRObject.readyState == 4 and amp; xHRObject.status == 200} {document.getElementById ( 'Information'). InnerHTML = xHRObject.responseText; xHRObject.send (void);} }}
I do not know that it is an error with PHP, but it is very big, so I will post it only when I need to.
it was an error with the browser functionality, worked fine in Firefox.
Comments
Post a Comment