Posts

how to get value from url parameter using javascript or jquery -

i have issue in getting value url, have link shows modal have <a href='#modal?userid=<%=resultset.getint("drid")%>' class="button-border togglemodal">apportionment</a> above link opens modal given below <div id="modal" class="modal"> <header> <h2>appointment form</h2> </header> <form action="addappoinment.jsp" method="post"> <input type="hidden" id="docid" name="docid" value=""><br> <input type="text" required><br> <input type="text" required><br> <input type="text" required><br> <input type="text" required><br> <textarea rows="4" cols="21"></textarea><br> <button class="button-border butto...

c# - CheckBox does not update -

i using checkbox toggle button (checkbox.appearance = appearance.button) in child form. if users presses button measurement cycle start if criteria satisfied (e.g. temperature within range). checkbox.checked property remains true until measurement completed. if e.g. temperature out of range warning appear , button reset. same happens if cycle ended properly. in end self-explaining function called: /// <summary> /// resets button states false /// </summary> public void resetbutton() { checkbox_start.checked = false; } now, when debugging, see checkbox_start.checked property false , remains false. ui not show actual value. seemingly remains checked. have tried refresh() , update() on levels. does have idea? possibly keep ui showing actual value? i found similar problem, except datagridview. solution found invalidate control , request redrawn, follows: public void resetbutton() { checkbox_start.checked = false; ch...

visual studio 2010 - vs C#2015 solution's backwards compatibility wont run on vs2010 even when nothing was done to it -

so in middle of making program, when decided try upgrading vs2015 because newer ui. so opened .sln in vs2015 test run program again, , re arrange ui of program, didnt add or remove anything, or touched code. saved file, , tried opening again on laptop still on vs2010. i can open solution,i can access , edit code, can't open designer @ all, or run program made. although can upgrade 1 on laptop newer one, im doing project friend still on vs2010, there way make compatible again? whenever try open project in visual studio 2015 developed in visual studio 2010 prompt window make changes in .sln file shows changes in browser. if try open file changed vs2015 not able open in vs 2010 available open in vs 2012 , on word

sorting - UnderscoreJs : objects sortBy with empty attributes -

problem is, want sort price array of users might contains empty attributes one: var array = [ { "created": "2015-11-27t16:33:46.781z", "name": "johan", "pricing": { "base_price" : "12", "price_by_hour" : "5" } }, { "created": "2015-11-27t16:33:46.781z", "name": "marco" }, { "created": "2015-11-27t16:33:46.781z", "name": "jane", "pricing": { "base_price" : "8", "price_by_hour" : "11" } } ]; array = _.sortby(array, function(item) { return item.pricing.base_price; }); console.log(array); typeerror: cannot read property 'base_price' of undefined how can put items without pricing object @ bottom of list , still sorting it? in case,...

twitter bootstrap - Validate Boostrap modal contact form using Laravel 5, AJAX -

having trouble figuring out how use bootstrap modal in laravel 5 send contact form. i want use ajax page doesn't refresh. when click send in modal, 500 (internal server error) in console log. what should ajax call like? should route like? need in controller simple response back? having difficult time finding examples of these things. here ajax... $.ajax({ method: "post", url: "/results-guest-card", data: str, datatype: "json", success: function(result) { if (response.status == "ok") { console.log ('success');//success! $('#guestcardmodal').modal('hide'); $('.modal-send-button').attr("disabled", false); } else { console.log ('failure');//fail! $(".errors").html(result.errors); $('.modal-send-button').attr("disabled", false); } } }); i writing answer might in future. as op said 1 be...

GWT Decorated Cell Table input rendred onclick -

i have decoratedcelltable can inline editing. when click on editbutton nothing happens celltable . when click cell want edit, cell rendered <input> . is there way render editable cells input clicking on editbutton ? with celltable.seteditable(true); doesn't work. see cells defined per column not per entry in column. the basic idea of cell widgets make widget light wieght not creating input elements each entry in column . so there can 1 input element can active in column @ point of time , same input element reused entire column. hence not possible (as per know ) render editable cells input elements @ time.

XSLT Transformation using Xalan-Java Extensions -

i trying convert xml csv using "xalan-java extensions" [xslt template include java coding] , unfortunately no positive results. i added external libs (bsf.jar;js.jar;xalan.jar;xercesimpl.jar;xml-apis.jar) java projects before, seems 1 not working, i'm getting error: error during transformation - java.lang.nullpointerexception; line#: 55; column#: 45 my java code: public class transformcsv { /** * @param args */ public static void main(string[] args) { // todo auto-generated method stub try { file stylesheet = new file("style.xsl"); file xmlsource = new file("data.xml"); documentbuilderfactory factory = documentbuilderfactory.newinstance(); documentbuilder builder = factory.newdocumentbuilder(); document document = builder.parse(xmlsource); streamsource stylesource = new streamsource(stylesheet); ...