summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorivan <ivan>2008-04-01 06:16:57 +0000
committerivan <ivan>2008-04-01 06:16:57 +0000
commit246797278c5e1cb0d5f0c070387455cdf135c524 (patch)
tree099382a3700e1c78e8456e544bf4fc3f68cc487e /httemplate/elements
parent4ffafb356aa3d216d501b2ab5638ef6bc6c06a39 (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/elements')
-rw-r--r--httemplate/elements/iframecontentmws.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/elements/iframecontentmws.js b/httemplate/elements/iframecontentmws.js
index cbad738..91dcfb8 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+'"':'')