It's definitely not finding it. I get the following error:
What is your directory structure like, including where the javascript file is and the page you're loading it in is?
jmurrayhead
If you agree, give me rep.
If you like it here...throw us a few bones to help support us.
javascript file and the agenda asp page are both on the top level.
the html page that has the agenda asp page in an iframe which calls the javascript function is in a lower level directory: /symposium2010/
OK. I think I have kind of found the problem. It is to do with the fact you are using hyperlinks to call the toggle effect, which is causing a problem inside the IFRAME.
If you change the line that looks like this:-
to:-Code:<a href="javascript:animatedcollapse.toggle('10')" target="_top">Session Description</a>
it works. Obviously changing each to the relevant DIV id, not all of them to 10...Code:<div onclick="animatedcollapse.toggle('10')">Session Description</div>
You can add some styling to the div to make it look like a link, change the cursor etc. style="cursor: pointer;" etc.
One thing I did notice was that in IE it just makes the text appear and disappear. In FF, you get a bit of an animated effect, but in IE it just seems a straight appear / disappear. Seems like a heck of a lot of code for that.<edit>Actually just looked at the Dynamic Drive example and that does animate in IE. Maybe just because you don't have much text in yours...not sure</edit>
Hope that helps.
Thanks! I'll give it a shot.
Perfect! Thanks again.
New problem:
For some reason it stopped working in IE8... but still works fine in FF and IE7.
Now in IE8, when you click the session description it expands the length of the page and then contracts immediately.
I was trying to fix the column width of the session description when it started to happen. However, I reverted back to an old verison and it continued to happen. It's also happening on an even older version before I made any of the changes suggested here. I'm pretty sure that it was working before.... Maybe I should head over to the Dynamic Drive forums??
Does seem like this function is more trouble than it's worth...
So, it was working fine in IE8? Then you started to make some changes to the column width and it stopped working? And when you revert back to the version that was working previously, it's now not working?
Is that right?
<edit>Unfortunately, I don't have IE8 installed on my machine, so I'm unable to have a look at it</edit>
Am installing IE8 at the moment. Will install standalone IE7 when I'm done..
So, will have a look at when it's installed.
Agreed!
Pretty sure it was working in IE8 before, although I'm not 100%So, it was working fine in IE8? Then you started to make some changes to the column width and it stopped working? And when you revert back to the version that was working previously, it's now not working?
Is that right?
Thanks again!![]()
Bookmarks