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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:25:45+00:00 2026-06-05T23:25:45+00:00

I have mostly all of my forms for different controllers in a jquery dialog

  • 0

I have mostly all of my forms for different controllers in a jquery dialog modal box, and the problem i’m running into is that when those modals are loaded, the ujs links(data-remote, data-confirm, etc) are completely ignored by jquery. I’m thinking that when those partials are getting loaded through ajax, that the events aren’t bubbling up to include those new links that are added to the dom by ajax. Has anyone run into this? I can’t seem to figure out a way around it. I can post some code if this wasn’t very clear…

  • 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-05T23:25:48+00:00Added an answer on June 5, 2026 at 11:25 pm

    Ok so I fixed it with this, using a custom jquery ui dialog box I can now do custom confirms ontop of remote true links

    var myCustomConfirmBox;
    $.rails.allowAction = function(element) {
      var answer, callback, message;
      message = element.data("confirm");
      answer = false;
      callback = void 0;
      if (!message) {
        return true;
      }
      if ($.rails.fire(element, "confirm")) {
        myCustomConfirmBox(message, element);
      }
      return false;
    };
    myCustomConfirmBox = function(message, callback) {
      $("#dialog-confirm .content").html(message);
      return $("#dialog-confirm").dialog({
        resizable: false,
        height: 180,
        modal: true,
        buttons: {
        Continue: function() {
          $.rails.handleRemote(callback);
          return $(this).dialog("close");
        },
        Cancel: function() {
          return $(this).dialog("close");
        }
      }
    });
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have hundreds of [mostly different] files in many different directories that all have
I'm about to walk into a project that will have files (mostly PHP) behind
This is an optimization question, mostly. I have many forms on my sites that
I have a POCO class that is mostly built through a service. I hit
I have basic idea about running PHP in different configurations like mod_php, cgi, FastCGI,
I'm trying to build a form that will have mixed inputs mostly text and
We have a number of services (mostly console applications) running across several remote computers.
I have a problem that I have been trying to solve for a couple
I have problem running samples provided by Nvidia in their GPU Computing SDK (there's
friends I am new to iphone development, I have mostly worked with Android, now

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.