Hi Allan, 
if I have understood correctly,
you want to have a grip over actions fired by onchange() of dataset
select menu, effectively you would be able to print something in the
<div> for header.tt

If so, then you need to interrogate 

biomart-perl/conf/templates/default/main.tt

you will find the following line:

<body style="margin: 0px;" onload="setVisibleStatus()">

which refers to the javascript call of function 'setVisibleStatus()'
which lives in htdocs/martview/js/martview.js

as the moment you trigger the dataset menu, 
document.mainform.submit(); is called from 'datasetpanel.tt'
which then redraws the whole pages but keeps all the CGI params intact.

One way of achieving what you are trying to do is to write a bit of
javascript in setVisibleStatus() and print the selected value of HTML
dataset select menu
<select name="datasetmenu_3">
into some <div> in header.tt.
thats just one way, you may consider your own logic.

good luck!
syed




On Wed, 2007-09-05 at 13:04 +0200, allank wrote:
> Hi,
> I am looking for a way to dynamically include a custom anchor in the 
> header that is influence by the selection of dataset.
> I can easily insert a link between the 'Results' and 'XML' anchors by 
> editing the 'header.tt' file, now I am looking for a way to dynamically 
> provide text for this anchor based on the dataset selected (for example 
> I would like to have the dataset name displayed in the link).
> 
> Allan.
-- 
======================================
Syed Haider.
EMBL-European Bioinformatics Institute
Wellcome Trust Genome Campus, Hinxton,
Cambridge CB10 1SD, UK.
======================================

Reply via email to