Posts

javascript - jquery display a list of items in <ul> -

hi want display list of item inside sample html code <h3 id="game-filter" class="gamesection"> <span>game</span></h3> <div id="game-filter-div" style="padding: 0;"> <ul id="gamelist"> </ul> </div> code var games = new array(); games[0] = "world of warcraft"; games[1] = "lord of rings online"; games[2] = "aion"; games[3] = "eve online"; games[4] = "final fantasy xi"; games[5] = "city of heros"; games[6] = "champions online"; games[7] = "dark age of camelot"; games[8] = "warhammer online"; games[9] = "age of conan"; function pageloaded(){ var list = ""; for(i=0; i<games.length; i++){ list ="<li>"+games[i]+"</li>"; ...

Confused between Google's Universal Analytics and Async Analytics. Are we supposed to use both? -

after setting google analytics first time went admin > tracking code: apparently universal analytics given me. <script> (function(i,s,o,g,r,a,m){i['googleanalyticsobject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new date();a=s.createelement(o), m=s.getelementsbytagname(o)[0];a.async=1;a.src=g;m.parentnode.insertbefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('send', 'pageview'); </script> i can't find asynchronous tracking code (which this): <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setaccount', 'ua-xxxxx-x']); _gaq.push(['_trackpageview']); (function() { var ga = document.createelement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : ...

Access 2010 Data Macros Causing Form Refresh For No Reason -

i'd report bug microsoft, wondering if else has encountered this. ++++ here's interesting , obscure issue access 2010 data macros. the issue firing of before update data macro on table causing unwanted , unnecessary form refresh. refresh clearing selections several multi-select listboxes on th form. want selections stay. form worked wanted prior adding data macro (no clearing of mslb selections). to reproduce issue. this happening in split / front end - end scenario. front , both being access 2010 files. in end accdb... create table "items" id , description columns , date_updated column. put data macro on before update on table sets "date_updated" field now(). in front end accdb... items table linked... now create blank form unbound table. create unbound multi select listbox on form , populate via other table or value list (doesn't matter rowsource is) , can bound or unbound - doesn't matter. now notice if run form, select...

jsf - Composite component javax.faces.FacesException: Cannot find component "inputID" in view -

i have composite component works pretty when used once in page doesn't work if use more once. let's component called my:field: <composite:implementation> <h:form id="myform" prependid="false"> <p:message for="inputid" display="text"/> <p:inputtext binding="#{mybean.valuebind}" id="inputid" value="#{mybean.value}" required="true" /> <p:commandbutton process="@form" update="@form" action="#mybean.action} value="do something" ajax="true"/> </h:form> </composite:implementation> and use this: <my:field id="field1"/> that works fine, if add below it: <my:field id="field2"/> i following exception javax.faces.facesexception: cannot find component "inputid" in view. ...

assembly - 8086 TASM: Illegal Indexing Mode -

this question has answer here: illegal use of register in indirect addressing 1 answer i writing 8086 assembly program needs compile through tasm v3.1. running error can not seem fix. my data segment has following set purposes of keyboard input: parao label byte maxo db 5 acto db ? datao db 5 dup('$') what trying first character entered, first byte of datao: lea dx, datao mov bl, [dx] however, when attempt compile, error: **error** h5.asm(152) illegal indexing mode line 152 "mov bl, [dx]" any appreciated. if matters, running tasm through dosbox (my laptop running 64-bit win7) google hasn't come helpful answers. can post entirety of code if necessary. pretty sure reason can't use dx register pointer. try instead using [si], [di] or [bx]: lea bx, data0 mov al, [bx]

Validation rule - access other field CakePHP -

i try write custom validation rule , need other fields of model data gonna save make validation happen. can't find way pass data custom validation rule. array validate: [user] [name] => 'bob' [message] => 'this message' validate: public $validate = array( 'message' => array( 'rule' => 'customvalidatefunction' ) ); custom validate function: public function customvalidatefunction($messagearray){ $valueofmessage = $messagearray['message']; $valueofname = ? return true; } can point me in right direction?

html - Responsive Images using CSS background image -

i trying figure out best way approach creating responsive image fit whole background of div container. there 2 text boxes have rbga value need inline part of image. i wondering if better z index , put image in html or keep image in css background image? right now, rest of images using javascript, jquery , php resize images located in html. using media queries adjust page. trying not 3 images; maybe best option? here have far. have removed code not add confusion. attached jpg of trying accomplish. can paragraph divs line up; not responsively match image. <section id="content" role="main" class="cf"> <div class="mission"> <h1>we create</h1> <p>lorem ipsum dolor sit amet, consectetur adipiscing elit. donec libero odio, gravida sedconsequat a, faucibus dignissim</p> </div> </section> css .mission { background-image:url(../images/gallery_banner.jpg); ...