Hi all!
I have trouble getting this work for a long time and I never found a solution. Please help me so i can get to the next step, very tired of this problem.
I have a button which when i click on it goes to a function which shows a Div, but when i add an Ajax or FileSystemObject syntax in the same function, the show/hide doesnt work anymore.
Example:
When i run this code above, the Divobject never actually appears.Code:<script> function showhide() { document.getElementById("divobject").style.visibility="visible"; xmlhttp.open("POST","example2.php",true); xmlhttp.onreadystatechange = handleServerResponse; xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlhttp.send("email_box="+ email_box.value +"&password_box="+ password_box.value +"&provider_box="+provider_box.value); } </script>
What is the problem that is causing it and what is the solution?
Please help!![]()


Reply With Quote

Bookmarks