Dependant files query

K

KiwiBrian

Is there a program, application, or utility, that I can point at an HTML
file and will produce a list of dependant files used by both the HTML and
CSS files?

TIA
Brian Tozer
 
B

brucie

In alt.html KiwiBrian said:
Is there a program, application, or utility, that I can point at an HTML
file and will produce a list of dependant files used by both the HTML

the xenu link checker comes to mind. as part of its checking process it
spews out lists of dependent files.
http://home.snafu.de/tilman/xenulink.html
and CSS files?

dunno, but probably not. theres not much a css file can link to so its
an easy manual check.
 
T

Toby Inkster

KiwiBrian said:
Is there a program, application, or utility, that I can point at an HTML
file and will produce a list of dependant files used by both the HTML and
CSS files?

Not very reliably, no.

Wget for example will let you download an HTML file and it's
"prerequisites" (linked images, etc), but you'd often need a very
intelligent piece for software to be able to calculate everything that a
page requires!

For example:

<html>
<title>Example</title>
<script type="text/javascript">
for (var i=0; i<10; i++) {
document.write("<img src=\"img" + i + ".jpeg\" alt=\"Image " + i + "\"><br>");
}
</script>
</html>

This page requires files img0.jpeg to img9.jpeg to load, but your program
would have to understand and run the Javascript to know that!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,186
Latest member
vinaykumar_nevatia

Latest Threads

Top