Posts

html - Javascript for hover over one image to bring up another with description in a fixed place -

hey i'm trying create javascript, functions , html coding website working on.i have 8 small images on left hand side. default large image on right. want make when hover on each small image different large image replaces default large image on right hand side description between two. leftside small image1 small image2 small image3 small image4 small image5 small image6 small image7 small image8 middle *small image1 title* *small image1 description* rightside *large image* changes default large image through 8 different large images (and descriptions, default image has no description) when hover on small images. horizontal each other. any appreciated. thanks you can put middle , rightside in div, has id rightdiv, can load content of div ajax. onhover can perform new ajax call populate rightdiv new content retrieved ajaxcall. take @ ...

javascript - create a callback function instead of using a flag var to control when a specific function is done -

i have code snipet this: var nbrprevart = $("#accordion > div .accordionpanel").size(); var processing = false; if (nbrprevart == 0) { processing = true; getarticlespreview();//fetches articles first } //loop makes browser wait until finishes "getarticlespreview()" while(!processing) { } //getarticlespreview() finished can safely execute step $.ajax({ type: "get", url: "http://mydomain.com/somepage.htl", success: function(data) { alert(data);} }); //----------------------------------- function getarticlespreview() { //lenghty operation processing = false; } don't practical because using loop make wait until function competely executed perform next step. is there way define callback message called when first operation done , have second step ( $.ajax call) inside run properly? thank in advance! teixeira you create callback yourself, using apply function. juste have add callback par...

java - Difference between Eclipse and NetBeans -

possible duplicate: what difference between eclipse , netbeans if want use java in it? what difference between eclipse , netbeans ides? specific features of both ides? note: mac user eclipse has massive plugin library , enormous community behind it. i've found "pinwheel" when doing large refactors, other it's stable me. jsp editor, has, in past been weak me regards differentiating between html , embedded java. appreciate extreme configurability of layout of different perspectives. i've never been particularly thrilled it's editor theming regards color schemes. it's debugger top-notch. netbeans sort-of reference platform, know? said, it's plugin library not large, though have rather nice vi emulation plugin. it's felt slower me eclipse, no matter it. has been known out-right dump on me well. netbeans has nice integration different application-deployment platforms, such glassfish , tomcat.

Naming conventions in UNIX C functions (_t and _st) -

i notice there function return types named *****_t or ******_st . "_st" , "_t" mean? posix reserves names ending _t types. although quite common see code invents own type names ending _t , doing dangerous - can run posix systems define (different) type same name. in libmemcached source, looks _st suffix used indicate structure type: types.h:typedef struct memcached_st memcached_st; types.h:typedef struct memcached_stat_st memcached_stat_st; types.h:typedef struct memcached_analysis_st memcached_analysis_st; types.h:typedef struct memcached_result_st memcached_result_st; types.h:// of flavors of memcache_server_st types.h:typedef struct memcached_server_st memcached_server_st; types.h:typedef const struct memcached_server_st *memcached_server_instance_st; types.h:typedef struct memcached_server_st *memcached_server_list_st; i didn't find single instance of function ending _st (but may not have looked hard enough).

how to get email address of friends using facebook api in asp.net using c#? -

please example give me...dont give me reference site name or facebook sdk site..because used sdk asp.net , in friendlist class show me email hashes instead of email address,so there other way friend email full email address the facebook api has never , never expose friends email addresses. if want own account, facebook gives option sync friends & email addresses yahoo mail account , again feature not available through kind of api.

iphone - CALayer transformation - anchorPoint problem -

i work on card flip animation coreanimation. layer want animation uiview uiimageviews subviews. animation approach: cabasicanimation *animation = [cabasicanimation animationwithkeypath:@"transform"]; animation.duration=2.0f; animation.repeatcount=1; animation.fromvalue = [nsvalue valuewithcatransform3d:catransform3dmakerotation(0.0, 0, 1, 0)]; animation.tovalue = [nsvalue valuewithcatransform3d:catransform3dmakerotation(m_pi, 0, 1, 0)]; animation.removedoncompletion = no; animation.fillmode = kcafillmodeforwards; [layer addanimation:animation forkey:@"flip"]; the problem anchor point of layer seems wrong because animates view @ point x = 0. anchor point of layer has value (0.5, 0.5) any suggestions?

sharepoint - Add SPFolder in List Instance xml -

i've create custom list , included basic pieces (schema.xml, list template,..) package .wsp. have list instance defined, add folders xml. know can add splistitems using ..., i'm not sure how add spfolder. want add spfolders list instance default, can't seem find examples of doing this. wondering if has suggestions , sample code related how this. my answer guess how happen, have no sharepoint setup on home computer test it. i wonder, happen if included field fsobjtype in list instance xml. like: <data> <rows> <row> <field name="title">outgoing e-mail settings</field> <field name="fsobjtype">1</field> </row> </rows> </data> edit: seems not 1 think of such solution, seems trick won't work on custom lists, in custom document libraries: http://www.notesfor.net/post/2009/02/16/deploy-a-custom-splist-with-folders-from-onetxml.a...