javascript - How do I parse XHTML document from Ajax request? -
i have xhtml document received via ajax. how content of <title> tag? tried invoking getelementsbytagname() on xhtml document, error says variable referencing xhtml document doesn't have getelementsbytagname() method.
assuming xhtml valid, should able use responsexml xmlhttprequest xmldocument representation of markup.
alternatively try creating div, , setting responsetext div's innerhtml.
Comments
Post a Comment