phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SV: [Phpgroupware-developers] some strange beahviour with later updates


From: Sigurd Nes
Subject: SV: [Phpgroupware-developers] some strange beahviour with later updates of head
Date: Mon, 10 Apr 2006 11:31:54 +0200 (CEST)

 
> document.all is IE only.
> 
> Try
> 
> <script type="text/javascript">
> //<[CDATA[
>       /**
>       * TODO Document function so others understand it :)
>       */
>       function modplace(form)
>       {
>               if ( !document.getElementById )
>               {
>                       return false; // doesn't support DOM so bailout
>               }
>               var val = form.place_id.value;
>               var div1 = document.getElementById('div1');
>               if(val == "new_place")
>               {
>                       div1.style.display = 'block';
>               }
>               else
>               {
>                       div1.style.display = 'none';
>               }
>       }
> //]]


It worked (on both head and .16) - thanks

Sigurd

reply via email to

[Prev in Thread] Current Thread [Next in Thread]