LdWidgetUid appendNoCache

From WidgetAvenue Wiki

Jump to: navigation, search

Contents

Why use this function?

Certain platforms cache ajax calls, which is sometimes undesirable. This functions prevents this behavior

Summary

This functions appends a _nocache_ arg to a url .

Syntax

ldWidgetUid_appendNoCache(url)

where

  • url is a string representing a url

Example

var nUrl = ldWidgetUid_appendNoCache('http://example.com/ajax.php?a=b')
ldWidgetUid_ajaxCall (nUrl,'ldWidgetContent','ldWidgetUid_wait','ldWidgetUid_ajaxCallback');
Personal tools