I am using PHP Scriptable Web Browser for downloading some data from
one web site and that website contains so many links https://www.xxxx.com/CWRWeb/ReportNav.do?rid=CHARGEBACK using this link i want to download the data this page contains one iframe when is access this page using my script i am able to get the that page contain but not able to get iframe content from that page
can any one guide me.
Thank you.
Related
I want to make a simple android application that uses webview for displaying a specific website. Since the app shouldn't open to no connection even in offline mode I want to save the cache first time and show it later. But using myWebView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK); this code only saves simple html files. The website i am using is in php. So it's not working, isn't there any way just the html part of the php page can be saved.
You can download the html to file storage and load it using iframe. If the app is in offline you can take the data from file storage. In this case your css and js have to be inlined to the page.
https://github.com/gregko/WebArchiveReader
How do I save a complete webpage displayed in Android's WebView?
I know I can use something like file_get_contents to save a web page's source locally, and I know how to manipulate the text of it. But what if the web page has JavaScript that dynamically generates content? How can I download the fully rendered page source?
You need to pass the data through a rendering engine. The simplest option is to programmatically control a web browser. Libraries that will help you do that include Selenium and php-phantomjs.
If I have an iframe loading a website from a different server, like bing.com, can I manipulate or retrieve the code from that iframe?
If not, I can do a curl request and create the iframe from that and then manipulate it, right?
In javascript you can't access the contents of an iframe if that site resides on a different domain than the one you are loading the iframe from. You can proxy the page load by having a PHP scrip that "curls" the request. There is a lot more involved than that though to cleanly proxy another site.
I'm working on a portal to a page where customers can see the streaming video of their security cams. I just currently have a page with our logo with an iframe containing the proper surveillance page. It works fine, except for one major problem. If the plugin isn't already installed, it will never prompt to load the H264 Streaming Viewer from AVTECH, as long as its being loaded through an iframe.
Is there anyway around this?
Do they have to be embedded via iframes? You may also consider injecting them via <object> or if they’re supposed to be iframe-dynamic consider using JavaScript to swap/navigate.
If iframe itself does not prompt, there’s no way around that wile using iframes.
You could however add a small or non-visible video to the page with the iframe, so users are asked (are they asked automatically or when starting the video?) when loading the parent page.
I am working on a project and was wondering how the code for downloading video files is like. I have an idea but it is half of the bigger picture.I am coding in php and jquery.
Simply link to them in either PHP or jQuery and then visitor to the site can click to download them; this is complicated by the server/client model of served pages, in that you're trying to get the client to download the videos, not the server.
Also, if their default viewer is something like Windows Media Player, this will manage the downloading for you/them.
Unless you're talking about embedding the video into the page and streaming the content when the page loads, or an event is fired (jQuery, etc)?
Hope this helps.