Parsing the html content..?
| Tue, 2007-02-20 16:07 | |
|
|
Hi,
I want to achieve something like this.. lets say i have a html page that has phone numbers as text on it..is there a way i can possibly parse the content of the html page to maybe pick up those phone numbers..and then provide the user the option to make calls on those numbers from the browser itself..maybe either by right clicking or something..or providing menu options for the same..? I mean parsing happens on richtexteditor in uiq and it gives u the option to make calls and all..that much i know..but my case is quite different from the uiq scenario..how do i achieve something like this..? I am targetting Series 60 3rd Edition/Series 60 Browser/Symbian 9.1 Cheers mayank |






Forum posts: 981
pirosl
Forum posts: 723
Tote
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/
Forum posts: 148
No i have not tried the same..do u have some code snippet for the same..would be good if u can share it..?
coz my doubt is that the CFindItemEngine searches for phone number etc in the given text..but i am not sure how to get the text..as the same is displayed in an html page..and there has to be some mechanism to read the contents of the page into a descriptor or something of that sort..right?
Cheers
mayank
Forum posts: 723
Tote
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/
Forum posts: 148
Actually what i want to do is..lets say i have some content on the web page..say list of hotels and their phone numbers..what i want to do is give the user the option to make calls on those numbers from the browser itself..something like either on right click on the number on the page...the call gets initiated..or maybe provide the user with menu options on the browser to make calls...something like that..?
Cheers
mayank
Forum posts: 723
Tote
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/
Forum posts: 148
But when u say supports making phone call etc..how exactly..i mean how can i make a call from the browser..what needs to be done..can u elaborate on its actual working..coz even i have read its possible..but how..is the question tat bugs me..
Cheers
mayank
Forum posts: 723
Tote
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/
Forum posts: 148
Isnt there a way to read the contents of the html..coz if i can do that..the remaining things i will figure out..?
Cheers
mayank
Forum posts: 723
Tote
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/
Forum posts: 149
Unfortunately, on Series 60 there is a flag ENoTextParsers but not the opposite, and I can't get the darn thing to acknowledge URLs. Can anyone offer me any advice?
Thanks!
-euroq
Forum posts: 148
cheers
Forum posts: 149
IMPORT_C void SetParserObserver(MEikRichTextEditorParserObserver* aObserver);.
There is also a function in CEikEdwin's private subclass CEikEdwinExtension called
void CreateRichTextPhoneNumberFormatterL( CTextLayout& aTextLayout, const CRichText& aText );
(as well as a few others similar to that).
The Notepad application that comes installed uses a text parser that catches phone numbers and lets you call them. I'm thinking there has to be a way to get to this functionality without reinventing the wheel.
Speaking of reinventing the wheel, I hope that there is at least a way to create your own text parser within the rich text editor. That way you don't have to rewrite a text editor!
Forum posts: 1
Any more info?