If I want a single page turn animation, not book style with two pages show and not the sticky notes ripping off a a page can I use a built in animation like page curl or do I have to use leaves?
(The reason I ask is with a Google search I've found plenty of conflicting information.)
I would use leaves if that is what you are looking for. The reason being is that Apple's has custom transitions that are for private use only - see the following question: List of pushViewController Transitions.
Page Curl also appears to be using private APIs. This article recommends using leaves to get the Page Curl animation. Good luck!
Related
I would like to use a javascript function link such as 'link:j-myJS-data' for drill down type charts. I have everything working great to drill down but cannot figure out how to incorporate the overlayButton through the configureLink when drilling down. At present, I can drill down but cannot go back. Can anyone provide a basic example of how I may go about this? Is it even possible?
I thought I could add my own "Back" button to hande this as one option. I do not want to use a jsonURL as there is a lot of data and many paramertes need to be passed resutling in a long links and a lot of extra data in the JSON.
Thanks in advance.
There are multiple options available to create a drill-down chart with FusionCharts XT. Here is a table which explains all of them, with each one's syntax.
The method that you've used is the JavaScript function link. Using this one, you won't get an overlay button to go back to the parent chart.
The overlay button is available only when a LinkedChart is created.
So there are 2 ways that you could go about:
You could change all your charts to use the LinkedCharts technique. Here is a blog post detailing how LinkedCharts can be created using PHP + MySQL. If you aren't using PHP, the general idea shown still applies to any server-side environment.
You could create a separate button sitting near the chart, and this button would re-create the parent chart for you.
The button (which we call "overlay-button") can be made automatically visible using LinkedCharts alone.
However the overlay-button can be internally invoked using the charts' private API. Since these APIs are private, it may change between implementations and may not work as desired under certain circumstances. I would not recommend you to use this. If you are still interested in knowing more on this API, put in a comment and I will update this post.
According to the docs, the "Add to Timeline" button will be deprecated as of August 2012. Unfortunately, there is no guidance on how to achieve the same functionality. Perplexingly, the Open Graph tutorial uses the button (which seems unwise given that it will be broken in a couple months). Since I'm writing a new implementation of actions/timeline right now, I'm not going to include something that I'll have to delete in a couple months. Everything works fine with AJAX and the PHP-SDK and only two issues remain unresolved (which I imagine the button would handle):
No way to tell if an action is posted already. I have "unique" enabled already but I have no way to hide the "Add to timeline" option if it's already posted.
No nice visual. I could render the current (soon to be deprecated) button and steal the image but I'd prefer to use something that will look the same as other sites and make users comfortable that they know what will happen when they click.
Does Facebook have a replacement for this button? Or are all timeline posts supposed to be taking place silently after an initial permission grant? I thought Facebook encouraged more user approval for Timeline actions--where is that control supposed to go? To third party UI elements? Doesn't that undermine some of the power of the Facebook ecosystem--the fact that it's the same buttons with the same behavior everywhere on the web? It's kind of frustrating the way it's presented now--pushing you in one direction in the tutorial only to tell you that the feature will be deprecated within months. I've mostly given up hope for problem #1 but is there an official non-deprecated button that will give me a nice comforting visual?
Also, are there other features that this button does that are being/have been transitioned to other plugins?
EDIT: Does it make sense to link the "Like" button to a timeline event? It seems like semantically that would make sense but there doesn't seem to be any built-in way to do it.
I'm working on a wepbage where I have a Bing map, along with pushpins. When clicking on pushpins, I am supposed to show a tooltip with custom content - something which would ideally be pulled out from the database through ajax.
This custom content is likely to contain youtube video, some html, as well as some buttons and links with specific actions.
My question is what to use to implement this? I see two potential solutions:
Something like qTip or Fancybox: pros for this approach are that I am pretty familiar with either of these two, and that they can display virtually any content provided. Cons are that I may be having difficulties integrating the solution with the Bing maps (for example, when I move the map, I need to move the tooltip as well)
Infobox - as far as I know, regular part of Microsoft's api, well integrated with the maps. However, I have no idea how to fill Infobox with Ajax response. Moreover, I don't know how well Infobox can cope with rich html.
So, what to go for?
Thanks
There are a couple of options. The first option is to us the built in infoboxes in Bing Maps by setting the htmlContent. I have a blog post on how to do this here: http://rbrundritt.wordpress.com/2011/11/08/simple-custom-infoboxes-in-bing-maps-v7/
The second method is to use the custom infobox module I created here: http://bingmapsv7modules.codeplex.com/wikipage?title=Custom%20Infobox%20Control
I need to create an interactive Facebook Tab for a client, similar to this:
http://www.facebook.com/#!/knnktr.
The application has a number of slides, which are basically images that will scroll left/right as the visitor clicks on two arrows on either side of the displayed image.
I could do this in Flash, but I could also attempt doing this with JavaScript.
Now, I understand that Facebook's APIs often change, and iframe's are currently not an option.
What is the best/correct way to achieve this. Should I stick with the Static FBML? If we have an option to use JavaScript, we'll prefer that above Flash. The question is, does the Static FBML limit the ability to perform some JavaScript calls.
I need to respond to mouse clicks, and I also need to be able to make remote AJAX requests to our server.
If you're building a tab, FBML/FBJS are your only option. The official FB docs for FBJS are pretty good: http://developers.facebook.com/docs/fbjs/
A couple caveats about FBJS:
They rewrite your Javascript to only allow limited functionality. If you're used to a nice Javascript lib like jQuery you're out of luck.
You can't use external js includes, the Javascript must be in the same page
Take a look at the event, animate and AJAX sections in the docs. Taking a quick look at your example I don't see anything you couldn't do with FBJS.
Is there any sample code available for flipping a page like stanza and iBooks?
Any help would be appreciated.
Here's a couple of resources to get you started with UIScrollView paging:
http://developer.apple.com/iphone/library/samplecode/PageControl/Introduction/Intro.html
http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html
If you mean iBooks' page curl animations on the other hand, Apple uses private APIs there, but developers have been trying to imitate them:
http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-page-curl.html
http://oleb.net/blog/2010/06/app-store-safe-page-curl-animations/
http://github.com/brow/leaves