[freeside-commits] freeside/httemplate/elements iframecontentmws.js, 1.2.2.1, 1.2.2.2
Ivan,,,
ivan at wavetail.420.am
Mon Mar 31 23:17:00 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv31143
Modified Files:
Tag: FREESIDE_1_7_BRANCH
iframecontentmws.js
Log Message:
append a random number to the iframe name on-the-fly to keep safari from caching it under all circumstances
Index: iframecontentmws.js
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/iframecontentmws.js,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -d -r1.2.2.1 -r1.2.2.2
--- iframecontentmws.js 31 Mar 2008 21:52:39 -0000 1.2.2.1
+++ iframecontentmws.js 1 Apr 2008 06:16:57 -0000 1.2.2.2
@@ -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+'"':'')
More information about the freeside-commits
mailing list