Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I am trying to retrive Text of a TextBox object from a javascript function on a asp.net page. I have written the following code snipets :
<%@ Register Assembly="QlikViewWorkBench" Namespace="QT.QWW.WebControls" TagPrefix="qww" %>
<script type="text/javascript">
var obj;
function Init()
{
obj = qva.GetQvObject("TX01", function () {});
}
qva.BodyOnLoadFunctionNames.push("Init");
function GetText()
{
var text = obj.QvaPublic.Data.GetSelected();
alert("the text value is: " + text);
}
</script>
<input type = "submit" value = "HTML" onclick="GetText()" />
At the compile time I am getting the error : 'qva' is undefined
Can any one pls. let me know what I am missing ?
Thanks,
Somnath.
If I try the code :
<%@ Register Assembly="QlikViewWorkBench" Namespace="QT.QWW.WebControls" TagPrefix="qww" %>
<script type="text/javascript">
function GetText()
{
var text = qva.GetQvObject("TX01", function () {});
alert(text.Data.GetText());
}
</script>
<input type = "submit" value = "HTML" onclick="GetText()" />
I am not getting any error at compilation time. But at run time on button click getting error : 'Data' is null or not an object
Pls. help.