Re: Users - AJAX (again. sorry)

Posted by Fred Forester-2 on
URL: http://ofbiz.116.s1.nabble.com/Users-AJAX-again-sorry-tp138397p138404.html


I'm still sorta new to the xml thing. here is what I am sending back via
the event

<employees><employee><id>10010</id><firstName>Fred</
firstName><lastName>Forester</lastName></employee></employees>

and using this to try and parse it.

var employees = responseXML.getElementsByTagName("employees");

of course this is not parsing since employess.lenth = 0


tibor katelbach wrote:

> You can do the formating or parsing in java.
> I usually prepare well formed xhtml that I feed to my responseXML, that I
> insert directly into any given div with
> document.getElementbyId("divId").innerhtml
> = xhr_obj.responseXML
>
> Hope this helps
> Tibor
>
> On 4/10/06, Fred Forester <[hidden email]> wrote:
>
>>
>>understood. this was strictly an experiment to see how/if ofbiz could
>>handle an ajax request. avoiding 100,000 S%(mith)s would be an excersise
>>for the reader. :)
>>
>>
>>
>>David Welton wrote:
>>
>>>>3) lookup all parties whos lastName is like 'lastName%' and return an
>>>>xml list of lastNames and personIds.
>>>
>>>
>>>When working on stuff like this - if it's not just for your own use,
>>>keep in mind that for some businesses, that could potentially be a
>>>*very* large list.
>>>
>>>--
>>>David N. Welton
>>> - http://www.dedasys.com/davidw/
>>>
>>>Linux, Open Source Consulting
>>> - http://www.dedasys.com/
>>>
>>>_______________________________________________
>>>Users mailing list
>>>[hidden email]
>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>>
>>
>>_______________________________________________
>>Users mailing list
>>[hidden email]
>>http://lists.ofbiz.org/mailman/listinfo/users
>>
>
>
>
> ------------------------------------------------------------------------
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users