projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
27b9e55
)
append a random number to the iframe name on-the-fly to keep safari from caching...
author
ivan
<ivan>
Tue, 1 Apr 2008 06:16:56 +0000
(06:16 +0000)
committer
ivan
<ivan>
Tue, 1 Apr 2008 06:16:56 +0000
(06:16 +0000)
httemplate/elements/iframecontentmws.js
patch
|
blob
|
history
diff --git
a/httemplate/elements/iframecontentmws.js
b/httemplate/elements/iframecontentmws.js
index
cbad738
..
91dcfb8
100644
(file)
--- a/
httemplate/elements/iframecontentmws.js
+++ b/
httemplate/elements/iframecontentmws.js
@@
-18,6
+18,11
@@
be 'auto' (default if omitted), 'yes' or 'no'.
\r
*/
\r
function OLiframeContent(src, width, height, name, frameborder, scrolling) {
\r
be 'auto' (default if omitted), 'yes' or 'no'.
\r
*/
\r
function OLiframeContent(src, width, height, name, frameborder, scrolling) {
\r
+
\r
+ #stupid safari iframe location caching...
\r
+ var unique = d.getTime() + '' + Math.floor(1000 * Math.random());
\r
+ name = name + '' + unique;
\r
+
\r
return ('<iframe src="'+src+'" width="'+width+'" height="'+height+'"'
\r
+(name!=null?' name="'+name+'" id="'+name+'"':'')
\r
+(frameborder!=null?' frameborder="'+frameborder+'"':'')
\r
return ('<iframe src="'+src+'" width="'+width+'" height="'+height+'"'
\r
+(name!=null?' name="'+name+'" id="'+name+'"':'')
\r
+(frameborder!=null?' frameborder="'+frameborder+'"':'')
\r