Multumesc domnului Cristian Teodorescu pt. ajutor!

<html>
<head>
<title>Author1</title>
<script language = "JavaScript">
function afiseaza(){
var new_eventtypex
var list = document.forma_lui_cristi.eventtypeid

if(list.options[list.selectedIndex].value==-2){
    new_eventtypex = window.prompt("NEW EVENT TYPE","xxx");
    document.forma_lui_cristi.new_eventtype.value = new_eventtypex;
    document.forma_lui_cristi.eventtypename.value = new_eventtypex
    }
else{
    document.forma_lui_cristi.eventtypename.value =
list.options[list.selectedIndex].text
}

}

</script>

</head>

<body bgcolor="#FFFFFF">


<p>Back to <a href="/cgi-bin/arh/menu.pl">menu</a>
<form NAME="forma_lui_cristi" action ='/cgi-bin/arh/salvarecoord.pl'
method="POST">

    <div align="center"><center><table border="1">
<tr>


<TD ALIGN=CENTER><B>Event Type</td>
</B></td>
<TD ALIGN=LEFT><select name="eventtypeid" size="1"
onChange="afiseaza(this.value)">
<option value=1>Birth</option>
<option value=2>Baptism</option>
<option value=3>Death</option>
<option value=4>Deal</option>
<option value=5>Holiday</option>
<option value=-2>***New event type***</option>  </select>
<input type="text" size="34"
 name="eventtypename">
</td>
</tr>
<input type="hidden" name="new_eventtype">
</table>
</form>
</body>
</html>

> On Thursday 09 October 2003 14:02, cristi wrote:
> > Multumesc Cristian!
> > 50% din problema este rezolvata.
> > Acum mai ramane sa afiseze acea fereastra prompt la alegerea din
> > lista a optiunii: ***New event type***
> >
> > De ce nu vrea sa o afiseze?
>
> kHTML o afiseaza. Numai ca, din pacate, kHTML a inceput sa fie
> compatibil IE ;(
>
> --
>   Claudiu Cismaru
>   GPG Key: http://maya.cnixs.com/~claudiu/claudiu.gpg
>
> ---
> Detalii despre listele noastre de mail: http://www.lug.ro/
>
>
>
>


--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui