![]() |
2 actions from one link
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">Code:
<a href="#" id="toggle">Show Panel</a>Code:
<a href="page_to_call.htm" target="grid" id="toggle">Show panel and call page in iframe</a>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. |
I use jQuery. It would be something like this, not 100% perfect but it toggles and loads the external file into a div.
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> |
almost
Hey thanks for the reply
Unfortunatly it doesnt really work because i want to be able to click lots of links on the page, and for all of them to cause the toggle effect as well as load a page in the iframe. This example only works for one link (to open untitled-2.html) thanks for the help though, does anyone have any other ideas? Matt |
you need to create a var with a div and link id.
|
hey thanks for getting back to me. Im very new to this so i have no idea what a var is. can you explain what you mean?
thanks |
| All times are GMT +1. The time now is 02:31 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.