Posts

javascript - How to call to a function, with a string -

javascript - How to call to a function, with a string - i creating string headlines of table, making checkbox each headline, , should hide col if unchecked , show if checked. function set checkbox in div. i calling function when page loaded (onload in body) this function: function getfirstrow(table) { var table = document.getelementbyid(table); var row = table.getelementsbytagname('tr')[0]; var cells = row.getelementsbytagname('th'); var str = ""; (var i=0; < cells.length; i++) { str += "<input type='checkbox' onclick='hideorshowcol('treestable', "+i+", this);' checked='checked' />" + cells[i].innerhtml + " "; } document.getelementbyid("hideandshow").innerhtml = str; } and hide/show function: function hideorshowcol(table, col, e) { alert(e.checked); var iftoshow = ""; if (e.checked) iftoshow = ...

css - Include images as Inline in sass without Compass? -

css - Include images as Inline in sass without Compass? - i want add together images base64 in sass. have been locking @ compass feels way bulky , not i'm looking for. there way include images or other files inline in css without using compass? if utilize grunt, can utilize grunt-data-uri task in order accomplish conversation of regular url() string base64. datauri: { dist: { src: ['dist/styles/*.css'], dest: 'dist/styles/', options: { target: [ 'img/low-res/embeded/*.*' ], fixdirlevel: true } } }, essentially, task every images contained within embeded folder in .css. there, convert url() base64. css css3 sass

ios5 - Handle UIButton in Child View Controller of Container View Controller -

ios5 - Handle UIButton in Child View Controller of Container View Controller - i working on creating custom container viewcontroller class , able create 5 sub viewcontrollers , able move 1 kid view controller other kid using next api: transitionfromviewcontroller:fromviewcontroller toviewcontroller:toviewcontroller duration:1.0 options:0 animations:^{ } completion:^(bool finished) { }]; child view controllers occupying part of parent view controller. each time when user swipe making previous controller goes off , nowadays controller comes on displayable area. now have buttons on kid viewcontrollers , when click on them not getting events or trigger action method of kid view controller. parent view controller getting callbacks buttons childview getting displayed. please help asap. adding code snippet below (though little bigger, help analyze if doing mistake). ...

ember.js - Ember router: Asynchronous model (promises?) -

ember.js - Ember router: Asynchronous model (promises?) - [this new 1.0.0-pre.4+ router.] i want homecoming ember route's model method record needs asynchronous callbacks load, instance because requires load multiple (nested) models. what's best way this? here sample code hypothetical blog app illustrates problem: app.router.map -> @resource 'filteredarticles', path: '/:filter' app.filteredarticlesroute = ember.route.extend model: (params) -> blog = app.blog.find(1) # user's blog singleton property = switch params.filter when 'published' 'publishedarticles' when 'draft' 'drafts' when 'all' 'articles' # homecoming list of articles `blog` record. # `blog` hasn't finished loading :( blog.get(property) i'm in middle of rewriting travis ci newest ember version , faced same problem - fetch repositories slug (e.g. emberjs/ember.js ), not...

gps - How to track status of an users over static image in android? -

gps - How to track status of an users over static image in android? - as shown in image, static image overlayed on map view , want track users status using gps whether in yellowish or red, possible ? i think possible, you'll need downwards math bit it. don't think of 'in color someone' find image center coordinates, , see how far away user that. android gps maps

vba - Trouble referencing temporary, unsaved workbook when copying worksheets -

vba - Trouble referencing temporary, unsaved workbook when copying worksheets - i have bunch of worksheets want re-create new, temporary workbook -- without saving it. worksheet.copy copies worksheet new, unnamed'ish (book1, book2, book3, etc) workbook. want sheets copied same workbook. worksheets after first, have tried using worksheet.copy after:=xlwb.sheets(1) , not know how reference newly created workbook when setting xlwb workbook-object. maintain receiving run-time error 9, 'subscript out of range'. i appreciate help can give. edit: next relevant dims: dim xlapp excel.application dim xlwb excel.workbook dim xlwbold string dim xlws excel.worksheet dim xlwbnew excel.workbook dim xlwsold excel.worksheet dim xlrng excel.range dim xlrngold excel.range xlwbold = activeworkbook.name set xlapp = new excel.application xlapp.visible = true '*** quite of import set excel.visible,_ ...

asp.net mvc 4 - jQuery get "distinct" elements from a document -

asp.net mvc 4 - jQuery get "distinct" elements from a document - i creating footnotes helper asp.net mvc. have generated on page set of links similar to: <a rel="footnote" href="#fn:footnote1" data-text="note" data-ref="1">1</a> i want generate bottom section containing actual notes. goal take href , data-text each link , create li element @ bottom of page. this html generated section: <div id="6c708d57-abc0-4e53-ab0c-913f0b8c8020" class="footnote"> <hr /> <ol></ol> </div> and corresponding script: <script type="text/javascript"> $(function () { var footnotes = $('#6c708d57-abc0-4e53-ab0c-913f0b8c8020 ol'); $('a[rel="footnote"]').each(function () { var reference = $(this).text(); var text = $(this).attr('data-text'); var href = $(this).attr('href').substri...