Hi,
  I'm not sure if this belongs to JavaScript or PHP section.  I'm
running into problems when I'm trying to use php templates with embeded
JavaScript.
  In my template file, I have something like...

<script language="JavaScript">
....

function Show()
{
  if(layer) {
   if(timer) {
     clearTimeout(timer);
   }
   for(menu=0; menu<Layer.length; menu++) {
      if(Layer[menu]) {
        eval(layer).visibility = "hidden";
      }
   }
    for(i=0; i<arguments.length; i++) {
     menu=arguments[i];
    eval(layer).visibility = "visible";
    }
  }
}
....
</script>

  When I instantiate the template in my PHP file and do a view source, I
get this instead:

<script language="JavaScript">
....

function Show()

   for(menu=0; menu<Layer.length; menu++)
   }
    for(i=0; i<arguments.length; i++)
  }
}
....
</script>


As you can see, the all the 'if' statements are missing?  Why is that?

Thanks,
-Peter




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to