Results 1 to 2 of 2

Thread: jquery get not retrieving xml

  1. #1
    Join Date
    Jun 2009

    jquery get not retrieving xml

    I am putting together a simple ajax run site. It is mostly a project for me to practice using jquery. all was going well until I was working on a form submitted to a php file and I fired up my local server to run the php. Now my ajax calls will not get the xml files that contain page content.

    So when i have my server turned off I can view my pages and all seems well. I turn on my local server(MAMP) and the first page doesn't load any more. The path looks good and it gets right to the .get function then stops.

    Any ideas as to why the server is fudging it up?


  2. #2
    Join Date
    Jun 2009
    Many apologies, the get is getting the xml but this line is not executing as expected. Again, this does work without the server running:
    if(($(data).find(':first-child').parent().attr('type')) == "content"){
    and here is a bit of the xml:
    <?xml version="1.0" encoding="utf-8" ?>
    <Root type="content">
    firebug is telling me that the first child with a type of content is undefined.

    UPDATE: this does work with the server running, but not when it is off.

    if(($(data).find(':first-child').attr('type')) == "content"){
    So why is the xml format(dom?/heirarchy) changing when a server is running?
    Last edited by maddogandnoriko; 02-27-2011 at 04:17 PM. Reason: more info

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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