I've got an application that exists primarily for use as a tab, with the canvas page acting as a control panel. When a user authorizes the tab for their page, Facebook redirects to the page url (e.g. http://www.facebook.com/pages/PAGE-NAME … nstalled=1) with the Wall visible, but I would like it to redirect to the canvas page (e.g. http://apps.facebook.com/APP-NAME/?fb_p … nstalled=1). My reason for this is that I need the fb_page_id so I can link the page installed to their saved settings on my end.
Is there some setting I need to change to enable it, or FBML to add to the tab? You can see a working model of this by installing an Involver tab (http://involver.com/), as the app will automatically redirect to the canvas page with both the fb_page_id and installed variables.
Thanks!
Related
I have a question that suppose, I have an Admin Dashboard page, on which I have given a list of users. clicking upon a particular user the details of corresponding user is shown on a different page (say on userDetails.jsp). Now I have a back button on userDetails page, Clicking of which I need to redirect admin to the last visited page that is Admin Dashboard page, I have one solution that I can "Reload" the previos page on clicking back button, but then I feel that there is the overhead of calling a server side API, retrieving all the data, Again redraw the whole admin dashboard page even when there is no change made in the userDetails[because it is read only page, modification is not allowed there]. Is there anyway that I can make user of cache or anything else so that I will not need to go to the server to fetch all the data again. I am using spring MVC, angularjs, Thank you.
On your button's click event add the following code:
$window.history.back();
make sure to use $window rather than window since you're using AngularJS
I am creating a web application from scratch. I have login form page which on successful authentication, navigates user to home page where we will have a menu bar and dashboard view. Now user can click on any menu option and navigates between pages.
My problem is i have to use ng-view in home.aspx and not in login.aspx. And all my scripts are included in login.aspx page. When I write routing in the home.aspx ng-view wont work. Can you please guide here?
You can add your scripts to your layout page which is the parent of all pages when you add script over there it will be accessible to all application pages
I have a design where login screen looks completely different from the dashboard UI.
Once the user logs in he is shown a dashboard where he can control things.
Now,the login screen just occupies the whole view with a form box in centre.
once user logs in, then he is taken to the dashboard.
In our current approach we have kept login as a separate angular app and dashboard as separate as I am planning to use a view that changes except the sidebar and header as the ng-view for teh dashboard.
Currently the whole login screen is a separate app, which i feel is little weird when it comes to dealing with things, so is it possible to have an overlay which occupies the whole screen and goes away when the user logs in ?
Of course it is. There are a couple options here. Some folks simply force you to the /login route until a successful login has been completed, token stored, etc. The other option is that you use a full-sized, absolutely-positioned container, with highest z-index, and place it on your main index.html. Until something changes, that's all you'll see. Then, use ng-If to remove that container once login is complete and a property of the view-model has been updated, such as navModel.loginComplete=true;
I am new to silverlight. I'm trying to convert a jquery tabcontrol page to a SL 4. on my previous page each tab was containing an iframe with its URL to an external page. Let's say, the first one is http://Google.com, the second one is http://Microsoft.com etc.How can i make in SL.
SL 4 introduced a Web browser control which used to be available only in 3rd party offers previously (ComponentOne for instance)
So you just have to add two tabs to your tab control, define a web browser control as the content of each tab and call Navigate to go to a specific Url
I am developing an windows UI application in WPF with MVP architecture with C#.
The application will interact to sqlserver and displays the data to the user.
I have 2 buttons REFRESH and RESET. which refreshes the page and resets the page to the home page respectively.
As I searched in few forums,navigationservice is recommeneded,but I couldnt see navigationservice.refresh() command
Refresh should refresh the page (current page) and the reset should reset to the homepage as per my appication.
Please help me in doing this.
Thanks
Ramm
You need to create custom commands for each of your buttons. The RefreshCommand can reload the data bound to your view, and you can use the ResetCommand to call the NavigationService to navigate to your home page.