load function after page switch on querymobile ajax

I have a jquerymobile ajax based web app. not using ajax is no option. On one page a new script is inserted by <script url="../script.js"></script>

Now i would like to load that script, after the page is loaded by ajax. Unfortunately it does not happen. I tried for example:

 $(document).live( 'pageinit',function(event)

But it does not work. As well as

$(document).bind('pageinit', function()

Any ideas how i can manage to load the function after the page is loaded by ajax??


Found the solution with help of "OMAR". I put the function inside the page div. But the link is not working, so i put the code itself into the top of the div. now it is working. not the best solution, but it is working.

Need Your Help

How do I connect Django from desktop to the remote Mysql Server?

mysql django

I want to use Django to control the backend of my website from my desktop, so I configured a no-ip host, and added it to the remote MySql section, but I can't connect the MySql server.

Issue with buttons in <div>, 2nd button acts like 1st one

jquery css button html

I'm trying to figure this out for a whole day and I just can't find the way to make it work.

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.