Hmm je ne peux apparemment pas commenter alors voici une explication plus détaillée de Non La réponse de ddy Cha.
Pour obtenir des valeurs:
NSString * textBox1Value = [myWebView stringByEvaluatingJavaScriptFromString:@"document.getElementByid(\"tab1\").value"];
NSString * textBox2Value = [myWebView stringByEvaluatingJavaScriptFromString:@"document.getElementByid(\"tab2\").value"];
Pour définir des valeurs:
NSString * ignoredString1 = [myWebView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementByid(\"tab1\").value = \"%@\"", textBox1Value]];
NSString * ignoredString2 = [myWebView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementByid(\"tab2\").value = \"%@\"", textBox2Value]];
Hope this helps.
pouvez-vous me donner un exemple ..i balises hav pour la vue tableau html et je veux charger les valeurs td avec des attributs de données –
je suis nouveau sur iphone .., je n'ai pas utilisé javascript jusqu'à maintenant –