Thread: XHTML and AJAX

Page 2 of 2 First 12
  • Jump to page:
  1. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    USA (verifiably)
    Rep Power
    jQuery is great, but it is a certain amount of overhead and it's best to have a solid understanding of plain JavaScript and DOM before using it.

    Originally Posted by Pouya
    Does anybody knows if it is posible to use AJAX for updating a XHTML
    Are you using real XHTML? What is the content-type HTTP response header set to? If it's set to "text/html", then you're using HTML with XHTML syntax, which is not really XHTML.

    Anyway, you could be using responseXML, instead of responseText, then you can use importNode. However, IE versions before 9 didn't implement it, so you'll need to use a workaround to support them.

    Originally Posted by Winters
    JavaScript Code:
    It's been a while, but I seem to remember that you can't append a string directly to an element like that. You need to use document.createTextNode() first.

    Comments on this post

    • Winters agrees : My mistake.
    Spreading knowledge, one newbie at a time.

    Learn CSS. | PHP includes | HTML Validator | CSS validator

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).
  2. #17
  3. Super Moderator
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    London, UK
    Rep Power
    As Kravvitz says.
    JavaScript Code:
    [PHP] | [Perl] | [Python] | [Java] != [JavaScript] | [XML] | [C] | [C++] | [LUA] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo