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 6707097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:35:55+00:00 2026-05-26T07:35:55+00:00

I have a multipage html (using div data-role=page) that displays 4 pages of a

  • 0

I have a multipage html (using “div data-role=”page”) that displays 4 pages of a document that can be swiped left or right to move between the pages back and forth.

I have an alert that I want to pop-up only when the page first loads (telling the user they can swipe to move back and forth between pages).

My problem is that it keeps popping up again every time a swipe to a new page is made and I only want it to alert them once when the page loads.

I’ve tried moving the script from the head to inside the element, and I’ve tried binding it to all the different pagecreate, pagebeforecreate, pageinit, etc. events and can’t seem to figure it out.

I appreciate any advice or direction.

Here’s the alert code that is currently showing on every page when swiped:

<script type="text/javascript"> 
 $('div').live("pagecreate",function(event){
alert('Swipe left and right to move between the 5 pages of this lead sheet');
});
</script>
  • 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-05-26T07:35:56+00:00Added an answer on May 26, 2026 at 7:35 am

    You can bind to the id for the page DIV (ex: div#home).

    <script type="text/javascript">
        $('div#home').live("pagecreate", function (event) {
            alert('Swipe left and right to move between the 5 pages of this lead sheet');
        });
    </script>
    

    …

    <div data-role="page" id="home">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have navigation.html (static coded navigtaion ) file loaded on multiple pages, using jQuery
Say that I have two html nodes like this: <div class='node a'>one</div> <input class='node
I have following HTML <div id=finalTree> <ul> <li class=last style=display: list-item;> <a id=DataSheets href=#>Data
I have a html layout done using absolutely positioned div elements and a backgroung
i have this files: JAVASCRIPT $(document).ready(function(){ $('a').click(function(){ $('div').load(formular.html,function(){ $('input[type=submit]').click(function(){ $('form').submit(); }); }); }); });
I have this HTML: <select multiple='multiple' size='3'> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> </select> Using
I have multiple javascript functions in my html page. One of them, by far
I have an html document with multiple commented-out PHP arrays, e.g.: <!-- Array (
I have an HTML form that needs multiple submit buttons, like this: <input type=submit
so I have multiple HTML files which I need to get some praticular data

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.