You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "F. Da Costa" <da...@xs4all.nl> on 2004/01/07 21:54:40 UTC
Onload only executed once after 1 page re-render
Hi,
This question concerns the use of .script & JS.
The basic question is whether there would be a reason for a rendered page
to *not execute the onload function it contains*?
I see this happening in the following situation:
1. base page gets loaded (initial load so *no* onload is required)
2. User clicks a (Direct)link (a row in this instance)
3. Server sets the serverparameter and continues
4. Whilst rendering the process goes into a .script that checks to see what
needs to be rendered based on the serviceparameter. The produced result is
made up of code constructing a js array.
5. After rendering the onload needs to process the js array so that the
results can be inserted in the (already present) table.
This all works fine except for 1 little thing.
I can only do it *once*, and that kind of defeats the purpose ;)
Using the Moz 1.6 JS debugger it does not even enter the onload function.
For those interested in having a look at the code I attached it.
TIA
Fermin DCG
(SOLVED) Onload only executed once after 1 page re-render
Posted by "F. Da Costa" <da...@xs4all.nl>.
F. Da Costa wrote:
> Hi,
>
> This question concerns the use of .script & JS.
>
> The basic question is whether there would be a reason for a rendered
> page to *not execute the onload function it contains*?
>
> I see this happening in the following situation:
> 1. base page gets loaded (initial load so *no* onload is required)
> 2. User clicks a (Direct)link (a row in this instance)
> 3. Server sets the serverparameter and continues
> 4. Whilst rendering the process goes into a .script that checks to see
> what needs to be rendered based on the serviceparameter. The produced
> result is made up of code constructing a js array.
> 5. After rendering the onload needs to process the js array so that the
> results can be inserted in the (already present) table.
>
> This all works fine except for 1 little thing.
> I can only do it *once*, and that kind of defeats the purpose ;)
>
> Using the Moz 1.6 JS debugger it does not even enter the onload function.
>
> For those interested in having a look at the code I attached it.
>
> TIA
> Fermin DCG
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org