Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    kaz
    kaz is offline
    New to the CF scene
    Join Date
    Dec 2003
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    creating tables using js

    i've real difficulty in creatin a blank table which has to be 23 rows by 25 cols, i have to use a for loop for it and i've tries many times and still am really unsuccessful.

    I wud apprciate if some one cud help me

    thanx

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #3
    Regular Coder Skyzyx's Avatar
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Vladdy
    Here is a starting point:
    Please check your spelling and grammar when posting!
    Gee, looks like Yet Another Unhelpful Post (tm)...

    But, Vladdy is right. You need to work on writing your English as properly as you can.

    Code:
    <script language="javascript" type="text/javascript">
    <!--
    
    document.write('<table>');
    
    for (var x=1; x<=23; x++)
    {
    	document.write('<tr>');
    
    	for (var y=1; y<=25; y++)
    	{
    		document.write('<td>r'+x+'c'+y+'</td>');
    	}
    
    	document.write('</tr>');
    }
    
    document.write('</table>');
    
    //-->
    </script>
    Hope this helps!

    Creator of SimplePie and Tarzan AWS, co-founder of WarpShare, co-built the Y! Messenger website, usability-focused, and an INFJ personality.


  •  

    Posting Permissions

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