User Profile

Collapse

Profile Sidebar

Collapse
shermola1
shermola1
Last Activity: Feb 2 '07, 07:45 PM
Joined: Nov 27 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shermola1
    replied to array of objects
    Okay, I've figured out the problem (with help from a friend). It was actually very simple. I needed to change
    Code:
    myHolidays[i] = new fHolidays(jsHolidaysList("Holidays"), jsHolidaysList("Date"), jsHolidaysList("State"));
    to:
    Code:
    myHolidays[i] = new fHolidays(jsHolidaysList("Holidays").value, jsHolidaysList("Date").value, jsHolidaysList("State").value);
    ...
    See more | Go to post

    Leave a comment:


  • shermola1
    replied to array of objects
    The only thing you're not seeing is the function behind getADOObject. I'll post that below, just so you can see it. Also, this is server-side javascript, not client-side. I assumed that was obvious, but I just want to be clear, just in case.

    I actually found one problem, fixed it and created another problem. If you look at the code, you will see that there is jsHolidaysList. moveNext(), but there is no if (!jsHolidaysLis t.eof) at...
    See more | Go to post

    Leave a comment:


  • shermola1
    replied to array of objects
    Cannot or should not? The response.write works everywhere *except* the last iteration ("herewego: "), so obviously it works with Javascript. getADOObject is a javascript function I've written, so it is javascript, but it is not part of the problem, it works fine - it gets the data from the datasource. The problem is that the array becomes empty after the "for loop." I use very similar code in other places very successfully,...
    See more | Go to post

    Leave a comment:


  • shermola1
    replied to array of objects
    Even though
    Code:
    Response.write("Herewego: " + myHolidays[i].holidays);
    is outside of the loop? That doesn't make any sense to me. At that point the value of i will only be equal to the last value and therefore will only write one value. Since (in this case) there are three possible values, I need all three of them to write out. Plus, even though I specified the value of i, since that value exists, it should still display....
    See more | Go to post

    Leave a comment:


  • shermola1
    started a topic array of objects

    array of objects

    I'm trying to create an array of objects based on some code by DB McGee in an earlier post and I'm having issues. Once the for loop is complete, my objects no longer contain any data. To be more specific, there are five Response.write lines that I'm using for testing purposes. The first four all return data. The last one ("herewego:" ) does not. I'm sure I'm missing something stupid, but I can't waste any more time on this. There is...
    See more | Go to post
No activity results to display
Show More
Working...