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

  • Home
  • SEARCH
  • 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 6712197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:13:52+00:00 2026-05-26T08:13:52+00:00

I am debugging a page that has a jquery dialog that contains a textbox

  • 0

I am debugging a page that has a jquery dialog that contains a textbox and an ok button.

When a user hits enter, the page is reloading and the textbox ID & value are being passed to the page reload as get parameters. e.g.

http://example.com?tex_box_id=text_entered_in_text_box

I cannot figure out what is causing this behavior and can’t figure out how to best track it down since the page itself is reloading.

I have tried stepping through all the jquery code, but did not have any luck. I can only assume that somebody somewhere attached a key press listener, but I can’t figure out who. I know I can work around this by preventing theirs from running, but I still really want to figure out why it is happening.

Note that this does NOT happen if you click the OK button, only if you hit enter when you are in the text box

  • 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-26T08:13:53+00:00Added an answer on May 26, 2026 at 8:13 am

    This will disable all of the forms on the pages from being submitted:

    $('form').submit(function() {
      return false;
    });
    

    While this will “solve” your problem, you should target your form specifically, and use custom JavaScript behavior for submitting the data (e.g. using $.ajax).

    For more advanced debugging use the following:

    $(window).keydown(function(event) {
      var breakpoint = 1; // Place a breakpoint on this line!
      // Then use the "step out of current function" button to
      // continue through the JS that gets executed... much of it
      // will likely be native code, but if you pay attention to
      // the native function names, you should eventually see the
      // event that is causing the reload.
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page that contains an element (a TextBox) that has two CSS
I'm debugging someone else's code for a web page that is made with ASP.NET
I have a custom control in an aspx page that has a property named
I have an ASP.NET website which uses the jQuery dialog to present the user
Can anyone point me to the preferences page that has the setting of the
Using VB6, I have created an Outlook plugin, that has a property page. The
I'm supplying a Django project to a client, who has requested a 'debugging' page
I am trying to display a page that uses jQuery. The AJAX functionality implemented
Debugging with gdb, any c++ code that uses STL/boost is still a nightmare. Anyone
I have images on my page. User can add more images onto the page

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.