PDA

For continued disscussion on this topic : check it out!!!



jasmine
08-14-2000, 12:20 PM
will u pls check this code??? what is wrong here?????

=================
<html>
<head>
<title>onClick</title>
<%
Sub newField
Response.write "<br><div align=center><select name=rrrr size=1>"&"<option>rrr</option><option>sss</option><option>sss</option>"&"</select>"
Response.write "<input type=text name=zeri size=10><br>"
Response.write "<input type=button onClick=newField2 name=tikla value=tikla>"&"<br></div>"
End Sub
Sub newField2
Response.write "<br><div align=center><select name=rrrr size=1>"&"<option>rrr</option><option>sss</option><option>sss</option>"&"</select>"
Response.write "<input type=text name=zeri size=10><br>"
Response.write "<input type=button onClick=newField name=tikla value=tikla>"&"<br></div>"
End Sub
%>
</head>
<body>
<div align="center">
<input type="button" onClick=<%newField%> name="tikla" value="tikla">
</div>
</body>
</html>
==================

i only want to crate a button. everytime clicking this buton new dropdown menu and textfield will add under the old one. i hope u can understand what i told???


[Edited by jasmine on 08-14-2000 at 06:33 AM]

gzazJim
08-14-2000, 05:00 PM
Hello jasmine, and welcome.

I took a look at the code, and from what I can see, you're trying to create a new drop-down menu and text-box when you click the button ("tikla") correct?

One thing that I see that may be causing you some problems is the use of the <%newField%> as a subroutine call, and there are some other errors as well...

Give me some time to sift through the code, and I'll hopefully have an answer for you shortly.

Good Luck,

Jim

jasmine
08-15-2000, 02:18 PM
thank you very much Jim... i am waiting your answer patiently...
:D ... well u understand the idea very well :D thats cool.. B)


[Edited by jasmine on 08-15-2000 at 08:20 AM]