HTTrack Website Copier
Free software offline browser - FORUM
Subject: Javascript var variable incorrectly rewritten
Author: Philip Hutchison
Date: 09/15/2010 14:04
 
I'm having trouble capturing a web site that has the following javascript code
in it:

<script type="text/javascript">
    var GB_ROOT_DIR = "./greybox/";
</script>


If I use the rule:
+./greybox/
I get the following:
var GB_ROOT_DIR = "../external.html?link=http://www.statusint.com/greybox/;

Alternatively if I use the rules:
+*greybox*   or
+*/greybox*  or
+*greybox/*
I get the following:
var GB_ROOT_DIR = "greybox/index.html";


How do I stop httrack from changing the javascript var? Is this a bug or do I
have the rule done incorrectly or is there some option I should be using?
I'm using httrack HTTrack3.43-5 from Ubuntu 9.10. Checking the change logs for
HTTrack3.43-9C doesn't have any changes in the javascript processing.

The command string I'm using is:
webhttrack -q -%i -w <http://statusint.com/result.php?id=3> -O
"/av/stamp_websites/Status 269" -n -%P -N0 -s2 -o -x -p7 -D -a -K0 -c1 -%k
-A25000 -F "Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)" -%F "<!--
Mirrored from %s%s by HTTrack Website Copier/3.x [XR&CO'2006], %s -->" -*
+*.css +*.js +*.gif +*.jpg +*.png +*.tif +*.bmp +*greybox/* -%s -%u
 
Reply


All articles

Subject Author Date
Javascript var variable incorrectly rewritten

09/15/2010 14:04
Re: Javascript var variable incorrectly rewritten

09/15/2010 14:06
Re: Javascript var variable incorrectly rewritten

09/15/2010 17:41
Re: Javascript var variable incorrectly rewritten

09/22/2010 14:55




1

Created with FORUM 2.0.11