exactly.

It was my second "thing-to-fix-on-IE-tonight" and I get the answer
straight from th TG mailing list ho! sweet feeling! :)

Yes you just have to add a new paramter to your query of the form
tg_random=1234xxx where 1234xxx is a random string.

This way IE will cache the query for this URL only and since the next
click will be on another URL the cache won't be used.

Since your addProduct() function is javascript you need to do something like:

var q_string = "/somewhere?value=XX&tg_random=" + Math.random()

to make sure your URL is random and IE won't use its cache next time
you click instead of doing the connection again.

Cheers,

Florent.

On 12/19/06, iain duncan <[EMAIL PROTECTED]> wrote:
>
> On Mon, 2006-18-12 at 21:27 -0200, Jorge Godoy wrote:
> > iain duncan <[EMAIL PROTECTED]> writes:
> >
> > > Thanks alberto, I'm not quite clear on what you are doing there. Is that
> > > a second bogus request or a hash added to my main one? Do I just make a
> > > bogus request behind the scenes before every real request and let it get
> > > ignored?
> >
> > You have to pass the tg_random on the request.  Every request is 
> > individually
> > cached, so doing a bogus request before the real one wouldn't solve your
> > problem.
>
> Maybe I'm stupid today, but I don't understand how this is done from
> Alberto's example. Do I need to make a random extra paramater and add it
> to my query string? And does that need to be added to the controller
> paramater list as well then?
>
> If someone has the time to type out the an example that would be
> awesome.
>
> Thanks
> Iain
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to