bitostef1
6 Jun 2008, 5:50 AM
Hello
i'm really new to extjs. I need to access element inside an autogenerated dialog.
I open the form clicking on a button on page "A.jsp" then i add some html to the basicdialog body:
dialog.body.dom.innerHTML = '<div class="x-dlg-bd" id="dgcontent"><iframe id="cont" frameborder="0" src="./faces/B.jsp" width="100%" height="100%"></iframe></div>';
and i add some buttons to the dialog:
dialog.addButton( {text : "Ok"} , function(){
...
},dialog);
dialog.addButton('Cancel',dialog.hide,dialog);
inside ok button function i need to get values of some textboxes and comboboxes to pass back them to the opener as parameters
my problem is that i don't not how to get the references to elements of B.jsp, i've try document.getElementbyId and Ext.get but always get nothing
thanks in advance
Stefano
i'm really new to extjs. I need to access element inside an autogenerated dialog.
I open the form clicking on a button on page "A.jsp" then i add some html to the basicdialog body:
dialog.body.dom.innerHTML = '<div class="x-dlg-bd" id="dgcontent"><iframe id="cont" frameborder="0" src="./faces/B.jsp" width="100%" height="100%"></iframe></div>';
and i add some buttons to the dialog:
dialog.addButton( {text : "Ok"} , function(){
...
},dialog);
dialog.addButton('Cancel',dialog.hide,dialog);
inside ok button function i need to get values of some textboxes and comboboxes to pass back them to the opener as parameters
my problem is that i don't not how to get the references to elements of B.jsp, i've try document.getElementbyId and Ext.get but always get nothing
thanks in advance
Stefano