Hi all,
Trying to something i guess is pretty basic but i cant seem to get it working. I have a page with an iframe name="grid" and on that page i am also running a mootools script which toggles a pannel.
The javascript for the pannel is:
Code:
<script type="text/javascript">
window.addEvent('domready', function(){
var mySlide = new Fx.Slide('top-panel');
$('toggle').addEvent('click', function(e){
e = new Event(e);
mySlide.toggle();
e.stop();
});
});
</script>
so this link opens the pannel
Code:
<a href="#" id="toggle">Show Panel</a>
However, i want to make a it so that one link can both call a page in the iframe AND toggle the pannel. I tried:
Code:
<a href="page_to_call.htm" target="grid" id="toggle">Show panel and call page in iframe</a>
but no joy.
I want more than one link to be able to do this (calling different pages to the iframe and each one toggling the pannel)
Can anyone help?
Thanks loads in advance for any reply.