You are currently viewing the BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
first of all sorry if I explain myself badly but I am not a Shakesperean Native ;).
Ok here it is :
Chapiter 2 of the Book :
I am trying to use a Post Form in ajax, it works well, untill I include it with other files.
Let me explain better :
I got SaveCustomer.php plus and the XMLHttpExample2.htm (this one with the POST).
All together they work fine.
But when I try to include the XMLHttpExample2.htm with header.php and footer.php in a common php file, when I try it without giving my name for example it take the header + the htm file + the footer inside the DivStatus <div>, what can I do to show only an error message ???
I could show you if you need to see what happen in a screenshot, the prob is that I think it get the <body></body> and print it instead of giving only the error message !!!