views:

15

answers:

0

I am using Spry to retrieve data from a SOAP webservice (received as XML).

I want to display these results in modal Dialog using the jquery dialog plugin.

I have an almost working solution, but the dialog shows the spry placeholders (i.e. the fieldnames surrounded by {}), not the actual retrieved data.

Any ideas how I might achieve what I want?

As per Hoff's suggestion, here is my code snippet:

function showResultsDialog() {
    var $link = $(this);
    var $dialog = $('<div></div>')
        .load('get_xml_from_soap.php?param=123ABC' + ' #dialogcontent')
        .dialog({
            modal: true,
            autoOpen: false,
            title: 'Matching records Found',
            width: 850,
            height: 300
        });

    $dialog.dialog('open');
}

The code above queries the SOAP service (via the get_xml_from_soap.php file) and then attempts to display the results in the dialog. In turn, this file contains a DIV with the SPRY placeholders in (the fieldnames surrounded by curly braces). I know the SOAP retrieval file works because I can view this in a browser and I see the data, however, when I use the code above, it doesn't seem to fetch the data from the service....