Hi,
We are currently using some UI framework called UIX. This UI will write all the JavaScript functions on the generated HTML page. What this UI is doing is it is writting some javascript functions on to the page which I want to use in my javascript.
On the HTML page it writes function as a string this is just an example
I am able to get the function as string now my question is how do I evaluate that function, below is my code this does't work.
The only problem is I cannot change the UI framework and I have to use this function only.
Thanks.
We are currently using some UI framework called UIX. This UI will write all the JavaScript functions on the generated HTML page. What this UI is doing is it is writting some javascript functions on to the page which I want to use in my javascript.
On the HTML page it writes function as a string this is just an example
Code:
function _form0Test(form0){
// it will return true or flase;
}
I am able to get the function as string now my question is how do I evaluate that function, below is my code this does't work.
Code:
function myTest(form0)
var func = window["_from0Test"];
if(eval(func)){
// do some thing
}else{
// do some thing else
}
The only problem is I cannot change the UI framework and I have to use this function only.
Thanks.