Click here to Skip to main content
15,666,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
JavaScript
function account_verify_success(data){
	console.log('response:'+data);
	var response = JSON.parse(data);
	if (response.result == "ok") {
			tok = response.tok;
		
		console.log('ID check through');
			send_user_login_to_ap_dev();
		
	} else if (response.result == "fail"){
		    console.log('Invalid Account');
	    alert('Invalid Account');
		document.getElementById('user').value = document.getElementById('pwd').value = '';
	}
}

HTML
<input type="button" id="lLogin" value="login" onClick="account_verify()">
Posted
Updated 3-Aug-15 23:52pm
v3
Comments
John C Rayan 4-Aug-15 6:25am    
where is the function account_verify()? Also can you post more about the HTML to see the following elements

document.getElementById('user').value = document.getElementById('pwd').value
Kornfeld Eliyahu Peter 4-Aug-15 7:10am    
On which line do you got the error?
ZurdoDev 4-Aug-15 7:31am    
What line of code causes the error?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900