Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Adding Columns

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3248
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Adding Columns
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Adding Columns - 6/6/2005 12:52:40 AM   
  kya_karey

 

Posts: 39
Score: 0
Joined: 5/11/2005
From: India
Status: offline
Hi ,
i want to add columns in table by clicking the button "Add col"

here is my script
<html>
<body>
<div id=Table1></div>
<input type="Button" value="Enter columns" OnClick="EnterCol()">

<div id=Table1>
<table border=1>
<tr>
<td>Id(No)</td>
<td>ABC(kbps)</td>
<td>XYZ(kbps)</td>
</tr>

<script type="text/vbscript">
For i =1 to 4
Document.write("<tr>")
Document.write("<td >" & i & "</td>")
abc = 20 * i
xyz = 10*i
Document.Write "<TD>" & abc & "</TD>"
Document.Write "<TD>" & xyz & "</TD>"
Document.write("</tr>")
Next
</script>
</table>
</div>
</body>

<head>
Function Entercol()
End Function
</head>
</html>

Can anybody tell me what will be my script in EnterCol function.
My column should be after "xyz" columns.
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Adding Columns Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts