I'm trying to ajaxify my forms. I'm using the forms plugin:

$("#FindHotel").ajaxForm(
                {
                    success: showFormSubmitResult,
                    dataType: 'xml'
                }
            );


function showFormSubmitResult(responseText, statusText)
{
    alert(responseText);
}

I'm getting 'null' :(

The XML that's returned is valid XML that looks sort of like this. I
wonder what could be the problem :(

<data> 
    <sort text="Sort by: "> 
        <item isLast="0" link="/find/hotel/?sort=name&amp;dir=asc"> 
            <text>Hotel name</text> 
            <image></image> 
        </item> 
    </sort> 
    <list> 
        <original_set text="You were looking for: "> 
            <item> 
                <!--xhr--> 
                <hotel
                    name="test_hotel"
                    roomdata="405E43495D1748544D4843"
                    name="Тestoviy Otel"
                    noofstars="5* "
                    currency="€ "
                    minprice="10"
                    maxprice="61.2"> 
                   
                    Description
                </hotel> 
                <rooms> 
                    <room
                        name="SNGL"
                        id="1"
                        hid="8"
                        currency="€ "
                        minprice="10"
                        maxprice="22.4" /> 
                </rooms> 
            </item> 
        </original_set> 
    </list> 
</data>

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to