Re: [exim] Documentation: Older Versions

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Always Learning
Data:  
Para: Exim
CC: exim-users
Asunto: Re: [exim] Documentation: Older Versions

On Tue, 2011-09-13 at 16:37 +0100, exim-users@??? wrote:

> The mere act of selecting a different version from the dropdown *should*
> immediately redirect you to that documentation. If that does not happen
> for you, please let me know what browser you're using and if you've got
> any extensions/addons loaded.


Firefox 3.6.18 on Centos 5.6 X64.
All Javascript options in the browser enabled.

> Because the Exim website is static, the only way I could make a dropdown
> menu work was to use JavaScript. A form can only have one action
> attribute. If you don't have JavaScript enabled, then the dropdown
> shouldn't even appear.


May I suggest an alternative method in PHP?

<form .... new-web-page.php
<input type=hidden name='choice' value='index' ...
<option .. (for docs)
<input type=submit' ...
</form

<form .... new-web-page.php
<input type=hidden name='choice' value='filter' ...
<option .. (for filters)
<input type=submit' ...
</form

With new-web-page.php redirecting to the required web page based on $choice and $version

$next = '<HTML><HEAD><META HTTP-EQUIV="REFRESH" CONTENT="0; url=';
$next.= 'http://www.exim.org/exim-html-'.$version.'/doc/html/spec_html/'.$choice.'.html';
$next.= '"></HEAD></HTML>';

echo $next;

--
With best regards,

Paul.
England,
EU.