Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
PHP
echo '<head>
			<script type="text/javascript">
			function Application'.$col1.'() {
				$.ajax({
					url: "?page=acp_apps_check",
					type: "post",
					data: {capp:'.$col1.'},
					success: function(){
						alert("a");
					}
				});
			}
			</script>
			</html></head>';


When its called, it says in alert 'a' but dosen't forward or when checked the 'capp' is not defined.
Posted
Comments
ZurdoDev 10-May-13 8:02am    
Can you be more clear? So, it IS hitting your success function? However, I have never used a url the way you are, relative, so I don't know if that works. Have you tried the full URL?
NextGenDeveloper 10-May-13 9:28am    
It is hitting the success function, and I tried the full URL thingy, dosen't work.
ZurdoDev 10-May-13 9:35am    
So, it is hitting your page. It sounds like you need to debug that.
Oso Oluwafemi Ebenezer 10-May-13 8:32am    
It might not be from the AJAX part. It might be from the way you are handling the sent data at the server-side!
NextGenDeveloper 10-May-13 9:28am    
I didn't understand what you were trying to say ..

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

  Print Answers RSS


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