From d6047391feb3236374e16fd73240d9821d77fe06 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 20 Feb 2005 08:44:40 +0000 Subject: use a javascript layer instead of a browser popup (popup blockers), really generalize the progressbar code to make it easy to use as a component --- httemplate/elements/progress-init.html | 45 ++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 httemplate/elements/progress-init.html (limited to 'httemplate/elements/progress-init.html') diff --git a/httemplate/elements/progress-init.html b/httemplate/elements/progress-init.html new file mode 100644 index 000000000..7edb831c5 --- /dev/null +++ b/httemplate/elements/progress-init.html @@ -0,0 +1,45 @@ +<% my( $formname, $fields, $action, $success_url ) = @_; %> + + + + -- cgit v1.2.1 From 4d599c8ce382f51d7bfbb4172cdc73a2c8bd400d Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 24 Feb 2005 14:24:07 +0000 Subject: add progressbar to service definition add - duplicate checking can take a while, closes: Bug#1126 --- httemplate/elements/progress-init.html | 46 ++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 16 deletions(-) (limited to 'httemplate/elements/progress-init.html') diff --git a/httemplate/elements/progress-init.html b/httemplate/elements/progress-init.html index 7edb831c5..41feaac4b 100644 --- a/httemplate/elements/progress-init.html +++ b/httemplate/elements/progress-init.html @@ -1,44 +1,58 @@ -<% my( $formname, $fields, $action, $success_url ) = @_; %> +<% + my( $formname, $fields, $action, $success_url, $key ) = @_; + $key = '' unless defined $key; +%> @@ -52,7 +60,7 @@ function <%=$key%>process () { function <%=$key%>myCallback( jobnum ) { - overlib( OLiframeContent('<%=$p%>elements/progress-popup.html?jobnum=' + jobnum + ';url=<%=$success_url%>;formname=<%=$formname%>' , 432, 136, '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%>' , 432, 136, 'progress_popup'), CAPTION, 'Please wait...', STICKY, AUTOSTATUSCAP, CLOSETEXT, '', CLOSECLICK, MIDX, 0, MIDY, 0 ); } -- cgit v1.2.1 From 2b49cbe76b94c6c1561aa2bf37beba7d47591190 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 24 Aug 2005 13:22:27 +0000 Subject: customer edit: abstract out billing info to billing.html, re-do payment type selection with HTML::Widgets::SelectLayers, add Switch/Solo/Maestro support for start date & issue #. customer view: re-order fields for consistency. selfservice API: support paystart_month, paystart_year, payissue and payip in MyAccount::process_payment and ::edit_info and Signup::new_customer, FS::cust_main::realtime_bop: support paystart_month paystart_year payissue payip fields --- httemplate/elements/progress-init.html | 1 + 1 file changed, 1 insertion(+) (limited to 'httemplate/elements/progress-init.html') diff --git a/httemplate/elements/progress-init.html b/httemplate/elements/progress-init.html index a8268c12c..472a1725f 100644 --- a/httemplate/elements/progress-init.html +++ b/httemplate/elements/progress-init.html @@ -13,6 +13,7 @@ + +<%= include('/elements/xmlhttp.html', + 'url' => $action, + 'subs' => [ 'start_job' ], + ) +%> @@ -27,6 +28,8 @@ function OLiframeContent(src, width, height, name) { function <%=$key%>process () { + //alert('<%=$key%>process for form <%=$formname%>'); + document.<%=$formname%>.submit.disabled=true; overlib( 'Submitting job to server...', WIDTH, 432, HEIGHT, 136, CAPTION, 'Please wait...', STICKY, AUTOSTATUSCAP, CLOSETEXT, '', CLOSECLICK, MIDX, 0, MIDY, 0 ); @@ -40,8 +43,10 @@ function <%=$key%>process () { ) { if ( field.type == 'select-multiple' ) { + //alert('select-multiple ' + field.name); for (var j=0; j < field.options.length; j++) { if ( field.options[j].selected ) { + //alert(field.name + ' => ' + field.options[j].value); Hash[x++] = field.name; Hash[x++] = field.options[j].value; } @@ -61,6 +66,8 @@ function <%=$key%>process () { // jsrsPOST = true; // jsrsExecute( '<%= $action %>', <%=$key%>myCallback, 'start_job', Hash ); + //alert('start_job( ' + Hash + ', <%=$key%>myCallback )' ); + //alert('start_job()' ); start_job( Hash, <%=$key%>myCallback ); } -- cgit v1.2.1