Re: T5: How to periodically update a zone?

2010-02-02 Thread Thiago H. de Paula Figueiredo
On Tue, 02 Feb 2010 15:17:32 -0200, matias.blasi   
wrote:



Thank you Thiago!


You're welcom!


I'm sorry because I was looking for this problem in the mail list with no
success...


http://old.nabble.com/forum/Search.jtp?forum=302&local=y&query=javascript+update+zone


Could you paste the blog written by Inge Solvoll?


Ooops, I forgot to paste the link:  
http://tinybits.blogspot.com/2009/10/missing-javascript.html.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

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



Re: T5: How to periodically update a zone?

2010-02-02 Thread matias.blasi

Thank you Thiago!

I'm sorry because I was looking for this problem in the mail list with no
success...
Could you paste the blog written by Inge Solvoll?

Regards, 
Matías.


Thiago H. de Paula Figueiredo wrote:
> 
> On Tue, 02 Feb 2010 14:18:03 -0200, matias.blasi   
> wrote:
> 
>> Hi all,
> 
> Hi!
> 
>> I'm trying to find the best way to do it.
>> I can put an invisible actionlink with the zone parameter set, and with a
>> little javascript timer fire a click event on that link. But it is no  
>> very clean, and the mouse event fire should be cross-browser...
> 
> There are a lot of messages regarding this in the mailing list archives.
> This blog, written by Inge Solvoll, provides some JavaScript code that can  
> be used to trigger an AJAX form submit the right way.
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
> and instructor
> Owner, software architect and developer, Ars Machina Tecnologia da  
> Informação Ltda.
> http://www.arsmachina.com.br
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/T5%3A-How-to-periodically-update-a-zone--tp27423077p27424058.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T5: How to periodically update a zone?

2010-02-02 Thread matias.blasi

Thank you Benny!

I will use that!

Regards,
Matías.


Benny Law wrote:
> 
> Hi Matias,
> 
> I would use the same approach, except I would use a JavaScript function
> similar to this one to update the zone instead of firing a click event on
> the link:
> 
> function updateZoneFromActionLink( actionLinkId ) {
> var actionLink = $(actionLinkId);
> Tapestry.findZoneManager( actionLink ).updateFromURL( actionLink.href
> );
> }
> 
> Regards,
> Benny
> 
> On Tue, Feb 2, 2010 at 11:18 AM, matias.blasi
> wrote:
> 
>>
>> Hi all,
>>
>> I'm trying to find the best way to do it.
>> I can put an invisible actionlink with the zone parameter set, and with a
>> little javascript timer fire a click event on that link. But it is no
>> very
>> clean, and the mouse event fire should be cross-browser...
>>
>> Have anyone a better solution?
>>
>> Regards,
>> Matías.
>> --
>> View this message in context:
>> http://old.nabble.com/T5%3A-How-to-periodically-update-a-zone--tp27423077p27423077.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/T5%3A-How-to-periodically-update-a-zone--tp27423077p27423820.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T5: How to periodically update a zone?

2010-02-02 Thread Thiago H. de Paula Figueiredo
On Tue, 02 Feb 2010 14:18:03 -0200, matias.blasi   
wrote:



Hi all,


Hi!


I'm trying to find the best way to do it.
I can put an invisible actionlink with the zone parameter set, and with a
little javascript timer fire a click event on that link. But it is no  
very clean, and the mouse event fire should be cross-browser...


There are a lot of messages regarding this in the mailing list archives.
This blog, written by Inge Solvoll, provides some JavaScript code that can  
be used to trigger an AJAX form submit the right way.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

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



Re: T5: How to periodically update a zone?

2010-02-02 Thread Benny Law
Hi Matias,

I would use the same approach, except I would use a JavaScript function
similar to this one to update the zone instead of firing a click event on
the link:

function updateZoneFromActionLink( actionLinkId ) {
var actionLink = $(actionLinkId);
Tapestry.findZoneManager( actionLink ).updateFromURL( actionLink.href );
}

Regards,
Benny

On Tue, Feb 2, 2010 at 11:18 AM, matias.blasi wrote:

>
> Hi all,
>
> I'm trying to find the best way to do it.
> I can put an invisible actionlink with the zone parameter set, and with a
> little javascript timer fire a click event on that link. But it is no very
> clean, and the mouse event fire should be cross-browser...
>
> Have anyone a better solution?
>
> Regards,
> Matías.
> --
> View this message in context:
> http://old.nabble.com/T5%3A-How-to-periodically-update-a-zone--tp27423077p27423077.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


T5: How to periodically update a zone?

2010-02-02 Thread matias.blasi

Hi all,

I'm trying to find the best way to do it.
I can put an invisible actionlink with the zone parameter set, and with a
little javascript timer fire a click event on that link. But it is no very
clean, and the mouse event fire should be cross-browser...

Have anyone a better solution?

Regards,
Matías.
-- 
View this message in context: 
http://old.nabble.com/T5%3A-How-to-periodically-update-a-zone--tp27423077p27423077.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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