Posts

javascript - Change DIV in one remove/append -

here doing, create div structure dynamically var divt = $('<div id="toplevel"></div>'); divt.append('<div id="child1"><div class="content1"></div></div>'); divt.append('<div id="child2"><div class="content1"></div></div>'); i store clone separate node , add dom. this.emptydivt = $(divt).clone(); maindiv.append(divt); later on in code want replace contents of top level div using 1 remove/append. firstly create new node saved... this.newdivt = this.emptydivt.clone(); here want child divs , append new content , have tried various function can't work eg. var childdiv = this.newdivt.find('#child1').html(); childdiv.append('<div> new content</div>'); then after replace top level div maindiv.remove('#toplevel'); maindiv.append(this.newdivt); so there way child div jquery or js node not in do...

eclipse - Import existing Android project results in a lot "bugs" in JNI folder -

i have eclipse project native library , need copy project machine. i coping project folder there , use "file->new->android project existing code". using tick "copy projects workspace". then go jni folder , see lot of bugs "unresolved inclusion: ", "type 'jnicall' not resolved", "method 'getstringutfchars' not resolved", etc. 31 errors @ all. i trying compile jni library. no problem. has compiled still see bugs see before. trying launch android application , saying me project containing errors. this problem native libraries. how fix this? go project propriets >> c/c++ general >> paths , symbols , add: "/home/ademar/android-ndk-r9/platforms/android-18/arch-arm/usr/include" you can include de x86 , mips version too: "/home/ademar/android-ndk-r9/platforms/android-18/arch-x86/usr/include" "/home/ademar/android-ndk-r9/platforms/android-18/arch-mips/usr/in...

javascript - do not understand object oriented programming -

i have looked @ number of tutorials i'm still struggling following code, can please explain code. can please explain each part , oit does. function person (name, age) { this.name = name; this.age = age; } var agedifference = function(person1, person2) { return person1.age - person2.age; } var alice = new person("alice", 30); var billy = new person("billy", 25); // difference in age between alice , billy using our function var diff = function person(name, age) { // define _constructor_ called _person_ this.name = name; // constructor sets instance property _name_ this.age = age; // constructor sets instance property _age_ } // when invoked _new_, creates an.. // ..object instance of person var agedifference = function (person1, person2) { // function (expression) return person1.age - person2.age; // returns difference.. } // ..between _age_ properties var alice ...

TYPO3: show/hide specific menu items depending on current language -

typo3 version 6.1 my page structure: root page1 subpage1-1 subpage_only_for_fr_1-2 subpage_only_for_de_1-3 page2 subpage2-1 subpage2-2 my menu structure same (except root item): page1 subpage1-1 subpage_only_for_fr_1-2 subpage_only_for_de_1-3 page2 subpage2-1 subpage2-2 my menu ts is: leftnav = hmenu leftnav { 1 = tmenu 1 { wrap = <ul>|</ul> no = 1 no { wrapitemandsub = <li>|</li> stdwrap.field = title } act = 1 act { wrapitemandsub = <li class="active">|</li> stdwrap.field = title } } 2 < .1 } i have 1 additional language site (default = deutsch, additional = french): [globalvar=gp:l=0] config.sys_language_uid = 0 config.language = de [global] [globalvar=gp:l=2] config.sys_language_uid = 2 config.language = fr [global] i want show/hide pages ...

php - column filter in datatables -

i implementing datatables plugin, in page, individual column should filtered.i trying implement following following link: http://datatables.net/release-datatables/examples/api/multi_filter_select.html but not working. there file have include? added <tfoot> also. please me. you should use: $(document).ready(function() { var otable = $('#example').datatable({ "aocolumndefs": [ { "bsortable":false,"atargets": [xxx] } }); } ); where xxx column number (starting first column = 0) wish sorted. see documentation more details.

vba - Is there a way to use an input value (textbox) of a userform as a variable for another userform? -

ok trying accomplish: have 1 userform asks how many new orders user needs process. set user input variable in code (not sure if anything). private sub commandbutton1_click() userform2.show ordernum.text = neworders 'i changed textbox name ordernum end sub then when userform2 pops up, want able input more data more specific information orders. if on userform1 entered in 3, want have submit new data userform2 3 different times. tried using - next loop (below) doesn't work. i'm not sure how (or if) can store variables between userforms. private sub commandbutton1_click() dim lrow long dim ws worksheet set ws = worksheets("core info") ordernum.text = neworders lrow = ws.cells(rows.count, 2).end(xlup).offset(1, 0).row = 1 neworders ws.cells(lrow, 1).value = textbox1.text ws.cells(lrow, 3).value = textbox2.text next userform2.hide end sub the second userform pops should, nothing works after that. can tell me fix this? note: realize of above star...

html - CSS triangle with background image -

Image
this question has answer here: how css triangles work? 17 answers creating transparent arrow above image in css3 2 answers respected stackoverflowers, how create triangle element background pattern? for example need div : but state : all examples triangle elements use borders cant have img in .... this subsection class needs coolarrow: <div class="subsection"><span>ryan gosling, mr landlord</span></div> .subsection { .box-shadow (0, -1px, 1px, 0, rgba(0, 0, 0, 0.3)); background: url('/assets/pattern-lorem.png'); // inner part of slider have pattern display: block; clear: both; float: left; width: 100%; padding-top: 15px; padding-bottom: 15px; display: none; } .subsection { position:relative; } .sub...