javascript - jquery dialog box -


I have been having a hard time trying to find some answers with this special dialog box action. The problem occurs when the user clicks the "Enter" (keycode = 13) button, the dialog stops ... like 'esc' key was pressed. I want to open the dialog box even when "Enter" is pressed.

Simple simple code, jquery (1.2.6) simple dialog box.

I have an AJAX request that creates a dialog box

  var div = $ ("` 
gt; `test` & lt; / Div> `'); $ .ajax ({type:" GET ", data type:" html ", cache: wrong, async: false, url: WorldWideInventory.baseURL +" / templates / invoice_invoicenumber_confirm.tpl.html "Error: function () {warning (" failed to connect to the server, please try again ");}, success: function (feedback) {div.html (response);}}); Div.appendTo (" # APO_Wrapper "). Dialog ({width: 662, height: 407, close openSpace: true, BG Closing: function () {return false;}}); / Pre>

It is ... it's getting mad, anyone has any suggestions / answers to this problem? Good karma will be sent to you!

The problem you are experiencing is because the close link is given focus when the dialog is activated, so when the user Doer gets hit, it effectively calls off dialog command.

Other clickable elements (such as a button, link, form element, etc.) when the dialog is opened using an open event on the dialog, similarly:

 < Code> div.appendTo ("# apo_weeper"). Dialog ({width: 662, height: 407, near opencase: true, Bgiframe: true, model: true, title: "confirm invoice number", open: function (event, UI) {$ ("# "). Focus ();}});  

See how you go with it, though it has not happened with the current version of jQuery and jQuery UI, so if you can update, I suggest.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -