Posts

gwt - How to add a Button to a HeaderSpan in SmartGWT? -

gwt - How to add a Button to a HeaderSpan in SmartGWT? - i want add together button headerspan in smartgwt. @ start, title of button + (plus), when user clicks button, rows of table shown , title of button becomes - (minus). there around 25 columns in listgrid hence want behaviour. i have tried using headerspan.setattribute("button", new button("+")) method did not work. please help. any other approach hide/unhide columns much appreciated. i've watched link. per overview given in screen, provide hide/show of particular column particular headerspan. on right side of each column dropdown button given visible on mouse on & serves purpose. if want alter it's icon, can seek next code, headermenubuttonicon path of image: grid.setheadermenubuttonicon(headermenubuttonicon); hope helps you. gwt smartgwt

objective c - CATransition NOT working when kCATransitionFromTop -

objective c - CATransition NOT working when kCATransitionFromTop - catransition not working when subtype kcatransitionfromtop . calayer *layer = [self.view layer]; catransition *transition = [catransition animation]; transition.type = @"pagecurl"; transition.duration = 0.5; transition.delegate = self; if(viewmode == portrait) [transition setsubtype:kcatransitionfromright]; else if(viewmode == upsidedown) [transition setsubtype:kcatransitionfromleft]; else if(viewmode == right) [transition setsubtype:kcatransitionfrombottom]; else if(viewmode == left) [transition setsubtype:kcatransitionfromtop]; [layer addanimation:transition forkey:nil]; everything works fine except kcatransitionfromtop . (comes bottom) i think subtype of @"pagecurl" can't fromtop , default value ( frombottom ) is assigned. right? , there anyway prepare this? objective-c ios

Can't Logout of my Facebook OAuth Session without logging User Out of Facebook -

Can't Logout of my Facebook OAuth Session without logging User Out of Facebook - per sdk, using logout.php redirect: https://www.facebook.com/logout.php?confirm=1&next={some url}&access_token={accesstoken} it logging me out fine, it's logging user out of facebook. isn't there way of logging out of oauth session without logging out of facebook? yes, ran same issue myself. dont logout.php or js sdk's fb.logout(). rather phone call graph api http delete command me/permissions . kill access token, remove app user's app listing , maintain browser's cookie facebook. can phone call either server side or client side. here's client side javascript sdk way: fb.api("me/permissions","delete", function(response){/*do if want*/}) facebook oauth

iphone - putting local tabBar on the global tabBar (I have a global tabBarController) -

iphone - putting local tabBar on the global tabBar (I have a global tabBarController) - i have set 1 global tabbarcontroller in iphone app have been working on. in 1 of screen needed set local tabbar different global tabbarcontroller. i have done in 2 ways: 1) hiding global tabbar self.tabbarcontroller.tabbar.hidden = yes; , putting local tabbar in place of in view. frame of tabbar showing blank white. 2) tried adding local tabbar subview of global tabbar worked after screen unloaded not removing local tabbar though applying [localtabbar removefromsuperview]; thanks in advance.. global tabbarcontroller: tabbarcontroller = [[uitabbarcontroller alloc] init]; tabbarcontroller.viewcontrollers = [nsarray arraywithobjects:activitytabnav,nav2,privatechatnav,exploretabnav,nav3,temptabnav, nil]; localtabbar tabbar on view xib of viewcontroller. in viewdidload > uiwindow* window = [[uiapplication sharedapplication] keywindow]; [window addsubview:self.tabbar]...

Can't get comments to display correctly and comments not showing in moderation tool -

Can't get comments to display correctly and comments not showing in moderation tool - i'm setting facebook comments on wordpress blog. have specific requirements can't utilize wordpres plugins this. problem can't fb comments show comment count or show comments in fb moderation dashboard. attached how comment box coming out i used facebook page instructions setting fb comments: https://developers.facebook.com/docs/reference/plugins/comments/ created new app , have app id. have 2 fb meta tags app id , admin in header. used settings in image below. first under , other in comments.php file. where going wrong? i able resolve first of issues. create comment count (the noe has drop downwards alternative sort comments) show, reduced number of default number of posts ( data-num-posts="2" 15 had set default 2. still don't have in moderation panel though comments facebook-comments

html - Preventing repeating background from appearing through offset transparent child elements? -

html - Preventing repeating background from appearing through offset transparent child elements? - so, have layout have repeating transparent shadow element set background of parent container element. set atop this, , supposedly hovering on topmost border of background, supposed image frame , drop shadow. however, because image frame continues parent element, background image continues upward. visible vertical lines above top border of frame's drop shadow. see screenshot below: this happens regardless if utilize transparent image or css3's box-shadow property. setting negative margins doesn't work bring out of parent element, nor setting positioning relative or absolute. normally i'd seek "fake" transparency effect setting solid image @ top border of image frame, there's repeating stucco pattern set body background, means there'd visible, unnatural-looking edge. (insert cursing re: repeating patterns here.) any suggestions how preve...

Python String method Obscured -

Python String method Obscured - i'm trying split string returned python implementation of interactive broker's api, maintain getting a: attributeerror: 'tickprice' object has no attribute 'split' def my_price_handler(msg): fields=msg.split() print fields[0] checked api code , (1) msg string , (2) 'split' not redefined elsewhere. msg string looks <tick cost tickerid=1, field=1, price=74.0, canautoexecute=1> , can printed console directly. same error message when using syntax: def my_price_handler(msg): fields=string.split(msg) print fields[0] i have imported string @ top of program. is variable scope issue? clearly, msg not string when enters my_price_handler ; it's tickprice . put print(type(msg)) before split phone call convince of fact. (the fact msg can printed not mean it's string, if that's thought.) python string