RSS Forums RSS
Please support our ASP advertiser: Lunarpages ASP Web Hosting

How can i add textboxes dynamically in an asp page

Join Date: Mar 2007
Posts: 2
Reputation: kuzthinks is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
kuzthinks kuzthinks is offline Offline
Newbie Poster

Re: How can i add textboxes dynamically in an asp page

  #5  
Mar 15th, 2007
Originally Posted by radharadha View Post
<Script>
//Expand form with a new File fields if needed.
var nfiles1 = 1;
var nfiles2 = 2;
function Expand()
{
var a,b;
b=document.f.totGoods.value;
a=parseInt(b) + 1 ;
document.f.totGoods.value="";
document.f.totGoods.value=a;
var adh1 = '<b><font face=arial color=red size=2>'+ nfiles2 +'. ';
var adh = '';nfiles1++nfiles2++ files.insertAdjacentHTML('BeforeEnd',adh1); files.insertAdjacentHTML('BeforeEnd',adh);
return false;
}
</Script>

<table border=3 cellpadding=15 cellspacing=10 width=80% bgcolor=#F3DCF8>
<tr>
<td>
<table border=0 cellpadding=5 cellspacing=5>
<tr>
<td>
<b><font face=arial color=red size=2>1.&nbsp;&nbsp;<input class="text" name="txtActivity" style="font-size: xx-small; height: 20; width: 420; border-width: 1px">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<Input Type=Image src=Images\click.gif OnClick=return(Expand()) Style="border=0;background=#FFDEBF;cursor:hand">
<Div ID=files>
</div>
</td>
</tr>
</table>

</td>
</tr>
</table>




Please check your code before posting on the net or atlease explain what you have added.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:05 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC