CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2002
    Location
    Belgium
    Posts
    61

    Internet Explorer features

    Hi,

    I have a html running on a webserver with the following javascript included:

    <script language=javascript>
    function deleteit()
    {
    document.list.action = "delete.asp";
    document.list.submit();
    }

    function saveit()
    {
    document.list.action = "save.asp";
    document.list.submit();
    }
    </script>

    <form name="list" methode="get">
    <input type="button" value="delete it" onclick="return deleteit();">
    <input type="button" value="save it" onclick="return saveit();">
    </form>

    When I click the buttons in Netscape ... no problems. In IE, this gives problems on the submit line.

    Anyone knows why?
    Thanks!!
    S.
    Programmers song.

    100 little bugs in the code.
    100 little bugs in the code.
    Fix one bug and recompile.
    101 little bugs in the code.

    [Repeat until bugs = 0]

  2. #2
    Join Date
    Jan 2002
    Location
    Halifax, NS, Canada
    Posts
    985
    I figure that list must be your form name!?

    What version of IE are you using? I use that sort of thing all the time using IE 5.0. What errors are you getting?

  3. #3
    Join Date
    Jan 2003
    Location
    North Carolina
    Posts
    309
    I tested under IE 5.5 and 6, neither gave an issue.

    What is the full text of the error and do you have any other items or inadvertently named "list" perchance?

  4. #4
    Join Date
    Feb 2002
    Location
    Belgium
    Posts
    61

    Methode

    Thanks for the answers but I think I found the error. On my form, I have a lot of input fields. When I submit this data, when using the get methode, the url will be to long for IE. For Netscape this is apparently no problem. So I have to change my methode in order to get it running meaning I have to change my asp scrip also
    Programmers song.

    100 little bugs in the code.
    100 little bugs in the code.
    Fix one bug and recompile.
    101 little bugs in the code.

    [Repeat until bugs = 0]

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured