Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    uploading using asp

    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");
    form.Init();

    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

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    Kentucky
    Posts
    133
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.

    Smeagol
    http://www.javascriptsolutions.com

  • #3
    New Coder
    Join Date
    Aug 2002
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this is where I got the component from

    http://www.codeproject.com/asp/aspupl.asp

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •