+ Reply to Thread
Page 3 of 5 FirstFirst 1 2 3 4 5 LastLast
Results 21 to 30 of 43

Thread: Need help with a looping function call in Java + ASP

  1. #21
    Barn Newbie MaxxMills84 is an unknown quantity at this point MaxxMills84's Avatar
    Join Date
    Jun 2009
    Posts
    46
    Rep Power
    3

    Quote Originally Posted by Wolffy View Post
    Just a guess but try either
    <script type="text/javascript" src="../animatedcollapse.js">
    or the full URL to the javascript.
    Tried both of these. Nothing.

  2. #22
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    It's definitely not finding it. I get the following error:

    Message: 'animatedcollapse' is undefined
    Line: 1
    Char: 1
    Code: 0
    URI: UF Water Institute
    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.


  3. #23
    Barn Newbie MaxxMills84 is an unknown quantity at this point MaxxMills84's Avatar
    Join Date
    Jun 2009
    Posts
    46
    Rep Power
    3

    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/

  4. #24
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    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:-
    Code:
    <a href="javascript:animatedcollapse.toggle('10')" target="_top">Session Description</a>
    
    to:-
    Code:
    <div onclick="animatedcollapse.toggle('10')">Session Description</div>
    
    it works. Obviously changing each to the relevant DIV id, not all of them to 10...

    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.

  5. #25
    Barn Newbie MaxxMills84 is an unknown quantity at this point MaxxMills84's Avatar
    Join Date
    Jun 2009
    Posts
    46
    Rep Power
    3

    Thanks! I'll give it a shot.

  6. #26
    Barn Newbie MaxxMills84 is an unknown quantity at this point MaxxMills84's Avatar
    Join Date
    Jun 2009
    Posts
    46
    Rep Power
    3

    Perfect! Thanks again.

  7. #27
    Barn Newbie MaxxMills84 is an unknown quantity at this point MaxxMills84's Avatar
    Join Date
    Jun 2009
    Posts
    46
    Rep Power
    3

    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??

  8. #28
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    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>

  9. #29
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Am installing IE8 at the moment. Will install standalone IE7 when I'm done..

    So, will have a look at when it's installed.

  10. #30
    Barn Newbie MaxxMills84 is an unknown quantity at this point MaxxMills84's Avatar
    Join Date
    Jun 2009
    Posts
    46
    Rep Power
    3

    Quote Originally Posted by richyrich View Post
    Does seem like this function is more trouble than it's worth...
    Agreed!

    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?
    Pretty sure it was working in IE8 before, although I'm not 100%

    Quote Originally Posted by richyrich View Post
    Am installing IE8 at the moment. Will install standalone IE7 when I'm done..

    So, will have a look at when it's installed.
    Thanks again!

+ Reply to Thread
Page 3 of 5 FirstFirst 1 2 3 4 5 LastLast

Similar Threads

  1. How to call a .js file in my form?
    By dtz in forum JavaScript Programming
    Replies: 9
    Last Post: July 28th, 2009, 07:28 AM
  2. Looping Through Records
    By BLaaaaaaaaaarche in forum ASP Development
    Replies: 3
    Last Post: July 15th, 2009, 09:42 PM
  3. Call Serverside Function from A Tag
    By noFriends in forum .NET Development
    Replies: 18
    Last Post: June 29th, 2009, 10:59 AM
  4. Help with JS function
    By Wolffy in forum JavaScript Programming
    Replies: 1
    Last Post: June 9th, 2009, 10:52 AM
  5. Looping through variables.
    By mehere in forum SQL Development
    Replies: 2
    Last Post: June 4th, 2008, 01:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO