ltrem Posted September 17, 2009 Share Posted September 17, 2009 I'll make this short before posting my code, I call my php pages which execute an Insert on my Database... the query is executed without problems... then I finish the .php with echo "test"; And the responseText is just empty...! I goes in the stateChanged function since I display an Alert but when I try to display the responseText (Which should be "test")... it is just Empty... Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/174607-solved-calling-php-pages-from-javascript-php-executed-but-no-responsetext/ Share on other sites More sharing options...
ltrem Posted September 17, 2009 Author Share Posted September 17, 2009 The PHP I called was from another subdomain... so the returned value just didn't came back since AJAX need to be executed on the same domain........... grrrr! SOLVED ! Quote Link to comment https://forums.phpfreaks.com/topic/174607-solved-calling-php-pages-from-javascript-php-executed-but-no-responsetext/#findComment-920193 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.