Posts

java - HttpClient : How to send post request to page that auto generate random field name? -

a page auto generating random name every time text input field. how can name before executing post request, can use name @ time of adding post parameters in arraylist<namevaluepair>. i solved problem using regex. file name has pattern of 6 character capital characters. used regex : .*id=\"([a-z]{6}).*

angularjs - Angular UI Grid autocomplete with ui-grid-cellnav -

i have autocomplete in ui grid working fine when put ui-grid-cellnav directive keyboard , down arrow not working autocomplete. <div class="grid nonproductivetimegrid" ui-grid="nonproductivetimegridoptions" ui-grid-resize-columns style="width: 100%;" ui-grid-edit ui-grid-cellnav ui-grid-auto-resize ui-grid-draggable-rows ui-grid-selection></div> and controller code grid column var _columnsdefs = function (islocked) { var cols = [{ field: 'responsibleparty', displayname: 'responsible party', enablecelledit: !islocked, editablecelltemplate: '<div><form name="inputform"><input type="input_type" typeahead-append-to-body="true" ng-class="\'colt\' + col.uid" ui-grid-editor ui-grid-edit data-ng-model="model_col_field" name="label" maxlength="100" required validate-required-cell data-typeahead=...

javascript - Move values from one array to another and remove them -

i have 20 number array. pick (randomly) 5 of these , wanna put them empty array. how can do? , also, how can hide them first array when they're displayed? thank all. var tennumbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 20, 42, 178, 54, 76, 32, 12, 38, 154, 234]; var randomnumbers = document.getelementbyid("demo"); randomnumbers.innerhtml = tennumbers[math.floor(math.random()*tennumbers.length)]; seems should able use splice remove random element original array, push result onto new array: var tennumbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 20, 42, 178, 54, 76, 32, 12, 38, 154, 234]; var outarray = []; for(var i=0; i<5; i++) { outarray.push(tennumbers.splice(math.floor(math.random()*tennumbers.length), 1)[0]); } document.write(outarray + "<br />" + tennumbers);

c# - Storing a variable in project -

i looking @ simple wpf c# project calculate employee tax payment uk company. need store uk tax allowances updated infrequently. these values shall 10000 , 45000 ( these not actual numbers know), may need updated in future. plan store app on central network. i have considered using resources store these values take ability of user update these values away, not want do. i have looked @ isolated storage like here think different users change tax limits when need each allowance stored , updated ever user update. everything have read app.config file suggests not right place either such variable. so should store data? guess put down txt or xml file, fine in case, not strike secure option , linking sql db seem on top what best practice in case pls? thank you if security extension doesn't matter serialize values file. json nice , simple (using json.net). if need have more allowances, make array instead of upper , lower. define class; public class allowances ...

docusignapi - DocuSign for Salesforce - Custom Button Code Email Subject and Messages for multiple recipients -

we have multiple recipients in our template workflow , different email subject , email message each recipient. have custom button code put customize subject , message initial recipient, need on how add different signers/roles. routing: order 1: broker 1 order 2: client 2 order 3: broker 1 here's current code: {!requirescript("/apex/dsfs__docusign_javascript")} //********* option declarations (do not modify )*********// var rc = '';var rsl='';var rsro='';var rros='';var ccrm='';var cctm='';var ccnm='';var crcl=''; var crl='';var oco='';var dst='';var la='';var cem='';var ces='';var stb='';var ssb='';var ses='';var sem='';var srs='';var scs ='';var res=''; //*************************************************// // modify individual options here: // custom email message (default in config) cem = ...

java - How to use AppBaseActivity and ActionBarActivity both in MainActivity -

i'm using theme i.e theme.appcompat.light.darkactionbar in application can action bar in main activity.for must extends mainactivity actionbaractivity.and register or unregister activity had created 1 separate class appbaseactivity can close activity @ time of logout. question java doesn't support multiple inheritance how can use these both classes in mainactivity. appreciated. use multilevel inheritance instead. extend appbaseactivity base activity actionbaractivity , extend other activity appbaseactivity . believe trick you.

javascript - How to add html/js query to gwt app using gwt-rpc? -

we have web client built gwt talks server via gwt-rpc. 1 part of app use html/js replace gwt gui , want part talk server not via gwt-rpc. ways there migrate gwt-rpc call work none gwt client? today send , receive java collections contain object graphs list of order objects have them self order detail objects , on. thanks your best bet using rest . data sent using json, part of javascript understood on client-side. on server side there shouldn't problems finding suitable library handle rest (ha-ha, it?). if you're using gwt on client , server side now, resty-gwt , jersey popular combo. there talk it on last gwt.create conference, it's starting point.