xcode - live content from html to html -


i'm using uiwebview display data organization data (publicize , legal), however, instance, want pull specific data html file rather pulling whole url. e.g. want pull "news" section of html , want user stay in page, not enabling them go other parts of website (e.g. home page, contact us) , allowing them view pdf article on html file. i've asked around , read on dom , screen scraping, seem data pulled stored in database instead.

is there way can pull html "news" section pdf url customized html file , updated live (maybe every 30second refresh , pull information website content , list of pdf date)(e.g. added in 3new article main website, customize html file refresh , pull information website , update article list)

if can point me specific method allow html html data passing (live), great , can go more research on it. lost , confuse first time doing this. help/feedback appreciated :)

edit: example, google map or google search. don't want use whole google webpage, taking important thing want search result or map display.

this involve quite lot of learning on part - you'll have learn html / dom / javascript , ios/uiwebview.

lets leave live refresh part now, i'll post answer or edit later on. that's not going easy either (check out earlier posting today on background execution issues affect you, unless update take place in foreground ios run code once day)

you have this. , note i've never tried this, nor seen posting of people have on here, in theory should work, there lot of learning i've said, , lots of trial , error. big task when you're not familiar these things.

1) download html page , load in uiwebview, uiwebview hidden user's can't see it.

2) when page has loaded dom accessable.

3) can use javascript access dom , parts want. how inject , run javascript in uiwebview can answered in separate question (this answer long if exact details included).

4) remove parts of dom not interested in. or use use events make parts interested in appear, jquery can here.

5) display uiwebview

alternatively html saved file , string parsing used search bits looking , create new text html file it. think messy, better take advantage of fact uiwebview parse html page , create dom you.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -