+ Reply to Thread
Page 2 of 5 FirstFirst 1 2 3 4 ... LastLast
Results 11 to 20 of 43

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

  1. #11
    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

    Can you post a link to the page?

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

    http://www.waterinstitute.ufl.edu/copyo***enda2.asp

    I've only added the code to the first day's sessions

    the stars are "f" "a" "g" I guess they got censored out LOL
    Last edited by MaxxMills84; October 5th, 2009 at 12:58 PM. Reason: link

  3. #13
    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

    Change the initList function to this:-
    Code:
    function initList()
    {
       alert(divList.length);
       for(var i=0;i<divList.length;i++)
       {
            animatedcollapse.addDiv(divList[i],'fade=0');
       }
    
    animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
        //$: Access to jQuery
        //divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
        //state: "block" or "none", depending on state
    }
    
    animatedcollapse.init()
    
    }
    

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

    well it worked the way I mentioned earlier with just initializing about 100 divs.

    I'll give your code a shot but since the sessions won't be unlimited for a 3-day conference, I might just go ahead with that method.

    Thanks for all your help!

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

    new problem:
    when inserted the page in an iframe of an html page, the java stopped working again.

  6. #16
    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

    Could you post a link to the page containing the frame?

    It's just easier to view the code in situ.

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

    No problem:
    UF Water Institute

    Notice that if you go to the original page (linked above) everything works normally.

  8. #18
    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

    My guess is the Javascript src is using a relative URL somehow.

    Try changing this:-
    Code:
    
    <script type="text/javascript" src="animatedcollapse.js">
    
    to:-
    Code:
    
    <script type="text/javascript" src="/animatedcollapse.js">
    

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

    Tried, and it still doesn't work.

  10. #20
    Wolfmaster Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy's Avatar
    Join Date
    Mar 2008
    Location
    Peoria, IL
    Posts
    2,386
    Blog Entries
    5
    Real Name
    Wolff
    Rep Power
    15

    Just a guess but try either
    <script type="text/javascript" src="../animatedcollapse.js">
    or the full URL to the javascript.
    Wolffy
    .-- ----- ..-. ..-. -.--
    Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Void where prohibited by law. Not valid in California. Your mileage may vary.

+ Reply to Thread
Page 2 of 5 FirstFirst 1 2 3 4 ... 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