Spry 1.4: Spry.utils.updateContent

Another cool new feature of Spry 1.4, and I don’t even have to write a blog entry on it. Bruce Phillips has a blog entry and demo showing off this new feature. At a basic level it gives you a super simple function to change the content of a element with another URL. So an example, if foo was an element, this would replace it with another URL:

Spry.Utils.updateContent('foo', 'mynewdata.cfm');

You can even fire off a function automatically when the data is downloading.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate looking for his next gig. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support.

Lafayette, LA https://www.raymondcamden.com

Comments