EasyUI Forum
September 18, 2025, 04:00:48 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Hotkeys don't work in child page  (Read 7670 times)
Rinat
Newbie
*
Posts: 31


View Profile
« on: June 29, 2015, 09:04:33 AM »

Hello (sorry for my english)!

I have 2 pages:

1) Main page - layout page
2) Action page.

Aсtion pages using ajax load, when I click on link in main page
All working, but not working hotkeys in inputs.


Code:
$('#test').textbox('textbox').bind('keyup', function(e)
{
volume_w(e);
});
If I open action page singly, hotkeys - code - working
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 29, 2015, 05:20:40 PM »

Before calling the 'textbox' method, the textbox component must be created successfully. Please try to use the code below on your action page.
Code:
<input id="test">
<script type="text/javascript">
$(function(){
$('#test').textbox().textbox('textbox').bind('keyup', function(e){
console.log(e)
})
})
</script>
Logged
Rinat
Newbie
*
Posts: 31


View Profile
« Reply #2 on: July 08, 2015, 07:16:43 AM »

Oh! My component created 2 times

1) When I rendering the page on html

    
Code:
       <input id = "search_text" class="easyui-textbox" panelHeight="auto" style="width:100px">
2) When I rendering the page on js
Code:
$(function(){
$('#search').textbox().textbox('textbox').bind('keyup', function(e){
....
Thanks!
« Last Edit: July 08, 2015, 07:44:15 AM by Rinat » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!