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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:59:12+00:00 2026-05-23T13:59:12+00:00

We are a startup working on an application and we are using Rails 3

  • 0

We are a startup working on an application and we are using Rails 3 and JQuery as our technology.
We need help to replace default confirm dialog boxes in rails.ujs with JQuery UI Dialog.

  • 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-23T13:59:12+00:00Added an answer on May 23, 2026 at 1:59 pm

    This certainly requires some work that is not made “out of the box”. You have to understand the basics of what you are asking.

    First of all, you click on a link that has :confirm => "Are you sure?", which adds the data-confirm attribute to your html tag. Then, you have a event listener binded on all elements which have a data-confirm attribute, and simply does a confirm of the attribute value (“Are you sure?”). If the user click yes, nothing happens, which means that the link is followed. If the user click cancel, the event is cancelled and the link is not followed.

    What you want to do is to break this behavior. You want to store whatever action was called, cancel the current event. Then, use the jquery dialog, and depending on the user choice, call that action again or do nothing.

    You can’t simply replace the confirm with a jquery dialog because the browser won’t wait for the jquery dialog answer, as it does for the confirm box.

    Hope that helped you understand the basic of what you are going to implement.

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

Sidebar

Related Questions

At the startup I'm working at we are now considering scaling solutions for our
I am working on a Spring application using Tomcat 6 and Spring 2.5 .
I'm using OpenGL ES in my iPhone application and sometimes during startup the screen
I am working on a J2EE application, to deploy I am using a build.xml
I am working on a document-based Cocoa application. At startup, the user is presented
Recently I started working in a small startup company and we need to add
I need to add my application to the startup and hence, need to set
I am working on an application that loads plugins at startup from a subdirectory,
I'm working on a Rails 3.1 application that needs to start up a couple
I'm working on an application that downloads some data from the internet using NSData's

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.