On 09.Jan.2003 -- 05:10 PM, Cocoon User wrote:
> 
> can someone explain me how is it possible this code to be  valid without
> syntax errors?
> 
> how can we have a markup language elemend [<esql:any/>] inside a
> javascript function (){   }

Remember that the esql tags are already processed on the server and
produce the final javascript that is send to the client...

Thus

> > <script type="text/javascript" language="JavaScript">
> > function example() {
> >     i=0;

multiple lines of this (of course with the query results!)

> >     document.getElementById("SERVICE_ID").options[i++] = 
> >                 new Option("<esql:get-string 
>column="description"/>","<esql:get-string column="service_id"/>");

or this one

> >     document.getElementById("SERVICE_ID").options[i++] = new Option("","");

> >
> >                         service_dropdown_change();
> >                   }
> >
> > </script>

        Chris.
-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to