Hi Vishu,

I don't think I understand your question.  The code you provided uses
the jQuery JS library; it's likely executing client-side.  As such,
the result of the Ajax call is available client-side via the arguments
to the functions that are called if the request fails (error) or
succeeds (success).  You can use the .text() method to return the
value of text, CDATA, and element nodes (unlike the .html()
method, .text() can be used in both XML and HTML documents).

I hope this helps.  If not, please clarify your question.

-Nik

On Apr 26, 9:51 am, vishu <[email protected]> wrote:
> Hi All,
>
> I am using the Red Dot delivery server. In which i use the dynaments
> to query the database for some form on my website.
>
> I have requirement in which i have to make a ajax call to the dynament
> xml and get the response back.
>
> Is there a way i can send the response to the client ? if yes . How do
> i read it my ajax method.
>
> My ajax method looks something like below.
>
> function checkSupply(postcode) {
>     if (!jQuery('#'+postcode).val().match(/^[A-Za-z]{1,2}[0-9A-Za-z]
> {1,2}[ ]?[0-9]{0,1}[A-Za-z]{2}$/)) return;
>     document.body.style.cursor = 'wait';
>    alert("2");
>    alert(jQuery('#'+postcode).val());
>     jQuery.ajax({
>         type: 'POST',
>         url: 'default.xml',
>         data: { post_code : jQuery.trim(jQuery('#'+postcode).val()) },
>         success:addressSearchResponse,
>         error: addressSearchError
>     });
>            alert("3");
>
> }
>
> function addressSearchResponse(pcode) {
>
> }
>
> function addressSearchError(xhr, status, error) {
>
> }
>
> Can somebody help me on this.
>
> Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to