Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
de luna romeo
3,308 PointsAJAX: when you sent the data like $.post('xxx.php', data); can you echo it out in in the same xxx.php file?
AJAX: (newbie here)...Helo treehouse! when i sent the data like $.post('xxx.php', data); can i echo it out or use the data in the same file directory where i sent it which is xxx.php?
2 Answers
Logan R
22,989 PointsYou can not echo out what the page said on the page because the request is sent a-sync with the browser.
You can, however, view the output that the page gives back. You learn how to do it late in the course.
de luna romeo
3,308 PointsHi Logan, Very much appreciated, thank you!