Could you not use a <t:outputRaw /> component and put the JS in a java string?


On 4 June 2012 00:32, Felix Gonschorek <fe...@netzgut.net> wrote:
> okay, last one ;)
>
> or you could do:
>
> if ([xhr2.readyState, xhr2.status].join(" ") == "4 200") {
>
> }
>
> (typesafe check gets lost, though...)
>
>
>
>
> Am 03.06.2012 18:25, schrieb Felix Gonschorek:
>> or nested if statements?
>>
>> if (opt1) {
>>  if (opt2) {
>>
>>  }
>> }
>> Am 03.06.2012 18:13, schrieb Felix Gonschorek:
>>>
>>> Am 03.06.2012 00:00, schrieb TG:
>>>> If I would not want to put my codes in external file, what option do I 
>>>> have?
>>>> :]
>>>
>>> what about that:
>>>
>>> function and(opt1, opt2) {
>>>  if (!opt1) return false;
>>>  if (!opt2) return false;
>>>  return true;
>>> }
>>>
>>> if (and(xhr2.readyState === 4, xhr2.status === 200)) {
>>>
>>> }
>
> --
> Netzgut Unternehmergesellschaft (haftungsbeschränkt)
>
> Kirchstr. 18
> 69115 Heidelberg
>
> Telefon:
> +49 6221 39298 51
>
> Telefax:
> +49 6221 39298 59
>
> E-Mail:
> fe...@netzgut.net
>
> Handelsregister: Amtsgericht Mannheim, HRB 709833
> Sitz der Gesellschaft: Heidelberg
> Geschäftsführer: Felix Gonschorek
> Ust-IdNr.: DE272871752
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to