Re: [Wicket-user] IMG reload via AJAX

2006-04-12 Thread Timo Stamm
Yes, but what if the clock fails? :) Johan Compagner schrieb: my god! how brilliant! Igor++! On 4/12/06, Timo Stamm <[EMAIL PROTECTED]> wrote: Igor Vaynberg schrieb: you are absolutely right, how foolish of me. a better way of course would be url=url+"&rand="+UUID.random().toString() but

Re: [Wicket-user] IMG reload via AJAX

2006-04-12 Thread Johan Compagner
my god! how brilliant!Igor++!On 4/12/06, Timo Stamm <[EMAIL PROTECTED]> wrote: Igor Vaynberg schrieb:> you are absolutely right, how foolish of me.>> a better way of course would be>> url="">>> but wait...even with that there is a chance of collission...hmmm >> how about you have a static BigIntege

Re: [Wicket-user] IMG reload via AJAX

2006-04-12 Thread Timo Stamm
Igor Vaynberg schrieb: you are absolutely right, how foolish of me. a better way of course would be url=url+"&rand="+UUID.random().toString() but wait...even with that there is a chance of collission...hmmm how about you have a static BigInteger in your resource, and use that as a sequence to

Re: [Wicket-user] IMG reload via AJAX

2006-04-07 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 so... NSUUID? Igor Vaynberg wrote: > no, not unique, but pretty darn close. > > -Igor > > > On 4/7/06, *Eelco Hillenius* <[EMAIL PROTECTED] > > wrote: > > > > > url=url+"&rand="+UUID.random().toString() >

Re: [Wicket-user] IMG reload via AJAX

2006-04-07 Thread Igor Vaynberg
and in case someone takes this suggestion seriously - dont. johan is just being sarcastic...or at least i really really hope he is :)-IgorOn 4/7/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >> url="">>> but wait...even with that there is a chance of collission...hmmm>Is there? Isn't UUID suppose

Re: [Wicket-user] IMG reload via AJAX

2006-04-07 Thread Igor Vaynberg
no, not unique, but pretty darn close.-IgorOn 4/7/06, Eelco Hillenius <[EMAIL PROTECTED] > wrote:>> url=""> >> but wait...even with that there is a chance of collission...hmmm>Is there? Isn't UUID supposed to be unique in space and time?Eelco--- T

Re: [Wicket-user] IMG reload via AJAX

2006-04-07 Thread Eelco Hillenius
> > url=url+"&rand="+UUID.random().toString() > > but wait...even with that there is a chance of collission...hmmm > Is there? Isn't UUID supposed to be unique in space and time? Eelco --- This SF.Net email is sponsored by xPML, a groundbreaki

Re: [Wicket-user] IMG reload via AJAX

2006-04-07 Thread Igor Vaynberg
you are absolutely right, how foolish of me.a better way of course would be url="">but wait...even with that there is a chance of collission...hmmm how about you have a static BigInteger in your resource, and use that as a sequence to generate unique ids to append to the url!-IgorOn 4/7/06, Johan

Re: [Wicket-user] IMG reload via AJAX

2006-04-07 Thread Johan Compagner
On 4/7/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: usually i call urlfor(resourcereference), get the url, append "&rand="+Math.random() and use an attributemodifier or oncomponenttag() to set the src attr of an img tag. Did you calculate the chance you have with Math.random() how many times it cou

Re: [Wicket-user] IMG reload via AJAX

2006-04-07 Thread Igor Vaynberg
ailto:[EMAIL PROTECTED]] On Behalf Of Igor Vaynberg Sent: Friday, April 07, 2006 3:29 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] IMG reload via AJAX   there are a couple of ways: one) add anti caching headers to your resource two) append a random number to the resource

RE: [Wicket-user] IMG reload via AJAX

2006-04-07 Thread Jerry Smith
ilto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Friday, April 07, 2006 3:29 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] IMG reload via AJAX   there are a couple of ways: one) add anti caching headers to your resource two) append a random number to the resource url -

Re: [Wicket-user] IMG reload via AJAX

2006-04-07 Thread Igor Vaynberg
there are a couple of ways:one) add anti caching headers to your resourcetwo) append a random number to the resource url-IgorOn 4/7/06, Jerry Smith <[EMAIL PROTECTED]> wrote: Hi all, I'm trying to get an Image to reload via AJAX.  Basically I've got some thumbnails when the user cl

[Wicket-user] IMG reload via AJAX

2006-04-07 Thread Jerry Smith
Hi all, I’m trying to get an Image to reload via AJAX.  Basically I’ve got some thumbnails when the user clicks on them I want to display the full version.  The model is changing, but the screen isn’t refreshing quite right.  The AJAX response comes back but the graphic doesn’t update unles