Trapping Web page data - Forum

Forum Navigation
You need to log in to create posts and topics.

Trapping Web page data

In NB, one can load a web page into a browser object and get/respond to various page data and states.

Is there such a mechanism in VNW ?

@rcohen VNWeb apps works within a Web Browser. You can use a IFrame object to embed content from another web page. Just add the URL in the "source" property. Note that, for security reasons, your access to that web site data could be restricted from the host App.

Regards.

OK,  perhaps one can just access the source code and process what that contains.

Thanks

Hi to all.

That is just what I am trying to do.

I want to load a web page in a local file or in a variable to analyze it and get some data.
What would be the correct way?

Greetings.

@cn_iceman and @rcohen the correct way should be using a very simple PHP script: just call the script from a Form Object and get the HTML code as a response (very similar as the sample app Form Submit works).

Please take a look here for more information about how to get a website source code in PHP:
https://stackoverflow.com/questions/819182/how-do-i-get-the-html-code-of-a-web-page-in-php

Best regards.

CN_Iceman has reacted to this post.
CN_Iceman

Thanks Luis for the reply.

I come from NeoBook and I am still a novice with Java, PHP, etc ... I will study it.

P.S. (Yesterday I got my first application made with VisualNEO Web to work on an Android and on a web page ... now I aspire to more and I am trying to port my applications made with the old NeoBook).    ;-)

luishp has reacted to this post.
luishp

P.S. (Yesterday I got my first application made with VisualNEO Web to work on an Android and on a web page ... now I aspire to more and I am trying to port my applications made with the old NeoBook).

Great! I hope you to enjoy using VisualNEO Web :)
By the way, to add advanced programming to your apps you don't need Java, but JavaScript. Although the name and syntax is very similar they are two different languages.

JavaScript ... totally agree. My fault.
Anyway, I have a lot to learn.

Greetings.

Hi Iceman... I'm also a NBer who is completely a novice with server side languages. I'm severely limited in that area... and so I'm hoping to learn / acquire already written snippets that I can turn into functions.  Once I can understand THAT, I think I will be able to wrap my brain around it.   I'm very busy with too much on my table right now to "dive in" but that day will come soon.  Meanwhile I'll aspire to simply use it as a wrapper for server side trix.

Lois.  I forget where I read some mention (from you) regarding harnessing Chrome for NeoWeb.   When that happens, might there be similar functionally in NeoWeb to permit the same kind of Browser page variables or hooks that NB web objects have?  That's essentially what I was asking.  Having an actual Browser Object module with it's own controls.  I realize that once I learn Javascript that I may be able to extract / interact with the content that way, but short of that, I'm seeking the basic stuff built into a function or module.  So naturally when I read where you mentioned your interest in Chrome, it sparked my interest.

Thanks guys

 

CN_Iceman has reacted to this post.
CN_Iceman