creating a loop for a datalist

Posted on 2006-03-23
Last Modified: 2008-03-17
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:
<script language="JavaScript" type="text/javascript" src=""></script>

here is how i am implementing it currently:

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

please advise.
Question by:odobo
    LVL 28

    Accepted Solution

    for(int i=0; i<ARRAYLENGTH; i++)
        for(int j=0; J<ARRAYLENGTH2; j++)


    for(int i=0; i<ARRAYLENGTH; i++)

    Author Comment

    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.


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now