Hi Ron,
 
Yes I do have a 'loginForm', and a 'username' form element. The javascript 
error I get is "'Tapestry' is undefined" and when I look at the generated HTML 
I confirmed that it was not defined anywhere (the only references to 'Tapestry' 
object was in the generated function I had pasted earlier). 
 
Thanks,
Amir

Ron Piterman <[EMAIL PROTECTED]> wrote:
This is the standard tapestry form javascript contribution. You surely 
have a form on your page (called "loginForm" :) )
Its strange that it generates a JS error - are you sure it this code? do 
you overwrite the Tapestry object in your generated JS?
Cheers,
ROn

ציטוט [EMAIL PROTECTED]:
> Hi,
> 
> 
> 
> I am including a 'Script' component in my page which renders fine (my 
> function gets created 
> 
> as planned). However, at the bottom of the HTML, the following gets generated:
> 
> 
> 
>> 
>     setFocus(); // this is fine, the function I defined in my script file
> 
>     
> 
>     Tapestry.register_form('loginForm'); 
> 
>     Tapestry.set_focus('username');
> 
> // --> 
> 
> 
> 
> The generated page knows nothing about a 'Tapestry' object so this creates a 
> javascript
> 
> error. I am not sure what or why this occurs.
> 
> 
> 
> Thanks,
> 
> Amir
> 
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to