Hi all.
I am making use of above method to evaluate a javascript
Tha javascripts are like this:
However testResults1 will work if i am calling @"testResults1(this.form)" and returning me "Hello".
But the testResults(this.form) is not returning anything . . .
Why the var return value is not receiving by UIWebView ?
Also @"testResults1(form)" wont work, we want to prefix this before form.
I am making use of above method to evaluate a javascript
Tha javascripts are like this:
Code:
function testResults (form) {
var testVar =form.anElement.value;
return testVar;
}
function testResults1 (form) {
return "Hello";
}
However testResults1 will work if i am calling @"testResults1(this.form)" and returning me "Hello".
But the testResults(this.form) is not returning anything . . .
Why the var return value is not receiving by UIWebView ?
Also @"testResults1(form)" wont work, we want to prefix this before form.