There are different versions of XSLT plugins out there, I assume you're using this one: http://johannburkard.de/blog/programming/javascript/xslt-js-version-3-0-released-xml-xslt-jquery-plugin.html
As per that post, there is no callback available, you should modify the code yourself or contact the author, he might be willing to help. cheers, ricardo On May 19, 2:29 pm, Amod <gam...@gmail.com> wrote: > Hi > > I am using jquery xslt plugin and the problem I am having is that when > I perform xslt i.e > $('#outputDiv').xslt('PPPoE.xml','PPPoE.xsl'); </b> > > the browser continues execution of the lines following this line(ie > xslt line) and when the execution is finished it displays the xslt > result. > > I want that the xslt to be performed at the time of call and not at > the last, since eqCol() method is called and it adjusts the height of > #rightCol > > making the output half visible. I can set the height of #outputDiv to > some fixed value but I am trying to avoid hardcoded values. > > <b>if($(this).attr("href").indexOf("#")!=-1){ > switch($(this).attr('title')){ > > case 'WAN' : $("#rightCol").empty(); > $("#rightCol").append($wanTabs);//Append the tabs > tabEvents(this);//Assign click events to the tabs > try > { > > $('#outputDiv').xslt('NM_Web_PPPoE.xml','NM_Web_PPPoE.xsl');// > Perform XSLT and display in #outputDiv > // I want XSLT to be finished before it reaches > 'break'. Have tried > using timer but browser still displays > // the result at the end of execution. > } > catch (e) > { > alert(e); > } > break; > > case 'OSPF': $("#rightCol").empty().append($ospfTabs); > tabEvents(this); > break;} > > function eqCol(){ > $("#leftCol").height("auto"); > $("#rightCol").height("auto"); > var lcol = $("#leftCol").height(); > var rcol = $("#rightCol").height(); > if(lcol>rcol){ > $("#rightCol").height(lcol+"px"); > }else{ > $("#leftCol").height(rcol+"px"); > } > > }