I’m trying to get form element value from other tab.
For example,
There is page called main.html and it contains two tabs called A and B.
tabbar.addTab(“A_tab”, “A”, “100px”);
tabbar.addTab(“B_tab”, “B”, “100px”);
tabbar.setHrefMode(“ajax-html”);
tabbar.setContentHref(“A_tab”, “a.html”);
tabbar.setContentHref(“B_tab”, “b.html”);
And b.html contains one text field called text_b.
And I want to create button called “Get!” in a.html that
gets whatever is entered in text_b when clicked.
Is this possible?
Can i pass text_b value to a.html without submitting?
Hello,
you can use document.getElementById method:
var value = document.getElementById(“text_b”).value;
Alexandra, help me, please!
How can i bind grid with form, if it’s placed on different tabs? and every tab content is jsp-page
i tried to use form.bind(this.grid), but it throw an error “a is undefined” “dhtmlx.js (строка 2396)”
Jamma,
i tried to use form.bind(this.grid), but it throw an error “a is undefined” “dhtmlx.js (строка 2396)”
Here is the working sample with Form that is bound to Grid:
dhtmlxSuite/dhtmlxDataStore/samples/01_combinations/05_grid2form_client.html
How can i bind grid with form, if it’s placed on different tabs? and every tab content is jsp-page
Are you using ajax-html or Iframe mode to load tabs content ?
Alexandra, thank you for your reply
I use iFrame mode
my code:
homepage.jsp
--------------------------------------------HomeConnector send a response xml:
<?xml version="1.0" encoding="UTF-8"?>
Select
Details
select.jsp
-------------------------------------------details.jsp
-------------------------------------------DetailsConnector response:
<?xml version="1.0" encoding="UTF-8"?>
Help me, please, how can i bind selGrid and detForm?