Re: DB access problems



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
.



Relevant Pages

  • Re: is there a way
    ... placed a new .com on the web over a month ago and Google hasn't been ... When one of my sites isn't getting into the search engines (assuming I ... If your site is all Flash, there's no HTML content to index. ... Web Hosting by West Virginians, ...
    (comp.infosystems.www.authoring.html)
  • Re: Editing software
    ... FP 2003 isn't half bad - *IF* you know enough about HTML coding to know ... once again - there is no magic "make professional banner" button. ... that makes the real difference, ... Web Hosting by West Virginians, ...
    (comp.infosystems.www.authoring.html)
  • Re: droplet to execute shellscript
    ... indesign xml-code to html. ... as i don't want to confront our users with ... Web Hosting by West Virginians, ...
    (comp.sys.mac.programmer.help)
  • Re: a cgi for view unix logs?
    ... but because it do not print \n in HTML, ... tail in cgi page, No return/new lines: ... if you want the log lines to appear as part of an enclosing web ... Web Hosting by West Virginians, ...
    (comp.lang.perl.misc)
  • Re: a cgi for view unix logs?
    ... but because it do not print \n in HTML, ... Web Hosting by West Virginians, ... use CGI; ... sub tiv_init ...
    (comp.lang.perl.misc)