472,146 Members | 1,444 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

XMLHTTP

A nice way to dynamically update HTML on a page (without leaving the
page) is to use document.innerHTML and XMLHTTP in JavaScript, then
communicate with the server via XML snippets (plus some server side
scripts of course, I use PHP5+MySQL). If you want to see an example,
you can take a look at my chat:
http://blog.outer-court.com/chat/

(And I was inspired by Google Suggest, which uses XMLHTTP.)

Of course, this can also be used for form validation and similar tasks.
Jul 23 '05
50 4455
In article <39*************@individual.net>,
"Philipp Lenssen" <in**@outer-court.com> wrote:
Henri Sivonen wrote:
No, I feel no need to defend SGML, and I don't believe HTML is a
genuine application of SGML.
So, wouldn't that mean HTML was also naked (not being real SGML, as you
say)?


Yes, the notion of text/html as SGML is bogus as well. However, HTML
4.01 provides useful features over the early honest tag soup, and the
soupness of text/html is less likely to contaminate SGML than XML.
Again, for me the choice between XHTML and HTML is an arbitrary one. As
I said I prefer the style of always-closed p's, always-quoted
attributes, always using both attribute-name and attribute-value, and
having the same syntax as XML.
text/html user agents don't enforce your code style preference even if
you pretend to use XHTML. You need external tools for that enforcement.
You can enforce a similar code style with HTML using external tools.
(Try the "fussy mode" of PageValet--no custom DTD required.)
I think it's
equally silly to say "avoid XHTML because there are problems". There
are *always* problems no matter what language you choose on the web.


As far as I can tell, the problems of XHTML served as text/html are a
proper superset of the problems of HTML 4.01 served as text/html. In
general, one is willing to take new problems only in exchange for some
benefits.

--
Henri Sivonen
hs******@iki.fi
http://hsivonen.iki.fi/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Jul 23 '05 #51

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Ike | last post: by
5 posts views Thread by hatsumoto | last post: by
9 posts views Thread by balakrishnan.dinesh | last post: by
13 posts views Thread by yawnmoth | last post: by
3 posts views Thread by Andrewh | last post: by
2 posts views Thread by trpost | last post: by
1 post views Thread by StevenS | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.