Click to See Complete Forum and Search --> : won't submit without an alert in netscape


SeGamysa
03-22-2003, 10:39 PM
hi sorry for bugging everyone
My problem is that when i run my code in netscape my upload file wont work without an alert box in the code has any one encountered this problem beofre or no the answer?
EDIT
this is where the problem occurs
function refreshForm1()
{

document.form1.newFRname.value = document.form2.filename.value;
document.form1.action = "firstTry.asp";
document.form1.submit();
}

when i add ana alert in that area it runs fine in netscape
is this a bug or just bad logic?
u can see the rest of the code
http://forums.webdeveloper.com/forumdisplay.php?s=&forumid=9 (here)

SeGamysa
03-24-2003, 09:17 AM
Originally posted by Dave Clark
Could be a bug. How are you calling that function? What you can try... Change this statement:

document.form1.submit();

to this:

window.setTimeout("document.form1.submit()", 100);

Dave
sorry for the late replay.
No the time out function doesn't work.
(god i wish it did
I beleive it is a bug but I can't seem to get around it.
Then again it could be the way I put in the code could be causing netscape to get confused.
the function is being called on the second form after the user decides to submit a file.

EDIT
Scratch that Dave.
You sir rock
thanks again for all your help.

SeGamysa
03-31-2003, 03:58 PM
bump
sorry dave but that code doesn't work.
I noticed that the files are not saving to the folder.
So I've manged to find out where the problem is(with some help) but I can't figure it out.
basically

<input type ="submit" value="Upload File" onsubmit ="UploadFile.asp" onClick="javascript:refreshForm1()"></td>

this line is wrong i can'thave both
onClick calling one function and then having the other onsubmit calling the second page.
well I think this is the problem.
any ideas any one on how I can have my onClick and onSubmit?

:( :( :( :( :( :(

SeGamysa
04-01-2003, 11:42 AM
well the refresh form function is supposed to
1. pass the filename to the proper text box.
2. keep the current page at firsttry.asp
3. submit the proper file to the proper folder

so basically the submit button calls the upload file opens a new window after the upload and passes the info back to the first page when the page is closed.
this is the area I am concetrating on because one of my coworkers mentioned that i can't have both submit and onclick for one buttonfor netscape.

so i want to be able do all this in one form.
if I'm making any sence to you...


:o :(

SeGamysa
04-02-2003, 08:54 AM
Originally posted by Dave Clark
So let me ask you this... Was it working the way you had it coded -- even in IE?

Dave
In IE everything works.
the file is transfered to the temp and the values r being passed correctly.

stumped

thanx for your time dave.

SeGamysa
04-07-2003, 10:23 AM
sorry dave I had some help from my team mates and it's finnally working thanx for all your help.