Hi Erik,

Yes the response is text/xml and also the success is definately being
called.

Thanks
Tom

On Jun 6, 12:51 pm, "Erik Beeson" <[EMAIL PROTECTED]> wrote:
> Make sure the content-type response header is text/xml. Is your success
> callback getting called at all?
>
> --Erik
>
> On 6/6/07, Tom Holder <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi Guys,
>
> > I'm having real trouble accessing some content from XML back from an
> > AJAX request.
>
> > My code is like this:
>
> >             jQuery.ajax({
> >                url: "swcontrols/addrepeateritem.ashx",
> >                data: {repeaterid: repeaterItemID},
> >                dataType: "xml",
> >                success: function() {
>
> >                     alert(jQuery('/data/rows',xml).text());
> >                }
> >              });
>
> > I don't get any alert box. I've tried .html() rather than .text() and
> > no joy. I've also tried changing the selector to just 'rows'.
>
> > My XML looks like this (and firebug is showing it coming back fine).
>
> > <data><rows><![CDATA[<tr id="repeater_calendar_oops_1"
> > class="repeatable">
>
> >     <td>15th March</td>
>
> >     <td>Birmingham</td>
>
> >     <td>2 Days</td>
>
> >     <td>18:00</td>
>
> >     <td>OPEN</td>
>
> > </tr><tr id="repeater_calendar_oops_37">
>
> >     <td><input name="repeater_calendar_oops_37_Dates" type="text"
> > value="" /></td>
>
> >     <td><input name="repeater_calendar_oops_37_Location" type="text"
> > value="" /></td>
>
> >     <td><input name="repeater_calendar_oops_37_Duration" type="text"
> > value="" /></td>
>
> >     <td><input name="repeater_calendar_oops_37_Time" type="text"
> > value="" /></td>
>
> >     <td><input name="repeater_calendar_oops_37_Availability"
> > type="text" value="" /></td>
>
> > </tr>]]></rows><id>37</id></data>
>
> > Any ideas anyone?
>
> > Thanks

Reply via email to