HTTrack Website Copier
Free software offline browser - FORUM
Subject: fixing dropdown menue problem when creating a site
Author: marcus
Date: 07/09/2004 13:54
 
hi, we build a dynamic website for offlinebrowsing, too. so 
there is a problem with dropdown menues and we need it for 
selection! mmmh. based on the solution of this thread 
<http://forum.httrack.com/readmsg/8394/index.html?pid=8384&days=10000&js=1&lang=en>
i've do the following:

CFML CODE+++++++++++++++++++++++++++++++++++++++++++++++++++
<script type="text/javascript">
function goToPage(page) {
eval("parent.location." + page);
}
</script>
<select name="prod" onChange="goToPage(this.options
[selectedIndex].value);">
<option value="">Schnellauswahl</option>
<cfloop query="qry_artikelwahl2">
<option
value="href='index.cfm?mm=#url.mm#&mainkat=#mcID#'">#qry_artikelwahl2.mc_bezeichnun
g#</option>
</cfloop>
</select>

HTTRACK parse the option value because there is a href and 
the JavaScript Function evaluate the href="*.cfm"

Thats the online Result:++++++++++++++++++++++++++++++++++++

<script type="text/javascript">
function goToPage(page) { eval("parent.location." + page); }
</script>
<select name="prod" onChange="goToPage(this.options
[selectedIndex].value);">
<option value="">Schnellauswahl</option>
<option value="href='index.cfm?mm=produkte&mainkat=6'">Atlantik</option>
<option value="href='index.cfm?mm=produkte&mainkat=4'">Bügel</option>
<option value="href='index.cfm?mm=produkte&mainkat=1'">Haushalt</option>
</select>

And the OFFLINE PAGE:+++++++++++++++++++++++++++++++++++++++

<script type="text/javascript">
function goToPage(page) { eval("parent.location." + page); }
</script>
<select name="prod" onChange="goToPage(this.options
[selectedIndex].value);">
<option value="">Schnellauswahl</option>
<option value="href='index6a9.htm'">Atlantik</option>
<option value="href='indexbb2.htm'">Bügel</option>
<option value="href='index487.htm'">Haushalt</option>
<option value="href='indexc45.htm'">Sanitär</option>
<option value="href='index5f4.htm'">Tücher</option>
</select> 
 
OK, i hope it will help you and maybe you have a 
suggestion...
thanks for the best offline browser!!!
best wishes
marcus


 
Reply


All articles

Subject Author Date
fixing dropdown menue problem when creating a site

07/09/2004 13:54
Re: fixing dropdown menue problem when creating a site

07/10/2004 14:32
Re: fixing dropdown menue problem when creating a site

07/12/2004 08:41




2

Created with FORUM 2.0.11