Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > how to change the document behaviour when submit the form in html.

Reply
Thread Tools

how to change the document behaviour when submit the form in html.

 
 
RK
Guest
Posts: n/a
 
      08-10-2004
I have html page with EXIT/UPLOAD button. I just want to display
progress bar and also cursor wait mode before executing the code
inside the form_submit function.

code snippet..

function form1_onsubmit(form)
{
//code display the progress bar, set the cursor to wait and
//disable the form.
divProgress.style.display = "block";
document.body.style.cursor = "wait";
frmDoc.disabled = true;

//code that performs the upload part.
var xmldoc = xxx.somefunction();
var errstr = xxx.anotherFunction();
window.open("../abc.htm", "abc");
}

but problem here, it is displaying the progress bar, cursor mode
change only after executing the later part of the code. Is there
anyway around.

thanx in advance.
RK
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
submit 1 form to 2 servers or 2 forms to 2 server (1 form each) on 1 submit abansal.itp@gmail.com Javascript 3 06-23-2007 07:29 AM
document.form.submit() doesn't work for large form fields alan_atwood Javascript 2 03-02-2006 04:25 PM
How to programatically submit a form that uses document.forms[0].submit() Harry Ruby 3 01-12-2006 06:05 AM
how to change the document behaviour when submit the form in html. RK HTML 0 08-10-2004 06:26 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57