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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:13:43+00:00 2026-06-13T20:13:43+00:00

I am developing a Facebook app with jQuery mobile, where I create a dialog

  • 0

I am developing a Facebook app with jQuery mobile, where I create a dialog that creates a second dialog (chaining).

The issue is that with Android and Opera, that second dialog is displayed for a second, and disappears.

Is there a way to avoid this behaviour?
Otherwise, how can I destroy the first dialog without destroying the second one?

CODE:

function function1(item) {        
       showDialog(..., function(){
               ...
               if (appInstalled == true) {                        
                       if(function2(item) == true) { 
                               //call to alert dialog function2
                       }
               } 
       });
}

function function2(item) {
       if (...) {
               showAlertDialog(item.name, messages.MATCH_CONFIRMATION_MSG, item.picture.data.url, '#friendsPage');
               $('#dialog').dialog('close');
               $('#alertDialogTrickLink').click();//this is event for going to dialog 
       } 

}

function showDialog(title, content, img, hrefURL, hrefURLcancel, callbackFunction) {
       $('#dialog-content').html(content);
       $('#dialogHeader').text(title);
       if (img != null) {
               $('#dialog-img').html('<img src="' + img +'" alt="" class="bigImg" />');
       } else {
               $('#dialog-img').html('');
       }
       var a = messages.ACCEPT_BUTTON_TEXT;
       var c = messages.CANCEL_BUTTON_TEXT;
       $('#dialogActions').html(
               '<a href="' + hrefURL + '" data-role="button" data-theme="c" id="confirmDialogAction" data-icon="check" data-iconpos="left">' + a + '</a>' +       
               '<a href="' + hrefURLcancel + '" data-role="button" id="skipDialogAction" data-icon="delete" data-iconpos="left">' + c + '</a>'
       );
       $('#confirmDialogAction').click(function(e) {
               e.preventDefault();
               callbackFunction();
       });
       $('#dialog').trigger('create');
}

Thanks a mill

  • 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-13T20:13:44+00:00Added an answer on June 13, 2026 at 8:13 pm

    Have you tried the setTimeout approach described here Note: Chaining of popups not allowed

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

Sidebar

Related Questions

I'm currently developing a facebook app that needs access to a users photos. It
I'm developing an HTML app that integrates Facebook Graph API using Javascript SDK. Facebook
I'm developing a web app integrated with facebook and I'm using the request dialog
We're developing locally a facebook app that should reside in a page tab. The
I'm studying the best plataform for developing a mobile app (for Android, first) which
I am developing a facebook app that is a basic competition. Is there a
I'm developing a Facebook app that has a responsive layout. Sometimes my app has
I'm developing a simple Facebook app that will live in a Page's tab. I'm
I'm developing a facebook app with rails that uses external apis from my own
I'm developing a Facebook integrated Android app. I followed this tutorial to the dot.

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.