EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Rinat on June 29, 2015, 09:04:33 AM



Title: Hotkeys don't work in child page
Post by: Rinat 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


Title: Re: Hotkeys don't work in child page
Post by: stworthy 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>


Title: Re: Hotkeys don't work in child page
Post by: Rinat 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!