Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Thanked 0 Times in 0 Posts

    Question How To Use AJAX To Load My Sub-pages?

    I am doing some kind of table of content/indexing on my website. Once the visiter chooses one of the sub-pages in my website, it will traverse of this sub-page and load some of the elements in that sub-page. But it all happens without loading a totally new page.

    I am trying to do it in AJAX. AJAX can return either responseText or responseXML. But I can't use responseXML because it's for xml and my pages are in html. I can't use responseText neither because I want to traverse the dom tree in those sub-page.

    So how do I do it?

    Many thanks.
    Last edited by dealmaker; 08-13-2005 at 08:26 PM.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    near Oswestry
    Thanked 0 Times in 0 Posts
    You have to make a choice - either the data returned is XML, so that you can traverse the DOM, or it's not, in which case you'll have to do a bunch of text processing operations.
    Last edited by brothercake; 08-15-2005 at 09:03 PM.
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts