javascript - Clone <tr> from a form and append to another form - but losing links(events) -


i modifying third party built web client messaging api increase number of servers can search on chat rooms. api built search on 1 server node. server response in form of form (without methods fields from) , publishes browser via callback.

the result list of search rooms, when selected trigger , event , lets user join chat room.

i have modified code throws search request multiple times, , gets multiple response forms displays multiple div's.

i have cloned /.clone(true)/ rows , appended them last form, displaying (thanks other posts here:) user able select list last form response, , other list appear texts.

is there way clone links well? new web programming , thinking links active when in instance, (which when form received - , instance replaced when form received) cannot sure of this.

this function wherein last form received , saved rows appended.

 _01handleconfigsubmit: function (form, error) {             if (form) {                 var formview = new jabberwerx.ui.xdataformview(form);                                 var = this;                 formview.event("xdataitemselected").bind(function(evt) {                      that.jq.find(".muc_search_button_join").removeattr("disabled");                      var resulttable = that.jq.find(".muc_search_results table.result_table");                     resulttable.find("tr.selected").removeclass("selected");                      that._selecteditem = evt.data.selected;                     resulttable.find("tr#"+evt.data.selected._guid).addclass("selected");                 });                   var searchresultsdiv = jabberwerx.$(".muc_search_results", this.jq);                 searchresultsdiv.empty();                 this.update();                 var dim = {                     width: searchresultsdiv.width(),                     height: searchresultsdiv.height()                 };                 formview.render().appendto(searchresultsdiv);                 formview.dimensions(dim);                  $("table.result_table tbody").append($trs);                   } else {                 this._showerror(error);             }         }, 

thank you!


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -