¡@

Home 

2014/10/15 ¤U¤È 10:07:17

iphone Programming Glossary: document.getelementsbyclassname

Adding the Facebook Like Button in an iPhone App

http://stackoverflow.com/questions/2783803/adding-the-facebook-like-button-in-an-iphone-app

divs. Use this long sentence _webView stringByEvaluatingJavaScriptFromString NSString stringWithFormat @ javascript document.getElementsByClassName 'uiButton' 2 .style.visibility 'hidden' var child1 document.getElementById 'standard_status' var parent1 document.getElementById.. document.getElementById 'loginform' .style.width '200px' var child3 document.getElementById 'reg_btn_link' var parent3 document.getElementsByClassName 'register_link' 0 parent3.removeChild child3 var child4 document.getElementById 'signup_area' var parent4 document.getElementById.. 'signup_area' var parent4 document.getElementById 'login_form' parent4.removeChild child4 var child5 document.getElementsByClassName 'mbm' 0 var parent5 document.getElementById 'loginform' parent5.removeChild child5 var child6 document.getElementsByClassName..

UIWebView stringByEvaluatingJavaScriptFromString

http://stackoverflow.com/questions/4560576/uiwebview-stringbyevaluatingjavascriptfromstring

I have void webViewDidFinishLoad UIWebView wView NSString someHTML wView stringByEvaluatingJavaScriptFromString @ document.getElementsByClassName 'box' 0 NSString allHTML wView stringByEvaluatingJavaScriptFromString @ document.body.innerHTML NSLog @ someHTML @ someHTML.. share improve this question Changing NSString someHTML wView stringByEvaluatingJavaScriptFromString @ document.getElementsByClassName 'box' 0 to NSString someHTML wView stringByEvaluatingJavaScriptFromString @ document.getElementsByClassName 'box' 0 .innerHTML..