lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: [Lynx-dev] Would Lynx try to download iFrames, External Javascript


From: Rashmi Rubdi
Subject: Fwd: [Lynx-dev] Would Lynx try to download iFrames, External Javascript etc
Date: Fri, 8 Jun 2007 09:26:28 -0400

Thank you Stef for your reply.

I tried the -traversal option on a local html file on the disk and got
this message
The '-traversal' switch is for http URLs and cannot be used for
'first.html'. , so I guess I can't test it on local files.

But I tried the -crawl switch along with the -trace switch as in:

lynx -crawl -dump -force_html -nolist -hiddenlinks=ignore -trace  first.html

------------------------------------------
The output looks like the following, so from looking at the output it
appears that
Lynx is not making a connection to any of the external resources.
------------------------------------------

address@hidden lynx_test]$ lynx -crawl -dump -force_html -nolist
-hiddenlinks=ignore -trace first.html
THE_URL:file://localhost/var/tmp/lynx_test/first.html
THE_TITLE: Test Page in Lynx

  This is a test

  Google
  An example image

  IFRAME: http://www.yahoo.com
  Alternate content for browsers that don't support iFrames.

  [BUTTON]
address@hidden  lynx_test]$

------------------------------------------------------------
first.html contents (the input to lynx command)

For testing purposes:
I've added a script tag to point to an external javascript
an img tag pointing to an external site's image
an iframe pointing to an external site
------------------------------------------------------------

<html>
<head>
<title>
Test Page in Lynx
</title>
<script type="text/javascript"
src="http://us.js2.yimg.com/us.yimg.com/a/1-/java/promotions/js/ad_eo_1.1.js";></script>
<link rel="stylesheet"
href="http://i.a.cnn.net/cnn/.element/ssi/css/1.5/main.css";
type="text/css"/>
<script type="text/javascript">
function doAlert(){
       alert('Hello!');
}
</script>
</head>
<body>
<div>This is a test</div>
<br/><br/>
<a href="http://www.google.com";>Google</a>
<br/><br/>
<img src="http://www.google.com/intl/en_ALL/images/logo.gif"; alt="An
example image"/>
<br/><br/>
<iframe src="http://www.yahoo.com"; title="Yahoo IFrame">
       Alternate content for browsers that don't support iFrames.
</iframe>

<input type="button" value="Press Me" onclick="doAlert()"/>
</body>
</html>

-Regards
Rashmi

On 6/7/07, Stef Caunter <address@hidden> wrote:
On Thu, 7 Jun 2007, Rashmi Rubdi wrote:

> lynx -dump -force_html -nolist -hiddenlinks=ignore first.html
>
> however, I just wanted to verify that it is true that Lynx does not (by
> itself)
> try to download web page resources that are external to that web page such as

Reading a -trace session is instructive. The lynx browser will check if the URL
argument is local first. Since "first.html" is local, no network activity
occurs; otherwise you would see name resolution and a GET request.

But see lynx -traversal -crawl

http://lynx.isc.org/current/lynx2-8-7/docs/CRAWL.announce

You will see some of the behaviour you expect.

Stef
http://caunter.ca/contact.html





reply via email to

[Prev in Thread] Current Thread [Next in Thread]