I need to shoot a variable to my java script, which will basically load something different based on the variable...
I've found code on how to send Java to C...
in the Java:
function myName()
{
var Name = 'John';
return Name;
}
then in the Objective C:
NSString *stringToSend = [NSString stringWithFormat:@"myName()"];
NSString * cName = [webView stringByEvaluatingJavaScriptFromString:stringToSen d];
NSLog(@"The Name is %@", cName);
You do realize Java has nothing to do with javascript, which is what you seem to need ? Clear it up when you ask if you want people to actually try to take a look at it.
I don't have experience with that, but can't you just make up an URL with a GET parameter sending in your variable?