creating a loop for a datalist

I have some javascript that pulls information off another site in the form of an array... what i want to do is have a loop go through the array and put this into a datalist  then break when there is nothing left in the array.

here is the code i'm working with:
<head>
<script language="JavaScript" type="text/javascript" src="http://oursite.com/js/specials_js.rvlx?no=4&type=cruise"></script>
</head>

here is how i am implementing it currently:

<td>
                              <script language='JavaScript'>
                        document.write ('<a href="' + special[0][4] + '"><img src="http://res.traveldynamicsgroup.com/' + special[0][2] +                                                                                             '"width="100" height="50" border="0"></a>');</script>
                    <td>

please advise.
odoboAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

strickddCommented:
for(int i=0; i<ARRAYLENGTH; i++)
{
    for(int j=0; J<ARRAYLENGTH2; j++)
    {
          ArrayName[i][j];
    }
}

or

for(int i=0; i<ARRAYLENGTH; i++)
{
    ArrayName[i];
}
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
odoboAuthor Commented:
strickdd,
thank you for the reply. I couldn't end up doing what i intended to do as js is client side and asp being ss. i wanted to accomplish everything at runtime, but i found a work around for what i was doing. i am now having problems with another thing. please see my question on multiple validators. thanks again.

jared
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.