How to make a nice button using Jquery mobile?

I want to make a button using jquery mobile to redirect the user to an other page with a slide animation for example and with rel="external" in order to load external js file .

<a data-theme="e" href="page.html" rel="external" data-role="button" data-transition="flip">

but there is no transition ! If i use

<a data-theme="e" href="page.html" data-role="button" data-transition="flip">

there is the flip transition but the external file isn't loaded !

What should i use ?

Thanks

Answers


data-rel="external" means you are not using ajax, so there wont be any transition because it will take you to a new page. What you can do is to load the external url with custom jquery ajax function for your button, use the flip-animation and load the external js on ajax-success.


Need Your Help

Visual Studio and add-in unloading

c# visual-studio add-in vsx extensibility

When I remove an add-in from Visual Studio's add-in menu, it doesn't get unloaded from memory. Does anyone know if I can write some code for my add-in (in C#) that would force this unloading. Is this

Twitter bootstrap nesting form layouts

html twitter-bootstrap

I am just getting started using bootstrap. I need to position three input fields to form an "address" field.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.