of course it is based on johann burkards plugin, but just optimized for what i needed it for.
On Tue, May 19, 2009 at 7:53 PM, chris thatcher < thatcher.christop...@gmail.com> wrote: > i have an active jquery-xslt project that is used in production settings. > its setup to have the xslt precompiled once for heavy reuse, and created a > jquery-plugin as the result. i use it to transform xml to json. > > it also provides a callback for post transform, and does not autmatically > append the result to the document. > > http://github.com/thatcher/jquery-xslt/tree/master > > it has an example, let me know if you need more help. > > > On Tue, May 19, 2009 at 4:01 PM, Ricardo <ricardob...@gmail.com> wrote: > >> >> 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"); >> > } >> > >> > } >> > > > > -- > Christopher Thatcher > -- Christopher Thatcher