Christian Knoke <[EMAIL PROTECTED]> wrote:
> "Andrew M. Bishop" wrote:
> > Christian Knoke <[EMAIL PROTECTED]> wrote:
> > > To the list: BTW, how does wwwoffle behave, when it sees some
> > > if ... then ... else .. in the JS code? I guess it loads
> > > every URL it sees.
> >
> > When WWWOFFLE sees some javascript it just skips over all of
> ******************
> > it.
> So, what does the option
>
> FetchOptions
> {
> scripts = yes
> }
>
> do exactly?
There are two ways of including Javascript into a web-page. It can
either be included in-line:
<script language="javascript">
document.write("<img src='http://www.foo/bar.gif'>");
</script>
or it can be included as a reference to an external file:
<script src="some_javascript.js" language="javascript">
</script>
WWWOFFLE can handle the second type using the script option in the
FetchOptions section of the configuration file.
WWWOFFLE does not handle javascript that is inline because that
requires a Javascript parser. In general the contents of it are
rather more complex than the example that I have shown.
--
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop [EMAIL PROTECTED]
http://www.gedanken.demon.co.uk/
WWWOFFLE users page:
http://www.gedanken.demon.co.uk/wwwoffle/version-2.6/user.html