Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

javascript - Refresh after Facebook like is clicked -


am trying build facebook canvas app (iframe). head section have xfbml (fb:like) mid way thru page have fql call see if user has particular fan page or not (this app linked directly fan page) if user has liked page see x content, if not see y content - part if working fine - part struggling page automatically refresh after user clicks see x content. if manual refresh works so, have tried adding java event subscribe guess monitors page onclick scenario.....

this kind of works, firefox pop asking resend data before page refresh.

the current app page is: apps.facebook.com/marqueenightclub/ workflow trying emulate similar l'oreal app: apps.facebook.com/menexpertwhiteactiv/ prior clicking content user seesy content, clicking triggers x content

any appreciated - regards tony

if want full page refresh, eg. if you're doing server-side sdk, can use following code:

fb.event.subscribe('edge.create', function(response) {       top.location.href = "http://www.facebook.com/yourpagename/app_yourappid" }); 

you'll have hard code in app's url on facebook. because window.reload() wont work, , neither top.location.href = top.location.href.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -