Just see the xml response and you'll figure it out...

If data is the xml response, try

*var* response = data.getElementsByTagName(*"ajax-response"*);
var xmlResponseElements = response[0].childNodes;
*for* (*var* i = 0; i < xmlResponseElements.length; i++) {
       *var* responseElement = xmlResponseElements[i];
       *if* (responseElement.nodeType != 1)
           *continue*;
       *var* responseType = responseElement.getAttribute(*"type"*);
       *var* responseId = responseElement.getAttribute(*"id"*);
       *if* (responseType == *"element"* && responseId != *"scriptblock"*
                && responseId != *"postprocess"*) {   
                // whatever arrives here will probably be
                // your TRs and DIVs as an XML node
        }
}



Ron Piterman wrote:
Thats great - but i have a small problem:

what if I want to do the client side on my own?
I do use dojo, but I use my own widgets which expect a html containing a list of rows (TRs) following by some DIVs which will be replaced by (html) ID-

Cheers,
Ron


Andreas Andreou wrote:
Take the URL from the html source,
add "&dojoRequest=true" at the end of it
and you'll get an xml response with only the specified component
rendered + required javascript calls.

You may need to study the returned xml a bit + tacos.js to figure out how
to process the data.

Ron Piterman wrote:
Thanx both Jesse and Andreas !

I am not sure I explained the preblem well:

I am using a custom widget, and tried to use tacos' ajaxservice at the server side, but it seems the ajaxservice always renders the whole page -

I tried taking the URL from the html source, and playing with it on the command line with no success -
Take the url

does partial rendering of a page function? (say I want *only* one component to render - knowing that shell, body, and all enclosing components will not render!) for me it didn't work, so I had to find my own solution.

Please tell me if this should work with tacos, so either I change my code (better to use tacos as my own engine, I believe) or submit a bug...

Cheers,
Ron


Andreas Andreou wrote:
IEngineService.getLink will always return real urls,
urls that can be directly pasted to the address bar,
urls that will work even if javascript is disabled.

What you need to do is get that url and then execute
the following javascript ( replacing ${myUrl} ):
tacos.defaultLinkAction({processScripts:true,url:'${myUrl}'});

Ron Piterman wrote:
Hi,

I am trying to create a link which will render *only* specific components on a page (yes, on my own risk :) ) -

I get the link using :

...
AjaxDirectServiceParameter param =
  new AjaxDirectServiceParameter(
    this , // IDirect
    parameters , // Invocation parameters for IDirect
    refreshIDs,  // component to render
    EMPTY_STRING_ARRAY , // blocks to render
    true ); // direct component rendering.
return getAjaxDirectService().getLink(false, param );


still the whole page :(

could someone (please :) )point on what I am doing wrong here ?

Cheers,
Ron




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to