I am suck with some weird type of requirements. I added one UIWebView in my application. I opened thehttp://www.guidgenerator.com/online-guid-generator.aspx web site in my webview.
This site is useful to generate the GUID (128 bit unique id). just have a look.
when i generate that GUID i want to copy that string in my application.
So is there any way through which i can inspect HTML web page having generated GUID and i stored that in my local database???
pls reply if you are not clear with requirements......
There is certainly a way that you could do what you're asking. Or, you could just use CFUUIDCreate.
Thanks for reply,
Basically i dont want GUID number at all . This is just one example
The real problem i am facing is , if i load any web page in my webview and i want to store some info from that page.
suppose , i open one site xyz.com , i logged in and do some task , site gives me the "TASK ID" by some way on web page . Now i want to store that "TASK ID" in local database of my application.( sqlite) so i can populate list of "TASK ID" (UItableView) user has already done.
Note:
This is not client-server model. I just want to fetch data from web page.
Let me know if you need more info.
Last edited by harshit2811; 02-10-2011 at 11:31 PM.
This gives me value of text box. Now it works bt still i need some efficient way. Is this method effect performance issue?? Will it fetch large string also like paragraph , custom object etc..???
}
When you say you need an efficient way, are you actually seeing performance issues with your current implementation? Because I wouldn't expect you would; it should be perfectly fine.
And yes, you can fetch a paragraph. Or even an entire document's html. But not a custom object, only text. Not sure what you'd do with an actual JavaScript object in Objective-C anyway.
__________________ Recall It!Tag your notes. Tag your photos. Tag your thoughts. Tag your life.
Hi, I think I am trying to do something similar but I'm not sure how to extract certain text.. For example
HTML Code:
<tr class=" "><td class="title"><a class="title" href="/forum-replies.cfm?t=1647460">iPhone 4 back scratch? How?</a></td><td class="group"> </td><td class="reps" style="background-color: #eae7e3;">7</td><td class="reads" style="background-color: #e9e5e0;">113</td><td class="oldest"><a href="/user/311187"><b>Magic is Might</b></a><br>Today at 5:04 pm</td><td class="newest"><a href="/user/257524"><b>Revelation</b></a><br>10 minutes ago</td><td class="goend"><a href="/forum-replies.cfm?t=1647460&p=-1&#bottom" style="color:silver" title="Jump to last post"><img src="/img/forum/arrow.gif" width="16" height="17" alt="Jump to last post" border="0"></a></td></tr><tr class=" "><td class="title"><a class="title" href="/forum-replies.cfm?t=1645673">iPhone 5 - let the rumours begin (Part 2)</a><script type="text/javascript">thread_page_list(1645673,5);</script></td><td class="group"> </td><td class="reps" style="background-color: #cebeab;">89</td><td class="reads" style="background-color: #cbb9a4;">1557</td><td class="oldest"><a href="/user/26479"><b>-DrD-</b></a><br>Tuesday at 3:26 am</td><td class="newest"><a href="/user/92131"><b>Goliath Manhood</b></a><br>11 minutes ago</td><td class="goend"><a href="/forum-replies.cfm?t=1645673&p=-1&#bottom" style="color:silver" title="Jump to last post"><img src="/img/forum/arrow.gif" width="16" height="17" alt="Jump to last post" border="0"></a></td></tr>
I want to write a code (using getElement???) to display "iPhone 4 back scratch?" and i"Phone 5 - let the rumours begin (Part 2)". Looking around for ages but not sure.. I am able to use getElementById to get the whole text of the whole day div but I just want to extract that information only...