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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:28:47+00:00 2026-05-18T23:28:47+00:00

More jQuery Tools overlay fun… I have a yes/no jQT modal dialog set up

  • 0

More jQuery Tools overlay fun…

I have a “yes/no” jQT modal dialog set up to do simple confirmation, which follows the example in http://flowplayer.org/tools/demos/overlay/modal-dialog.html. I’ve used this in a couple of places on my site, and it’s working fine: A click on the “yes” button does a window.location to the href of the “A” tag to which the dialog is attached; a click on “no” just makes the overlay go away.

I’m now using it in another context, attaching it to an “A” tag which is inside a form on the page. The yes/no dialog shows up just like it should, and goes away when a button is clicked on. However, what’s driving me crazy is that the form is getting submitted as a result of the click — I have a onSubmit handler set up on the form to do some validation, and it’s firing. If I remove the onSubmit validation handler, the form does the POST specified in the code, but does not do the window.location in the overlay’s handler. EXCEPT for Firefox, which, according to my server logs, tries to do both the GET and the POST, leaving me with a page that’s rather confused.

The only thing I can figure out is that there’s something down inside the bowels of jQuery or jQuery Tools that is generating a form submit, which is triggering my form. Does this make any sense to any one? I’d post some code, but it would take quite awhile to prune it down to the point of being comprehensible by a fresh pair of eyes; I thought I’d try this note on the chance that it triggers a quick “Oh, yeah…” response by somebody out there. 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-05-18T23:28:47+00:00Added an answer on May 18, 2026 at 11:28 pm

    I was finally able to get this to work — I found a way to move the code that creates the dialog’s overlay DIV outside the form. I’m still not sure why this works, and what was causing the submit firing from before, but it’s working, which is good enough for now…

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

Sidebar

Related Questions

I was reading JavaScript: The Good Parts and the author mentions that JavaScript is
I would like to get a sum from a column, with and without a

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.