View Full Version : uploading using asp

08-23-2002, 12:27 AM
I use JavaScript as the server side language and ive found a script a that will upload files and it works perfectly when itís run on its demo page(that the zip comes with), but when I modified the script to fit my page it doesnít work.
I know why the script doesnít work, itís because it uses this code

var form = Server.CreateObject("MyRequest.Form");

ive already got a form on the same page which im trying to post the data to that I canít remove. The other form on the page is part of the user login which is in the side navigation bar on every page. When I try and run the page I get this error

Error Type:
Form.Init() (0x80040200)
Input type was not expected

Im almost positive that the reason for the error is because when it does the form.Init it gets fields its not expecting which are the user name and password field.

Is there anyway I can change this line

var form = Server.CreateObject("MyRequest.Form");

so it only makes an object out of the form I want it to ? ive tried a few things but havenít had any luck.

PLEASE help me someone :)

08-25-2002, 05:01 PM
Could you provide a link to the website where you got component you are using? I'd be willing to take a look at it, but I need to know a little more about the component itself. I'll download it myself and check the methods and properties in VB6 if possible and see what it's looking for in the Init() method.


08-26-2002, 11:33 PM
this is where I got the component from


I had a look at the dll but I havnt got a clue really I would really appreciate any help! :)