Posts

php - how to dropdown option keep selected after page loads onchange -

how can dropdown option keep selected after loading page function onchange? can load page according selected value dropdown. , after loading page it's selected first value default. <select id="extdropdown"> <option>select extension</option> <option value="*">all</option> <option value="zip">zip</option> <option value="rar">rar</option> <option value="php">php</option> <option value="html">html</option> <option value="htm">htm</option> <option value="jpg">jpg</option> <option value="bmp">bmp</option> <option value="txt">text</option> <option value="docs">docs</option> <option value="xlsx">xlsx</option> <opt...

Hide Row from dev gridview vb.net -

Image
i want remove/hide row (in orange) grid, don't know row mean. thanks. i see auto filter row feature enabled on screenshot. feature row allows data filtered on fly - typing text within row. to disable feature set gridoptionsview.showautofilterrow property false . you can restrict option activating end-user via hiding "show auto filter row" check item within column header context menu . this, set gridoptionsmenu.showautofilterrowitem property false .

ios - Could not add private pod as a dependency in other pod? -

i working on private pod, , when tried add dependency private pod getting error while running "pod update": [!] error installing eemypod [!] attempt read non existent folder `/volumes/development/work/projects/pods/eagle-eye-ios-pod/example/pods/eemypod`. i have no clue why happening! but, while running: pod spec lint i getting this: attempt read non existent folder `/private/tmp/cocoapods/lint/pods/eemypod` which think might clue. this podfile: pod::spec.new |s| s.name = "eemypod" s.version = "0.1.0" s.summary = "a short description of eemypod." s.description = <<-desc optional longer description of eemypod * markdown format. * don't worry indent, strip it! desc s.homepage = "https://github.com/codigami/eemypod" # s.screenshots = "www.example.com/scr...

javascript - Copy object with results of getters -

i have object contains getter. myobject { id: "myid", title () { return myrepository.title; } } myrepository.title = "mytitle"; i want obtain object like: myresult = { id: "myid", title: "mytitle" } i don't want copy getter, so: myresult.title; // returns "mytitle" myrepository.title = "another title"; myresult.title; // should still return "mytitle" i've try: $.extend(): doesn't iterate on getters. http://bugs.jquery.com/ticket/6145 iterating properties suggested here , doesn't iterate on getters. as i'm using angular, using angular.foreach, suggested here . properties , not getters. any idea? thx! update setting getter using object.defineproperty as: "title": { get: function () { return myrepository.title; }}, as can read in doc: enumerable true if , if property shows during enumeratio...

oracle - SQL: Merging rows with comma separated values in columns -

we have table this: group | user | team ------------------- grp1 | u1 | t1,t2 grp1 | u2 | t1,t2,t3 grp1 | u3 | t4 grp2 | u4 | t2,t4 grp2 | u5 | t5 i want create view has data this: group | teams ------------- grp1 | t1,t2,t3,t4 grp2 | t2,t4,t5 can please me? tried doing few trail , errors , @ state not sure start now here approach. using cursor can in while loop also. issue teams in new table not distinct think can play string commands , sort issue. create table #tbl1 ([group] varchar(20), [user] varchar(20), team varchar(20)) insert #tbl1 ( [group], [user],team ) values ( 'grp1', 'u1', 't1,t2'), ( 'grp1', 'u2', 't3,t4'), ( 'grp1', 'u3', 't4'), ( 'grp2', 'u1', 't1,t2'), ( 'grp2', 'u2', 't3,t4') create table #tbl2 ([group] varchar(20), team varchar(20)) declare @listofteams varchar(max) declare @grp varcha...

php - Extending an IF statement -

this question has answer here: php if statement multiple conditions 8 answers in wordpress want call specific secondary menu in event page called foo called. i've got beviour working using following: <?php if (is_page('foo') ) : ?> <!-- nav html --> <?php endif; ?> however i'd same secondary menu shown on other pages, such foo2 can call recycling of above: <?php if (is_page('foo2') ) : ?> <!-- nav html --> <?php endif; ?> what best way join these statements? instance doesnt work: <?php if (is_page('foo','foo2') ) : ?> the wordpress docs suggest example code: <?php if (is_page('foo','foo2') ) : ?> should work fine. http://codex.wordpress.org/function_reference/is_page however not particularly familiar wordpress, alternative can use php's...

Bad character encoding in LoadRunner -

when record siebel script, , run it, status error code of error , message this: \xce\xe1\xff\xf7\xe0\xf2\xe5\xeb\xf2\xed\xfb\xe9 ........ what character encoding , how can decode normal text? think it's russian text, describe error, wrong. found answer. it's simple win1251 shows utf8, \x.