Posts

How to find visible class based on partial id and then return full id in jquery -

how find visible class based on partial id , return full id in jquery, here of code better understanding. <div class="visible" id="fares-and-payments-1-10kms"> </div> <div class="hidden" id="fares-and-payments-11-20kms"> </div> <div class="hidden" id="fares-and-payments-21-30kms"> </div> so if take snippet above want return "fares-and-payments-1-10kms" id div has class visible. the elegant , efficient way awesome. you use attribute starts-with selector, in combination class var elem = $('[id^="fares-and-payments"].visible'); that gets element, if need id, you'd elem.prop('id')

Using VB to read SQL Server database into JSON format -

i trying call http://localhost:26006/api/home/getemplist in html array of key value pairs of data table employee . have class model of employee contains properties each column (name, address, phone number). know i'm not close, advice appreciated. new @ programming , trying understand. dim conn string = "server=timepc; database=timeclock;trusted_connection=true" <httpget> public function getemplist() list(of employee) dim querystring string = "select * employee" dim result new datatable using connection new sqlconnection(conn) dim command new sqlcommand(querystring, connection) connection.open() using adapter new sqldataadapter(command) adapter.fill(result) end using end using return result end function

javascript - Using AngularJS Trying to insert a <tr> in the middle -

here, i'm trying insert tr tag under selected tr tag.i managed insert tr in table in bottom. sample code: "use strict"; (function(angular) { var app = angular.module('app', []); app.controller('maincontroller', maincontroller); maincontroller.$inject = ['$compile', '$scope', '$templatecache']; function maincontroller($compile, $scope, $templatecache) { var publishshown = false; var lastitemappned; var vm = this; vm.targets = ['single passenger', 'single driver', 'all passengers', 'all drivers']; vm.items = ["cheese", "pepperoni", "black olives"]; vm.cancel = cancel; vm.fruits = [{ name: 'orange', color: 'orange', tree: 'orange tree!', origin: 'china' }, { name: '...

pandas time series pivot -

i have time series of financial data in pandas dataframe in tidy format currently. have 1 datapoint per row, , data includes: 1 date 2 country (us, uk, or japan) 3 sector (tech, industrials, consumer, health_care) 4 metric (count_of_stocks, total_market_cap, volatility, etc) 5 value the data in "long format" -- 5 columns wide. i'd pivot have each date represented 1 row multi-index. each of 3 regions has same 4 sectors , 5 metrics, expect resulting dataframe 60 columns wide. i've been struggling figure out how set multi-index , pivot/unstack it. don't mind if resulting dataframe has either multi-index (with top 3 rows tree)or has 1 index row names us_indus_autos_count, etc. any appreciated. in advance

How to detect version of MIT Scheme? -

is there method can used detect version of mit scheme used within piece of scheme code? for example, may need piece of code determine whether being interpreted mit scheme 9.1, or mit scheme 9.2, , act accordingly. maybe there exists procedure (e.g. (interpreter-version) ) returns release number of mit scheme? to obtain version of mit scheme: (get-subsystem-version-string "release") sample return value: "9.2" caution: method undocumented. procedure used defined in src/runtime/system.scm . note: method used slib (reference: mitscheme.init ).

angular - Paypal Integration Angular4 -

i have done research on web , find solutions javascript, not in angular i'm searching 1 have coded checkout, paypal angular 4 , spring backend wish can explain me concept , if have coded ready wish can show it. i need path follow make run...

javascript - Losing tab to next step after typing in description -

why code lose focus after type in description of work? after type description , hit tab cursor goes nowhere. thanks <div class='span8 bgcolor'> <label>description of work, including dates</label> <textarea rows="3" name="comments" id="comments" class="span12" style="text-align:left" onchange="javascript:addcomments(this.value)"> </textarea> </div> </div> <div class="row-fluid" id="distributioninfo"> <div class="span3 lightblue"> <label>select pay distribution</label> <select id='pay_dist_code' name='pay_dist_code' class='span12' onfocus='javascript:populatedistribcodes(this.value)' onchange='javascript:getdistributioninfo(this.value)'> <option selected>select pay distribution</option> </select> </div> ...