Posts

ajaxcontroltoolkit - Ajax Toolkit modal popup -

i have built application uses ajax toolkit modal popups. application tests fine on browsers run local iis on visual studio. when deployed iis 8.5 application works fine on chrome, ff , edge - (modal popup showing) on ie 11 , ie 10 modal popup not show. does have hint why is? kai i have solution. 1) donwload html5-dataset.js ( https://gist.github.com/brettz9/4093766 ) , save on folder /scripts 2) add code on page <asp:scriptreference path="~/scripts/html5-dataset.js" />

php - Multidimensional array Converting inside arrays to strings -

array ( [0] => array ( [0] => array ( [masteryid] => 6111 [rank] => 5 ) [1] => array ( [masteryid] => 6122 [rank] => 1 ) [2] => array ( [masteryid] => 6131 [rank] => 5 ) [3] => array ( [masteryid] => 6142 [rank] => 1 ) [4] => array ( [masteryid] => 6151 [rank] => 5 ) [5] => array ( [masteryid] => 6162 [rank] => 1 ) [6] => array ( [masteryid] => 6211 ...

appcelerator - Image caching on Android 6.0 -

i having problems appcelerator titanium caching on android 6.0 devices. i've tried using 5.2.2 , 5.3.0 no avail. steps reproduce: create image view , set image url want cache. open app on android 6.0 device internet connectivity. image loads up. close application turn off wifi open app on 5.0 devices, image loaded without issue cache. on 6.0, it's loading default image. thought going solved fix included on 5.3.0, https://jira.appcelerator.org/browse/timob-20470 , apparently it's separate issue. is happening else? there workaround 6.0 devices? it looks same issue described in linked ticket. image not saved in temp directory not cached. issue fixed in sdk 5.4.0 not officially released yet. can try continuous build. installing sdk run following command in cli. appc ti sdk install --branch 5_4_x 5.4.0.v20160608165242

cakephp 2 validation error messages do not display -

here model contacts.php <?php app::uses('appmodel', 'model'); app::uses('validation', 'utility'); /** * base application model * * @package croogo * @link http://www.croogo.org */ //$validate = new validator(); // 'alphanumeric' => array( // 'required' => true, // 'allowempty' => false, class contacts extends appmodel { var $name = 'contacts'; var $usetable = false; var $validate = array( 'contactsaddress' => array( 'rule' => 'notempty', 'required' => true, 'message' => 'the address required'), 'contactsemail' => array( 'rule' => array('email', true), 'required' => true, 'message' => 'a valid email required' ...

c# - WPF - ItemControl DataBinding in a WrapPanel/Grid -

i read out images own datatype , sync list grid/wrappanel via itemcontrol binding. my xaml: <wrappanel > <itemscontrol name="images"> <itemscontrol.itemtemplate> <datatemplate> <image source="{binding link}" stretch="none" ></image> </datatemplate> </itemscontrol.itemtemplate> </itemscontrol> </wrappanel> c# code: public mainwindow() { initializecomponent(); list<movie> items = new list<movie>(); items.add(new movie() { name = "movie1", link = "http://www.airvana.com/default/cache/file/1601d22d-9266-de31-d6b8d178db2933dc_small.png", column =0 }); items.add(new movie() { name = "movie2", link = "http://www.airvana.com/default/cache/file/1601d22d-9266-de31-d6b8d178db2933dc_small.png"}); items.add(new movie() { name = "m...

go - Parsing integer from exec.Command output -

i'm trying run command inside go program , parse integer response. command returns output this: 6 fyb_src/ex1.fyb (1) wins! splitting lines , removing whitespace strings.split , strings.trimspaces works fine. however, while trying parse number integer following error: panic: strconv.parseint: parsing "0 \r1 \r2 \r3 \r4 \r5 \r6": invalid syntax but printing string i'm trying parse terminal yields following result: 6 i'm not sure go here. number looks integer me. error message isn't useful either (at least me). have idea? edit: code i'm running out, _ := exec.command(pwd+"/osx_fukyobrane_amd64", "fyb_src/"+filename, "fyb_src/salty.fyb", "t").combinedoutput() parts := strings.split(string(out), "\n") fmt.println(parts[0]) rounds, err := strconv.atoi(strings.trimspace(parts[0])) if err != nil { ...

delphi - ClientDataSet: Automatically apply the reconciled delta? -

in onreconcileerror event clientdataset, can tell ramerge , saves changes delta, ready apply updates without errors. there way tell dataset apply delta in onreconcileerror event? can think of convoluted way check if errors reconciled in afterapplyupdates event. so did have centralized code applying updates, , realized best place check if user requested merge. may still need clean bit, might solution others running problem. if(cds.changecount > 0)then begin fismerged := false; errors := cds.applyupdates(0); if(errors = 0)then begin cds.refresh; end //if there conflict, user might try merge. //if do, need reapply update. else if(fismerged)then begin errors := cds.applyupdates(0); if(errors = 0)then begin cds.refresh; end; end; end; fismerged class variable set in on reconciled handler. action := handlereconcileerror(dataset, updatekind, e); if(action = ramerge)then begin fismerged := true; end; ...