Posts

javascript - Scroll issue on table row removal -

i have following html code: <tr id="cv643" ondblclick="oncve(643)"> <td colspan="2"> <a onclick="btncva(41,643)" href="#"> actions <span class="badge badgew">2</span> </a> </td> <td>confirm appointment</td> <td>29-12-2015</td> <td style="color: red">12-01-2016</td> <td style="color: red">pending</td> <td colspan="2"></td> </tr> client code is: function btncva(cpkey, cvkey) { var sel, tbl; if (onhidecva()) { // test if action list there $.ajax call create table row id 'reccva' } } function onhidecva() { var sel, rc=1; if ((sel = document.getelementbyid('reccva')) !== null) { sel.parentnode.removechild(sel); rc=0; } return rc; } when actions button clicked, btncva creates row underneath reccva st...

javascript - Why track by $index is necessary for ng-click to trigger inside nested ng-repeat -

i using ng-click inside nested ng-repeat found inner ng-click(3rd level) not getting triggered. when used track $index inner ng-repeat, ng-click got triggered. not able understand behavior of nested ng-repeat. please find below code snippet <ul class="a"> <li class="b" ng-repeat="items in objects track $index" ng-click="callsomething()"> <a>{{items.name}}</a> <ul class="c"> <li class="d" ng-repeat="items1 in objects1 track $index" ng-click="callsomething()"> <a>{{items1.name}}</a> <ul class="e"> <li class="f" ng-repeat="items2 in objects3 track $index" ng-click="callsomething()"> <a>{{items3.name}}</a> </li> </ul> </li...

java - The jar of this class file belongs to container 'RFT Libraries' -

i error when try integrate selenium web driver ibm rft. the jar of class file belongs container 'rft libraries' not allow modifications source attachment' how overcome issue? can 1 shed light on it?

asp.net - Web-api controller to extract data from Wikipedia api in json format and show the result on web -

in project using 3 wikipedia api in json formatted extract data it. first api contain short-text of wikipedia article of places means first paragraph of article. second api contain latitude , longitude of places. , third api got page-image url information of places. want implement code using web-api controller asp.net mvc. wikipedia-api shortext is- https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exlimit=max&explaintext&exintro&titles=berlin&redirects= wikipedia api forlatitide , longitude is- https://en.wikipedia.org/w/api.php?action=query&format=json&prop=coordinates&titles=berlin so far have done create 3 folders inside model named shorttext, image , geo accordingly. inside shorttext folder created 4 classes contain json object , named these limits.cs, pageval.cs, query.cs , rootobject.cs limits.cs public class limits { public int extracts { get; set; } } pageval.cs public class pageval { public i...

html - Angular2: File input control label keeps its state after destroying component -

i have angular2 component (lets call dataset-create ) includes form: <form novalidate="novalidate"> <button type="button" (click)="onclose()">close</button> <button type="submit" (click)="onsubmit()">submit</button> <label for="datafiled">data</label> <input id="datafiled" type="file" (change)="onfilechange($event)"> </form> the close() , submit() functions emit (close) event makes parent component disable dataset-create component: <div [ngswitch]="mode"> <template [ngswitchwhen]="'create'"> <dataset-create [dataset]="dataset" (close)="ondatasetformclose()"></dataset-create> </template> <template [ngswitchwhen]="'detail'"> <dataset-detail [dataset]="dataset" (close)="on...

c++ - Cannot change file type in Linux version -

changing file type works windows not work in linux. in linux not change file type. qregexp pattern("\\b(stl)\\b", qt::caseinsensitive); if (info.suffix().isempty()) { filename += qlatin1string(".") + "stl"; } else if (!pattern.exactmatch(info.suffix())) { filename += qlatin1string(".") + "stl"; } the filetype displays "plain text document (text/plain)" instead of stl ( stereolithography potentially). as can see code, try change file extension. may work on windows. linux doesn't use file extension file type determination. linux checking file content this.

Spark reference table -

a spark rdd contains collection, each element represents request. a scala function passed rdd, and, each rdd element, function create modified request. for each collection element\request, lookup table needs referenced. maximum size of reference table 200 rows. how performance , scalability, how should lookup table (which used within function) modeled? spark broadcast variable. separate spark rdd. scala immutable collection. perhaps there option have not considered. thanks it depends on size of rdds, giving reference table have 200 rows, think best option use broadcast variable. if used separate rdd, make spark repartition request rdds , making innecesary shuffle.