Click to See Complete Forum and Search --> : can any one tell me whats wrong with this code


SeGamysa
03-17-2003, 10:48 AM
I've been looking at it to long and i can't figuer out why it won't work in netscape.
I think i may have screwed up on the submit.form(x) ....
I'm at my wits end here any help would be greatly appretiated.

Nicodemas
03-17-2003, 12:15 PM
Just some notes of things I wasn't familiar with, which could be your errors, but maybe IE was just correcting for you...<shrug>:

All your requests are just... requests. Since I'm not familiar with it, what is it that saying just request('something') actually requests? Does it request from the QueryString or Form, etc..?

Also, on line 570 or so, you have:


document.form1.onsubmit();

Shouldn't this be just "submit()" ??

On line 928, there is also an onSubmit="UploadFile.asp"
I've only ever seen javascripts called by onSubmit's, not files themselves.

SeGamysa
03-17-2003, 12:22 PM
All your requests are just... requests. Since I'm not familiar with it, what is it that saying just request('something') actually requests? Does it request from the QueryString or Form, etc..?
well the requests are there for when they page gets refreshed to keep the values so they don't disapear after uploading a file.

Also, on line 570 or so, you have:

document.form1.onsubmit();

Shouldn't this be just "submit()" ??

well thats the confusing part. just using a regular submit I wasn't able to gt the page to submit so i tried a onSubmit.
Then it started to submit. so I left it.


On line 928, there is also an onSubmit="UploadFile.asp"
I've only ever seen javascripts called by onSubmit's, not files themselves. [/B]

have to use that cause of the seperate forms.
hope I'm making sense here.

:(

SeGamysa
03-18-2003, 09:35 AM
Originally posted by Dave Clark
If document.form1.submit() doesn't work, then either:

your form name isn't form1, or
your form is inside another container-type object, or
you've named one of your form fields as submit, or
you are trying to use a link that is inside the form to submit the form.

Dave
Thank you very much dave I'll look in my code for these suggestions.

SeGamysa
03-20-2003, 02:07 PM
You where right dave I've mad some changes with the forms and know it's 90% working. had an extra "enctype" where it wasn't needed
thanx again
know if I can only get that 10%