CGibson
2015-07-02, 09:03
Hello,
I have little to no web development knowledge and I'm learning as I progress.
In my app, I have a canvas section that contains a combo box, textbox and command buttons.
Is it possible to reference the text in the textbox from a command button?
I know this can be done with a regular desktop app, although I am having difficulty in a web app.
Here is my javascript code:
function client_secSearch_cmdSearch_click()
{
// var searchText = Lianja.get("client.secSearch.txtSearch").text;
var tsearch = Lianja.get("client.secSearch.txtSearch");
var searchText = tsearch.text;
alert("Text is " + searchText);
};
Regardless of the text placed in the textbox, the searchText always seems to be blank.
Am I coding this correctly or should this be done another way?
Cory
I have little to no web development knowledge and I'm learning as I progress.
In my app, I have a canvas section that contains a combo box, textbox and command buttons.
Is it possible to reference the text in the textbox from a command button?
I know this can be done with a regular desktop app, although I am having difficulty in a web app.
Here is my javascript code:
function client_secSearch_cmdSearch_click()
{
// var searchText = Lianja.get("client.secSearch.txtSearch").text;
var tsearch = Lianja.get("client.secSearch.txtSearch");
var searchText = tsearch.text;
alert("Text is " + searchText);
};
Regardless of the text placed in the textbox, the searchText always seems to be blank.
Am I coding this correctly or should this be done another way?
Cory