iphone - How to Pass paramenter to javascript in webview -


i have pass argument javascript function webview, calling properly.

thanks vadivelu

well ! going give example. know late ( year :p )

 [self.mywebview stringbyevaluatingjavascriptfromstring:[nsstring stringwithformat: @"window.scrollto(0,%i);",kpagesize*(self.currentpage-1)]]; 

you can notice that, have passed parameter javascript objective-c.

this cause webview scroll some-where within webview.

hope helps.

note : please not forget accept answer if helpful you. ( noticed of questions not accepted. )


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -