html - Getting String from a textfield inside webpage iOS -
i'd content in textfield (with assigned id) on webpage , pass nsstring. there way load instantly without taking every html source? in advance. p.s. use objective-c
you can execute javascript using stringbyevaluatingjavascriptfromstring:
method on uiwebview
in order value of textfield. example, if id foo
, can write:
nsstring *js = @"document.getelementbyid('foo').value"; nsstring *value = [webview stringbyevaluatingjavascriptfromstring:js];
Comments
Post a Comment