You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Bas Vroling <bv...@cmbi.ru.nl> on 2009/07/03 16:09:47 UTC

inserting variable in script

I have this piece of html:

<script type="text/javascript">
set_query('ADRB2_HUMAN', 'BioSapiens', 3, ''); start_dasty(0);
</script>

how would I change 'ADRB2_HUMAN' into some other name? I can't just  
use a label right?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: inserting variable in script

Posted by Igor Vaynberg <ig...@gmail.com>.
no, header contributor outputs things into head, which is where all
<script> tags should go. it does support outputting script into body
onload event, so if you need to have this run later you can use that.

-igor

On Fri, Jul 3, 2009 at 8:48 AM, Bas Vroling<bv...@cmbi.ru.nl> wrote:
> Does this also work when this should be somewhere down in the body?
>
> On Jul 3, 2009, at 17:43 , Igor Vaynberg wrote:
>
>> use iheadercontributor to write out the whole thing
>>
>> -igor
>>
>> On Fri, Jul 3, 2009 at 7:09 AM, Bas Vroling<bv...@cmbi.ru.nl> wrote:
>>>
>>> I have this piece of html:
>>>
>>> <script type="text/javascript">
>>> set_query('ADRB2_HUMAN', 'BioSapiens', 3, ''); start_dasty(0);
>>> </script>
>>>
>>> how would I change 'ADRB2_HUMAN' into some other name? I can't just use a
>>> label right?
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: inserting variable in script

Posted by Bas Vroling <bv...@cmbi.ru.nl>.
Does this also work when this should be somewhere down in the body?

On Jul 3, 2009, at 17:43 , Igor Vaynberg wrote:

> use iheadercontributor to write out the whole thing
>
> -igor
>
> On Fri, Jul 3, 2009 at 7:09 AM, Bas Vroling<bv...@cmbi.ru.nl>  
> wrote:
>> I have this piece of html:
>>
>> <script type="text/javascript">
>> set_query('ADRB2_HUMAN', 'BioSapiens', 3, ''); start_dasty(0);
>> </script>
>>
>> how would I change 'ADRB2_HUMAN' into some other name? I can't just  
>> use a
>> label right?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: inserting variable in script

Posted by Igor Vaynberg <ig...@gmail.com>.
use iheadercontributor to write out the whole thing

-igor

On Fri, Jul 3, 2009 at 7:09 AM, Bas Vroling<bv...@cmbi.ru.nl> wrote:
> I have this piece of html:
>
> <script type="text/javascript">
> set_query('ADRB2_HUMAN', 'BioSapiens', 3, ''); start_dasty(0);
> </script>
>
> how would I change 'ADRB2_HUMAN' into some other name? I can't just use a
> label right?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org