[freeside-commits] freeside/httemplate/elements progress-init.html, 1.12, 1.13
Ivan,,,
ivan at wavetail.420.am
Mon Mar 31 16:19:27 PDT 2008
- Previous message: [freeside-commits] freeside/httemplate/elements popup_link-cust_main.html, 1.1.2.2, 1.1.2.3 popup_link-cust_pkg.html, 1.1.2.2, 1.1.2.3 popup_link-cust_svc.html, 1.1.2.2, 1.1.2.3 popup_link.html, 1.1.2.3, 1.1.2.4 popup_link_onclick.html, 1.1.2.3, 1.1.2.4
- Next message: [freeside-commits] freeside/httemplate/elements progress-init.html, 1.12, 1.12.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv17128
Modified Files:
progress-init.html
Log Message:
overlib include
Index: progress-init.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/progress-init.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- progress-init.html 22 Jan 2007 11:36:40 -0000 1.12
+++ progress-init.html 31 Mar 2008 23:19:22 -0000 1.13
@@ -1,17 +1,3 @@
-%
-% my( $formname, $fields, $action, $url_or_message, $key ) = @_;
-% $key = '' unless defined $key;
-%
-% my $url_or_message_link;
-% if ( ref($url_or_message) ) { #its a message or something
-% $url_or_message_link =
-% 'message='. uri_escape( $url_or_message->{'message'} )
-% } else {
-% $url_or_message_link = "url=$url_or_message";
-% }
-%
-
-
<% include('/elements/xmlhttp.html',
'method' => 'POST',
'url' => $action,
@@ -19,14 +5,10 @@
'key' => $key,
)
%>
-<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/overlibmws.js"></SCRIPT>
-<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/overlibmws_iframe.js"></SCRIPT>
+
+<% include('/elements/init_overlib.html') %>
+
<SCRIPT TYPE="text/javascript">
-function OLiframeContent(src, width, height, name) {
- return ('<iframe src="'+src+'" width="'+width+'" height="'+height+'"'
- +(name?' name="'+name+'" id="'+name+'"':'')+' scrolling="auto">'
- +'<div>[iframe not supported]</div></iframe>');
-}
function <%$key%>process () {
@@ -78,8 +60,27 @@
function <%$key%>myCallback( jobnum ) {
- overlib( OLiframeContent('<%$p%>elements/progress-popup.html?jobnum=' + jobnum + ';<%$url_or_message_link%>;formname=<%$formname%>' , 444, 168, 'progress_popup'), CAPTION, 'Please wait...', STICKY, AUTOSTATUSCAP, CLOSETEXT, '', CLOSECLICK, MIDX, 0, MIDY, 0 );
+ overlib( OLiframeContent('<%$p%>elements/progress-popup.html?jobnum=' + jobnum + ';<%$url_or_message_link%>;formname=<%$formname%>' , 444, 168, '<% $popup_name %>'), CAPTION, 'Please wait...', STICKY, AUTOSTATUSCAP, CLOSETEXT, '', CLOSECLICK, MIDX, 0, MIDY, 0 );
}
</SCRIPT>
+
+<%init>
+
+my( $formname, $fields, $action, $url_or_message, $key ) = @_;
+$key = '' unless defined $key;
+
+my $url_or_message_link;
+if ( ref($url_or_message) ) { #its a message or something
+ $url_or_message_link =
+ 'message='. uri_escape( $url_or_message->{'message'} )
+} else {
+ $url_or_message_link = "url=$url_or_message";
+}
+
+#stupid safari is caching the "location" of popup iframs, and submitting them
+#instead of displaying them. this should prevent that.
+my $popup_name = 'popup-'.time. "-$$-". rand() * 2**32;
+
+</%init>
- Previous message: [freeside-commits] freeside/httemplate/elements popup_link-cust_main.html, 1.1.2.2, 1.1.2.3 popup_link-cust_pkg.html, 1.1.2.2, 1.1.2.3 popup_link-cust_svc.html, 1.1.2.2, 1.1.2.3 popup_link.html, 1.1.2.3, 1.1.2.4 popup_link_onclick.html, 1.1.2.3, 1.1.2.4
- Next message: [freeside-commits] freeside/httemplate/elements progress-init.html, 1.12, 1.12.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list