From fbff7663ff6fb115bcd4dae2eb991b90339bf68d Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 24 Oct 2005 11:56:35 +0000 Subject: fix rate plan editing with new xmlhttp progressbar - use POST instead of GET. also optimize SQL on rate search screen --- httemplate/elements/progress-init.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'httemplate/elements/progress-init.html') diff --git a/httemplate/elements/progress-init.html b/httemplate/elements/progress-init.html index fb408400a..7844f5678 100644 --- a/httemplate/elements/progress-init.html +++ b/httemplate/elements/progress-init.html @@ -12,8 +12,9 @@ %> <%= include('/elements/xmlhttp.html', - 'url' => $action, - 'subs' => [ 'start_job' ], + 'method' => 'POST', + '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