Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
Gaspertrix
Posts: 35
Registered: ‎09-28-2013
My Device: Dev Alpha B
My Carrier: Movistar

HTML DOM Parser

Is there any HTML DOM Parser included in Cascades?

Or can QWebElement be included?

Please use plain text.
New Developer
Gaspertrix
Posts: 35
Registered: ‎09-28-2013
My Device: Dev Alpha B
My Carrier: Movistar

Re: HTML DOM Parser

Or is it posible with QML/Javascript?

Please use plain text.
Developer
greenmr
Posts: 882
Registered: ‎03-20-2013
My Device: Red LE Developer Z10
My Carrier: Fido

Re: HTML DOM Parser

I do all my DOM manipulation by injecting JavaScript with WebView::evaluateJavaScript(). What exactly are you trying to achieve?

 


Gaspertrix wrote:

Or is it posible with QML/Javascript?






Developer of Built for BlackBerry certified multiFEED RSS/Atom feed reader and aggregator.
Please use plain text.
New Developer
Gaspertrix
Posts: 35
Registered: ‎09-28-2013
My Device: Dev Alpha B
My Carrier: Movistar

Re: HTML DOM Parser

Thank you, that helped me.
But I need now to do it using C++ / Qt for the headless part.

Do you know something?
Please use plain text.
Developer
greenmr
Posts: 882
Registered: ‎03-20-2013
My Device: Red LE Developer Z10
My Carrier: Fido

Re: HTML DOM Parser

I don't understand what you are asking. Please elaborate what you are trying to do and what problems you are encountering.


Gaspertrix wrote:
Thank you, that helped me.
But I need now to do it using C++ / Qt for the headless part.

Do you know something?





Developer of Built for BlackBerry certified multiFEED RSS/Atom feed reader and aggregator.
Please use plain text.
New Developer
Gaspertrix
Posts: 35
Registered: ‎09-28-2013
My Device: Dev Alpha B
My Carrier: Movistar

Re: HTML DOM Parser

I have an HTML code and want to extract information from it.

I was using WebView and injecting JS code, but now I need to do the same but using C++ / Qt for the headless part of an app.

Please use plain text.
Developer
greenmr
Posts: 882
Registered: ‎03-20-2013
My Device: Red LE Developer Z10
My Carrier: Fido

Re: HTML DOM Parser

Ok, now I understand. I haven't used it yet myself (although I intend to in a planned future project) but WebPage appears to be a non-visual version of WebView. You can load a page and call evaluateJavaScript(), but the page isn't actually displayed anywhere. You just create an instance of WebPage but never attach it to a scene.

 

I think this will do what you need.


Gaspertrix wrote:

I have an HTML code and want to extract information from it.

I was using WebView and injecting JS code, but now I need to do the same but using C++ / Qt for the headless part of an app.






Developer of Built for BlackBerry certified multiFEED RSS/Atom feed reader and aggregator.
Please use plain text.