Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8084793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:54:17+00:00 2026-06-05T17:54:17+00:00

In my Jqmobile code, i am trying to transit pages by applying data-transition=slide for

  • 0

In my Jqmobile code, i am trying to transit pages by applying data-transition="slide" for anchor links..
The Problem is that the linked pages have custom jquery coded by myself…
When i hit an anchor with data-transition=”slide” and href then it surely transit but the linked page custom jquery scripts do not run…
I tried using data-ajax-"false" but in this case custom script runs but not data-transition="slide"…
I want both together to run… Can it be possible…??

Here is the simple custom, in this i am show/hiding input boxes..

<script type="text/javascript">
$(document).bind("pageinit", function(){
      $('#near_index').hide();
      $('#find').click(function() {
             $('#near_index').show();       
      });
    });
</script>

Here is the HTML,

<a href="category.html" data-transition="slide" data-ajax-"false"><img src="images/23-bird.png" alt="Category 2" class="ui-li-icon iconSmall">Category 2</a>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:54:19+00:00Added an answer on June 5, 2026 at 5:54 pm

    pageinit is for plugin intialization – see here.

    So this event will only fire once when JQM first loads. After your “page” (DOM) is initialized. Any other pages you load will be pulled into the DOM, but will not trigger another pageinit.

    Just use any of the other available events (link above), such as pagebeforeshow or pageshow. These will fire with every page that is loaded into the DOM. Just put a console.log(“HELLO”) inside the event handler and see if it fires.

    EDIT Transitions:
    You cannot set data-ajax=”false” and have a transition (slide from page A to page B), because the transition is the result of using AJAX to load the new page INTO the DOM vs. a regular link (data-ajax=”false”) dropping the old DOM and loading the new page (new DOM).

    The concept of JQM is to always stay in the SAME “Page” and just load in/out new pages via Ajax. That’s how you can do transitions (load a new page, position it next to the old one and then slide).

    This may also be the reason your custom code is not firing, because if you say data-ajax=”false” you are telling JQM “I’m done here”, and load a new page.

    If you don’t need data-ajax=”false”, leave it out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JqMobile Code:- http://jsfiddle.net/qgueS/ The thing i want to do is on
I am trying to remove an annoying flickering effect on jqmobile transitions when running
I have the following view <ul data-role=listview data-inset=true> <!-- ko with: model.Item_selected --> <li
I have a dataView where I am binding data to a table. This is
I have a JS function below that generates an href which includes the JQ
I'm using jQMobile 1.0, and building a list of radio buttons dynamically from json
I want to load a local jqmobile html file into a webview. I am
How do I get the HTML code of another site it wants cookies to
I was migrating a system rail2 to rails3, and got a problem when I
I am porting a jQtouch app to use JQMobile instead. Most of it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.