I have a JS file that has a function to return a node value from an XML file.
The JS file is referenced in the head section of the page and the function
is called from the page body. The JS function runs but does not return the
XML node. How do I reference the XML file?

Hope you can help



jthomerson wrote:
> 
> If you're rendering JS that shouldn't be executed until the page is
> loaded,
> call this method in your renderHead method:
> 
> http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/IHeaderResponse.html#renderOnDomReadyJavascript%28java.lang.String%29
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> On Tue, Feb 16, 2010 at 8:12 AM, exceptionist <bad.ad...@arcor.de> wrote:
> 
>>
>>
>>
>> igor.vaynberg wrote:
>> >
>> > allow your component to implement IHeaderContributor and output both
>> > your base js and string js from the renderhread() method
>> > -igor
>> >
>>
>> du u have a code-example(link oder something like that) for this way of
>> solving my prob?
>> i tried several times to do it, but i always got the same result...
>> the script, which was generated dynamically was rendered into the head
>> before the ressource-implementation, instead of behind that block of
>> code.
>> --
>> View this message in context:
>> http://old.nabble.com/wicket-and-javascript-tp27590908p27608918.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/wicket-and-javascript-tp27590908p27950990.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to