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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:02:04+00:00 2026-05-24T16:02:04+00:00

Summary: When a dialog window is opened, the dialog contains a form, yet the

  • 0

Summary: When a dialog window is opened, the dialog contains a form, yet the INPUT fields do not allow text entry. FireBug Console reports the following error when I press a key and the cursor is in the text field:

The ‘charCode’ property of a keydown event should not be used. The value is meaningless.
/lemonade_stand/start.php Line 0

I also see this error when the window opens:

Unknown pseudo-class or pseudo-element ‘tabbable’.
/lemonade_stand/start.php Line 0

It seems that some over event is listening for a keypress. I found an article that suggested that I “remove the ui-dialog class from the div”, yet even trying that didn’t help.

Code samples:

Definition of Dialog Box

var $priceWindow = $("#setPriceWindow").dialog({
    autoOpen: false,
    height: 306,
    modal: true,
    width: 380,
    buttons: {
        "Save": function(){
            $.get('php/saveQA.php',
            {
                'cup': $("#pCup").val(),
                'lemons': $("#pLemons").val(),
                'sugar': $("#pSugar").val(),
                'ice': $("#pIce").val(),
            });
            $(this).dialog('close');
        },
        Cancel: function(){
            $(this).dialog('close');
        }
    }
});

Event to open Dialog box

$("#setPrice").click(function(e){
    e.preventDefault();
    $priceWindow.dialog('open');
});

PHP/HTML content of dialog

<div id="setPriceWindow" class="priceWin" title="Set Price and Quality">
    <form>
    <ul>
        <li><label>Price Per Cup</label><span><span><input type="text" size="3" id="pCup" tabid="1" value="<?php echo $_SESSION['qa']['cup']; ?>" /><p>Cents</p></span></span></li>
        <li><label>Lemons Per Pitcher</label><span><span><input type="text" size="3" id="pLemons" tabid="2" value="<?php echo $_SESSION['qa']['lemons']; ?>" /><p>Lemons</p></span></span></li>
        <li><label>Sugar Per Pitcher</label><span><span><input type="text" size="3" id="pSugar" tabid="3" value="<?php echo $_SESSION['qa']['sugar']; ?>" /><p>Cups</p></span></span></li>
        <li><label>Ice Per Cup</label><span><span><input type="text" size="3" id="pIce" tabid="4" value="<?php echo $_SESSION['qa']['ice']; ?>" /><p>Cubes</p></span></span></li>
    </ul>
    </form>
</div>

Full project can be seen here: http://yrmailfrom.me/games/lemonade_stand/start.php

  • 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-24T16:02:05+00:00Added an answer on May 24, 2026 at 4:02 pm

    The problem is in your game.js script.

    In

    $("#setPrice").click(function(e){
    e.preventDefault(); **// THIS LINE IS CAUSING THE TROUBLE**
    $priceWindow.dialog('open');
    });
    

    Also in lemonade_game.css try removing the zIndex from this block

    div#setPriceWindow ul li span {
        background: none repeat scroll 0 0 #F9F9F9;
        border-left: 1px solid #CCCCCC;
        border-right: 1px solid #BBBBBB;
        margin: 0;
        padding: 3px 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

SUMMARY: When browsing an ASP.NET website using Windows Explorer, popup windows do not borrow
Summary: I'm trying to write a text string to a column of type varchar(max)
I am using the Caliburn Micro Window Manager to display a dialog. I would
I got my form in jQuery ui dialog and I apply client-side validation in
<div id=termSheetPopup> <input type=checkbox name=SummaryInformation>Summary Information<br /> <input type=checkbox name=SwapLegs>Swap Legs<br /> <input type=checkbox
I implemented a simple dialog form using JQuery on GAE. It works perfectly on
Summary: We need to duplicate the behaviour of the Add Reference dialog, using DTE,
I am using Lightbox Gone Wild to display a modal dialog with a form
Summary Hi All, OK, further into my adventures with custom controls... In summary, here
Summary What's the best way to ensure a table cell cannot be less than

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.