Hello ,
I stand on the hose ...
Who can please bring enlightenment to me?
I try a site that I run,
similar to the browser with the right mouse button,
save as "Page Source" in a file.
This should work with web (1) and File (1) using the Web Viewer (1),
but I do not like has to look around the straining.
Who can help me best with a pattern.
Thank you once, hope to speak.
Jörg
-
use the web component and receive the page source in the Web.GotText event
web.get
A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/b ook2 ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.or g/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bo okFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/co ntent/howDoYou/eventHandling .
Also do the tutorials http://appinventor.mit.edu/ explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the
Top 5 Tips: How to learn App Inventor
You will not find a tutorial, which does exactly what you are looking for. But doing the tutorials (not only reading a little bit) help you to understand, how things are working. This is important and this is the first step to do.
Taifun
--
you probably haven't seen my edited answer...
if you prefer to store the webpage in a file, then set additionally
set.web.SaveResponse = True
and use the Web.GotFile event instead
see also the documentation of the web component http://ai2.appinvent or.mit.edu/reference/component s/connectivity.html#Web
Taifun
--
--
that's fine, the most important thing, it's working for you
Event indicating that a request has finished.
The name of the file where the response should be saved. If SaveResponse is true and ResponseFileName is empty, then a new file name will be generated.
Whether the response should be saved in a file.
but why don't you set Web.SaveResponse to true and set Web.ResponseFieName to the filename you like and use the Web.GotFile event instead? You do not necessarily need the file component...
GotFile(text url, number responseCode, text responseType, text fileName)
ResponseFileName
SaveResponse
Taifun
--
How can i save or read HTML cod, which was opened in WebViewer and was receive data? Thanks a lot in advance.
답글삭제