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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:41:51+00:00 2026-06-06T23:41:51+00:00

I currently have an app that is using a twitter bootstrap modal box. The

  • 0

I currently have an app that is using a twitter bootstrap modal box. The div that the modal is displaying is getting loaded with JQuery from /users/new action. Everything works great if the user enters valid data in the modal box submitted but if the data sent to params does not pass validation the controller redirects back to the new action but this time outside of the modal box and the page that user was previously on is gone, which sort of defeats the purpose of having the modal box to begin with.

I have looked at Live-Validation and other javascript based client-side validations. These are an option but I would much prefer being able to use my existing validations in the users model for consistency’s sake. I there a good way to make the modal box persist while the form is being submitted and to make the controller reload the page within the modal with the error_messages?

Thanks

  • 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-06T23:41:53+00:00Added an answer on June 6, 2026 at 11:41 pm

    Are the error_messages loaded into the modal using javascript? If so, you could have the page check to see if there are error_messages on load, then pop open the modal box if there are any. This won’t save any input from the modal, but it will pop it open.

    Alternatively, you could implement some light client side validation on top of your current model. However, how light it would be is dependent on how picky your model is regarding its input. If it’s very specific what it will accept/reject, it would be much harder to verify consistency, and having something get through client-side validation only to bounce back and say it was invalid isn’t always pretty.

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

Sidebar

Related Questions

Using PHP.. I have a small app that I built that currently uses a
I currently have an app (in Silverlight), using mv-vm, that has an interface to
I have an iPhone app that is currently using the test environment for iAds.
I am currently using Twitter Bootstrap in developing an web app. Now I also
I have a facebook app using a lot of Javascript that doesn't work correctly
I currently have an app that requires connection to a server in multiple activities.
To clarify, I currently have a live app that does not implement in app
We have an app that currently installs itself into 'program files\our app', and it
I have a web app that currently is inserting x (between 1 + 40)
Good evening, In my app that I'm currently developing, I have a class that

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.