Posts

asp.net mvc - jQuery issue with identical call when triggered from tab and button -

i have mvc page jquery-ui tabs. when user selects relevant tab jquery ajax call executed load select list. works fine. user can reload list clicking button perform same call once again. when called button ajax call fails!! tried swap order , skip call on tab display, in order make button load first event. still gave same error. the ajax call isolated in same function being called. how can different when called different events? this related code: $("#tabs").tabs({ show: function (event, ui) { var tabname = $(ui.tab).attr("href"); if (tabname == "#tabresult") loadresults(); } }); $("#btnloadresults").click(function () { loadresults(); }); function loadresults() { var testcaseid = $("#testcase_id").val(); $.getjson("api/testsapi/getresults", { testcaseid: testcaseid }) .done(function (data) { $("#lstresults").empty(); ...

How can I get the all the tag data with each task from the asana api? -

currently can tag id through opt_fields when getting list of tasks, not listed option, question is, there anyway more id back? thanks use more value tags in opt_fields: get id - tags, name - tags.name, color - tags.color , etc. simple: ?opt_fields=tags,tags.name,tags.color

handlebars.js - Meteor: Preserving ClassName Flags -

i'm having trouble using preserve method in meteor. doesn't seem want do. basically, have 3 nested templates which, when rendered, in closed state : <div class="dropdown"><!--from template1--> <div class="group"><!--from template2--> <div class="subgroup"><!--from template3--> i'm subgroup's content! </div> </div> </div> to view content in .subgroup node, template wrappers need bear .open class name. done on click event. here's looks in open state : <div class="dropdown open"><!--from template1--> <div class="group open"><!--from template2--> <div class="subgroup open"><!--from template3--> i'm subgroup's content! </div> </div> </div> the issue is, when events fire , alter database within .subgroup's cont...

c - gstreamer sample documentation code not running -

trying compile , run sample appsrc code after having executed several tutorials. documentation code, supposed run ... the command used compile gcc appguideappsrc.c -o appguide `pkg-config --cflags --libs gstreamer-0.10 gstreamer-app-0.10` got following error after appguideappsrc.c: in function ‘cb_need_data’: appguideappsrc.c:14:8: warning: assignment makes pointer integer without cast [enabled default] appguideappsrc.c:18:25: error: lvalue required left operand of assignment ok, warning fine line throws error seems ok gst_buffer_pts (buffer) = timestamp; based on answer below @michal, changed timestmap , got following error (appguide:11043): glib-gobject-critical **: g_object_set: assertion `g_is_object (object)' failed (appguide:11043): gstreamer-critical **: gst_bin_add_many: assertion `gst_is_element (element_1)' failed (appguide:11043): gstreamer-critical **: gst_element_link_many: assertion `gst_is_element (element_1)' failed ...

java - Order of request parameters for content-type application/x-www-form-urlencoded in Spring MVC -

i working on web service consumes requests of type application/x-www-form-urlencoded . here example of such request body: loginid=tester&action=add&requestid=987654321&data=somedata the request signed (with sha1withrsa ) client , signature sent http header. the thing parameters in different order, example: action=add&loginid=tester&requestid=987654321&data=somedata therefor verifying signature fails. interesting occurs if content-type application/x-www-form-urlencoded , if switch content-type text/plain works perfectly. i've used different types of clients (even monitored traffic using tcp monitor) , sure issue not caused client app. here part of custom message converter (note directly printing incoming request console): @override protected object readinternal(class<?> clazz, httpinputmessage inputmessage) throws ioexception, httpmessagenotreadableexception { log.debug("> readinternal - message object...

How do I find out if a class and a method exist in .NET dll, from powershell? -

i'm writing powershell script remove redundant entries globalsuppressions.cs file. 1 of techniques want use check whether class , method entry refers exist. suppression entry looks this [assembly: system.diagnostics.codeanalysis.suppressmessage("...", "...", scope = "member", target = "mynamespace.myclass#mymethod(namespace.parametertype1,... namespace.parametertypen)... from can extract qualified name of class, , method signature. can load dll powershell. can't figure out how ask "does class exist?" , "if does, contain method exact signature?" guess somehow achieved through reflection, far have no idea how. have 1 additional limitation, if possible, need perform check without instantiating class. script needs universal, run on many projects. there's no telling classes checked, code default constructors execute, or if have default constructor no parameters. oh, , if know solution in c#, please share it, there...

jquery - Hide/show all DIV but the one picked -

see have html code: <form method="post" id="product_create" action=""> <ul> <li id="tab1"><a href="#">step 1</a></li> <li id="tab2"><a href="#">step 2</a></li> <li id="tab3"><a href="#">step 3</a></li> <li id="tab4"><a href="#">step 4</a></li> </ul> <div id="categories-picker"></div> <div style="display:none" id="product-select"></div> <div style="display:none" id="product-details"></div> <div style="display:none" id="product-stock"></div> </form> i need show/hide div others picked one. in case if click in li#tab1 div#categories-picker should show , others should hide no matter...