>>>>>>>>
>>>>>>>> -igor
>>>>>>>>
>>>>>>>> On Tue, Oct 28, 2008 at 10:57 AM, eyalbenamram
>>>>>>>> <[EMAIL PROTECTED]>
>>>>>>>> wrote:
>>>>>
o:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2008 2:45 PM
To: users@wicket.apache.org
Subject: Re: inserting javascript from java to html file
OK. What if I want all the JS to be inline (no .js file to be made)?
I saw that wicket created a .js file...
igor.vaynberg wrote:
>
> response.renderOnLo
gt;>>>>>StringBuffer config = new StringBuffer();
>>>>>>>>
>>>>>>>>config.append("\n");
>>>>>>>>config.append("function onLoad() { getValue();
>>>
;>>> =
>>>>>>> document.getElementById('textString').value;\n");
>>>>>>>config.append("window.location.reload(); }\n");
>>>>>>>config.append("function getValue() {\n"
config.append("window.location.reload(); }\n");
>>>>>>config.append("function getValue() {\n");
>>>>>>
>>>>>> config.append("document.getElementById('textString').value
>
('textString').value
>>>>> =
>>>>> document.getElementById('hiddenVar').value; }\n");
>>>>> config.append("\n");
>>>>>
>>>>>/*open to activate J
;>/*open to activate JS*/
>>>>add(new StringHeaderContributor(config.toString()));
>>>>
>>>>
>>>> and receive an error in log file:
>>>>
>>>> http-6789-2 ERROR html.WebPage
gt;
>>> and receive an error in log file:
>>>
>>> http-6789-2 ERROR html.WebPage -
>>> ^
>>> http-6789-2 ERROR html.WebPage - You probably forgot to add a or
>>> tag to your mark
javascript code
>> actually appears in the rendered page (when I look at the source of the
>> page).
>>
>> any idea?
>>
>> Thanks,Eyal.
>> --
>> View this message in context:
>> http://www.nabble.com/inserting-javascript-from-java-to-html-file-tp20212650p20212650.html
&g
tag to your markup since no Header Container was
>> found but components where found which want to write to the
>> section.
>>
>> function removeBlur(checked) {
>> if(checked) {
>> document.getElementById('login_button').disabled = false;
>> } el
) {
>> document.getElementById('login_button').disabled = false;
>> } else {
>> document.getElementById('login_button').disabled = true;
>> } }
>>
>>
>> although my html file contains a tag, and the javascript code
>> actually appears in
t; document.getElementById('login_button').disabled = true;
> } }
>
>
> although my html file contains a tag, and the javascript code
> actually appears in the rendered page (when I look at the source of the
> page).
>
> any idea?
>
> Thanks,Eyal.
>
;login_button').disabled = true;
} }
although my html file contains a tag, and the javascript code
actually appears in the rendered page (when I look at the source of the
page).
any idea?
Thanks,Eyal.
--
View this message in con
13 matches
Mail list logo