iain duncan <[EMAIL PROTECTED]> writes:
> 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
His example was very short :-) It was written in the comments what should be
done.
> to my query string? And does that need to be added to the controller
You need to add the timestamp to your query string.
> paramater list as well then?
Nope. tg_random will be filtered out for you.
> If someone has the time to type out the an example that would be
> awesome.
A "bigger" example:
================================================================================
// Avoid caching on IE...
function timestamp() {
return new Date().getTime();
}
function getEstados(_pais, destino, destino_id) {
show_message('Carregando dados...');
if (_pais.value) {
var pais = _pais.value;
var d = loadJSONDoc('/enderecos/estados/json_estados/?pais=' + escape(pais)
+
'&tg_random='+timestamp());
d.addCallback(monta_select_estados, destino, destino_id);
d.addErrback(metadataFetchFailed);
} else {
callLater(1, getEstados, _pais, destino, destino_id);
}
};
================================================================================
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---