moraes
21 Dec 2006, 2:48 PM
um.update({
url: 'your-url.php',
params: {param1: 'foo', param2: 'bar'}, // or a URL encoded string
callback: yourFunction,
scope: yourObject, //(optional scope)
discardUrl: false,
nocache: false,
text: 'Loading...',
timeout: 30,
scripts: false
});
The 'scripts' param is not very clearly documented. Should it be an array? Should the locations be absolute or relative to something?
Also, if I load a test script with just "alert('Hello');" should the alert appear after the update is complete?
url: 'your-url.php',
params: {param1: 'foo', param2: 'bar'}, // or a URL encoded string
callback: yourFunction,
scope: yourObject, //(optional scope)
discardUrl: false,
nocache: false,
text: 'Loading...',
timeout: 30,
scripts: false
});
The 'scripts' param is not very clearly documented. Should it be an array? Should the locations be absolute or relative to something?
Also, if I load a test script with just "alert('Hello');" should the alert appear after the update is complete?