Re: DB access problems
- From: Sherm Pendley <spamtrap@xxxxxxxxxxx>
- Date: Fri, 29 Dec 2006 15:35:10 -0500
John Bokma <john@xxxxxxxxxxxxxxx> writes:
Sherm Pendley <spamtrap@xxxxxxxxxxx> wrote:
"JoeyP" <plantz.3@xxxxxxxxxx> writes:
[..]
Questions: Do I have to build the HTML with statements like print
"<html>\n"; in my CGI?
Good $DEITY no!
Uhm, that depends. There is no problem with sending HTML ("AJAH") if
that's all you need.
I may have misinterpreted him, but I don't think the OP was asking about
that. Based on the "<html>\n" in his message, I think he was asking if a
complete, valid HTML document is required in response to AJAX requests, and
the answer to that is "no".
When the server-side script responds to an AJAX request with HTML text, it
returns a document fragment with only the elements that need to be updated
by the client-side JavaScript, not a complete document.
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
.
- Follow-Ups:
- Re: DB access problems
- From: John Bokma
- Re: DB access problems
- References:
- DB access problems
- From: JoeyP
- Re: DB access problems
- From: Sherm Pendley
- Re: DB access problems
- From: John Bokma
- DB access problems
- Prev by Date: FAQ 4.58 How can I know how many entries are in a hash?
- Next by Date: Re: DB access problems
- Previous by thread: Re: DB access problems
- Next by thread: Re: DB access problems
- Index(es):
Relevant Pages
|