You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tomić Mirko <mi...@gmail.com> on 2007/03/22 20:59:18 UTC

.script unique function names

I have function in my .script file whose name is set unique with let:
<let key="insertRow" unique="yes">insertRow</let>

Now I need to insert that unique function name in html file. How to that?


I inserted script component in jwc:
	<component id="tableScript" type="Script">
	<binding name="script" value="literal:Table.script"/>

and inserted tableScript in html.


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


Re: .script unique function names

Posted by Jesse Kuhnert <jk...@gmail.com>.
You have to reference it in your .script file somewhere in the content
area right?

like:

${insertRow}  = function() {
//even though you can't actually insert a row ....ie won't let you
document.getElementById("someid").appendNode(document.createTextNode("blah"));

}

On 3/22/07, Tomić Mirko <mi...@gmail.com> wrote:
> I have function in my .script file whose name is set unique with let:
> <let key="insertRow" unique="yes">insertRow</let>
>
> Now I need to insert that unique function name in html file. How to that?
>
>
> I inserted script component in jwc:
>         <component id="tableScript" type="Script">
>         <binding name="script" value="literal:Table.script"/>
>
> and inserted tableScript in html.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com