[freeside-commits] freeside/httemplate/elements iframecontentmws.js, 1.3, 1.4
Ivan,,,
ivan at wavetail.420.am
Mon Mar 31 23:16:59 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv31138
Modified Files:
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.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- iframecontentmws.js 31 Mar 2008 21:52:38 -0000 1.3
+++ iframecontentmws.js 1 Apr 2008 06:16:56 -0000 1.4
@@ -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