Posts

html - How can I make space between two buttons in same div? -

Image
what best way horizontally space bootstrap buttons? at moment buttons touching: <div class="btn-group"> <button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown"> <i class="icon-in-button"></i> add list <span class="caret"/> </button> <ul class="dropdown-menu"> <li> <a href="#">here</a> </li> <li> <a href="#">new</a> </li> </ul> <button class="btn btn-info"> <i class="icon-in-button"></i> more </button> </div> jsfiddle showing problem: http://jsfiddle.net/hhimanshu/sylrq/4/ put them inside btn-toolbar or other container, not btn-group . btn-group joins them together. more info on bootstrap documentation . ...

asynchronous - How to asynchronously load a google map in AngularJS? -

now have found way initialize google maps of andy joslin in initialize-google-map-in-angularjs , looking way asynchronous load google map object. i found example of how in phonecat project. notice how js files loaded in example: index-async.html in jade scripts partial loaded program tried: script(src='js/lib/angular/angular.js') script(src='js/lib/script/script.min.js') script $script([ 'js/lib/angular/angular-resource.min.js', 'js/lib/jquery/jquery-1.7.2.min.js', 'http://maps.googleapis.com/maps/api/js?key=aizasybtmi_pcxmztlx5mwfrqgbveyx-h-pdxo4&sensor=false', 'js/app.js', 'js/services.js', 'js/controllers.js', 'js/filters.js', 'js/directives.js', 'bootstrap/js/bootstrap.min.js' ], function() { // when done, execute bootstrap angular application angular.bootstrap(document, ['ofm']); }); when , go load map page g...

windows phone 7 - WP7 Deserialize JSON -

i'm new c# , having problems below giving invalidcastexception on line addresses address = (addresses)serializer.readobject(e.result); : namespace my_app { [datacontract] public class addresses { [datamember(name = "line1")] public string line1 { get; set; } [datamember(name = "line2")] public string line2 { get; set; } [datamember(name = "postcode")] public string rpostcode { get; set; } [datamember(name = "city")] public string city { get; set; } [datamember(name = "state")] public string state { get; set; } } public partial class sim : phoneapplicationpage { public sim() { initializecompon...

getting result from JSON in iphone SDK with strange character and numbers -

i developing iphone app receive data sql server through php file in json format , work fine when test on safari browser, used sbjson framework develop json in app ,i received data in app in wrong format : ["&#x0627;&#x0644;&#x062f;&#x0631;&#x0633; &#x0627;&#x0644;&#x062b;&#x0627;&#x0644;&#x062b; &#x0639;&#x0634;&#x0631; - &#x0627;&#x0644;&#x0645;&#x0624;&#x0642;&#x062a; - uidatepicker ","&#x0627;&#x0644;&#x062f;&#x0631;&#x0633; &#x0627;&#x0644;&#x062b;&#x0627;&#x0645;&#x0646; - &#x0627;&#x0644;&#x0627;&#x0646;&#x062a;&#x0642;&#x0627;&#x0644; &#x0645;&#x0646; &#x0635;&#x0641;&#x062d;&#x0647; &#x0644;&#x0627;&#x062e;&#x0631;&#x0649; - uiswipegesturerecognizer","&#x0627;&#x0644;&#x062f;&#x0631;&#x0633; &#x0627;&#x0644;&#x0627;...

javascript - Code by Paul Irish - Good or bad practise? -

i checking view source of site http://mothereffinghsl.com/ . coded paul irish in code id of html elements not enclosed in quotes few elements. other elements id enclosed in quotes. practice. mistake or purposefully omitted? dont think person paul has overlooked it. <div id="main" role="main"> <h1>mother-effing <span>hsl()</span></h1> <canvas width=360 height=100><a href="http://noyoueatabagofdicks.com/">your browser doesnt support canvas.</a></canvas> <span id=loading>one sec, bro.</span> <label id=sat>saturation</label> what thoughts? edited after accepting answer conclusion: in html5 quotes not necessary, recommend reasons mentioned in comments. also not practice use quotes attributes , not other though supported. he's using html5. attribute quotes optional in html5 (and html 4, not in xhtml). see do quote html5 attributes? , http://mathiasbyn...

java - jaxws import. binding file being ignored -

i trying generate java classes using jaxws. problem binding files being ignored. have 2 binding files in bindingdirectory. maybe ? <profiles> <profile> <id>generate model (pojos) wsdl</id> <activation> <activebydefault>true</activebydefault> </activation> <build> <!-- jax-ws provides tool called wsimport takes wsdl of web service , generates proxy classes or wsdl's service , port definitions. these can used access web service endpoint. --> <plugins> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>jaxws-maven-plugin</artifactid> <executions> <execution> <id>id1</id> ...

gridview - Process after grid was loaded completely using ExtJS -

i using extjs load data grid, , want add additional processes after data put on grid completely. my context is, after data put on grid, check rows, , mark of them disabled based on specified condition , put tooltip row (explain why disabled). tried use 2 events: 'afterrender' of grid, , 'load' of grid's store, did not work. because grid's 'afterrender' fired when first grid initialization, not concern data load. store's 'load' fired when data prefetch store (not render on screen), cannot row <div> style disabled. so, event detect when data loaded , rendered on grid? , how can implement requirement? i think task don't need wait until grid loaded rather use viewconfig option grid panel configure how display rows: viewconfig: { getrowclass: function(r) { if (r.get('disabled')) return 'disabled-class'; else return ''; } }