Spreading the good word - Musings and ramblings from the world of technology and the web

Spry

Started by: Tim   |   Started on: 15 June 2009


Tips, tricks, tutorials and all things Spry. As I come across and solve issues during my own developing I'll try and post them here. If you ever think you have a more elegant solution don't be shy, get it posted!

Spry dataset Cache error

Quick Spry mini-tip! If you're using {useCache: false } when instantiating your dataset and it's STILL loading in the cached version, then use the following code to append a unique value to the query string. This should eliminate your caching issues.

var date = new Date();
var unique = date.valueOf();

var dsData = new Spry.Data.XMLDataSet("yourDatasource.xml
?time="+ unique, "root/ ", {useCache: false});

CommentsComments (0)


Back

Threads


Recent posts


Recent comments

  • FREDTERP: An assist from across the pond? Thank You FREDTERP ...more

  • Greg in Mason, Ohio: You've saved me! Thanks! ...more

  • Matt: Great tutorial thanks! Went through the steps one by one, an awkward problem soved! ...more

  • Dougal (BT): Do your self a favour and use Hardlight's services! I couldn't recommend Hardlight's services more. I had the pleasure  ...more