diff options
author | ivan <ivan> | 2008-04-01 06:16:56 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-04-01 06:16:56 +0000 |
commit | aedb243bc1dae1e5f3903d47d5c2928eda1a5d45 (patch) | |
tree | 681576728da57176a97e3dfad3da7365342706a4 /httemplate | |
parent | 27b9e55c701ed2c8e6594083f06d5d4c7f3ee1cd (diff) |
append a random number to the iframe name on-the-fly to keep safari from caching it under all circumstances
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/elements/iframecontentmws.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/elements/iframecontentmws.js b/httemplate/elements/iframecontentmws.js index cbad738db..91dcfb842 100644 --- a/httemplate/elements/iframecontentmws.js +++ b/httemplate/elements/iframecontentmws.js @@ -18,6 +18,11 @@ be 'auto' (default if omitted), 'yes' or 'no'.
*/
function OLiframeContent(src, width, height, name, frameborder, scrolling) {
+
+ #stupid safari iframe location caching...
+ var unique = d.getTime() + '' + Math.floor(1000 * Math.random());
+ name = name + '' + unique;
+
return ('<iframe src="'+src+'" width="'+width+'" height="'+height+'"'
+(name!=null?' name="'+name+'" id="'+name+'"':'')
+(frameborder!=null?' frameborder="'+frameborder+'"':'')
|