calling doPostBack not working

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default calling doPostBack not working

    This bug has my application crippled in I.E. 5.0.

    I'm calling the __doPostBack Fuction from my custom javascript function
    Submit(pict)
    It never reaches it in i.e. 5.0
    I'm using 1.1 framework. It works fine in i.e. 5.5 and 6.0 but not i.e. 5.0

    You can see an example of the problem at
    [url]http://www.ineedatour.com/smalltour.aspx?ID=2[/url]
    using I.E. 5.0 The pictures will not change.

    I'm pretty sure the problem that my custom SubmitPict(pict) function cannot
    call __doPostBack('ChangePict',''). It works in the other browsers fine.

    <SCRIPT language="javascript">
    function SubmitPict(pict)
    {
    if((pict) && (pict != "")){
    document.forms['images'].elements['PictNum'].value = pict;
    __doPostBack('ChangePict','');// THIS CODE WILL NOT CALL THE __doPostBack
    Function
    }
    }
    </SCRIPT>

    //This is the generated __doPostBackFunct
    <script language="javascript">
    <!--
    function __doPostBack(eventTarget, eventArgument) {
    var theform;
    if (window.navigator.appName.toLowerCase().indexOf("n etscape") > -1) {
    theform = document.forms["images"];
    }
    else {
    theform = document.images;
    }
    theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
    theform.__EVENTARGUMENT.value = eventArgument;
    theform.submit();
    }
    // -->
    </script>


    Timothy Kelley Guest

  2. Similar Questions and Discussions

    1. #38816 [Opn]: PHP code that was working perfectly recently stopped working.
      ID: 38816 User updated by: mtoohee at gmail dot com -Summary: PHP code that was working perfectly recently stopped....
    2. Macromedia Flash Player installed and working properly suddenlys stops working..
      No idea what has caused the Flash player to stop working. This is not my machine but a relatives who has asked for help over the T'giving...
    3. calling Javascript: location.replace('url') inside Flash not working..
      Hello, I'm trying to call a Javascript statement via Flash but it will not work the way it normally does when I call it in plain HTML. I'm...
    4. Conditional doPostBack on Datagrid
      I have a ButtonColumn on my datagrid that I would like to post back conditionally. What I would like to see is a JavaScript confirm message that...
    5. doPostBack client-side function
      Whenever you drop a linkbutton on an ASP.NET web form, the following script gets emitted: function __doPostBack(eventTarget, eventArgument) {...
  3. #2

    Default Re: calling doPostBack not working

    ASP.NET is not fully compatible with 5.0 and some of MS documents recommends
    running 5.1 or higher. For my client, I recommend 5.5

    fadi

    "Timothy Kelley" <timdona_remove_this_@mindspring.com> wrote in message
    news:epTJMHSTDHA.632@TK2MSFTNGP12.phx.gbl...
    > This bug has my application crippled in I.E. 5.0.
    >
    > I'm calling the __doPostBack Fuction from my custom javascript function
    > Submit(pict)
    > It never reaches it in i.e. 5.0
    > I'm using 1.1 framework. It works fine in i.e. 5.5 and 6.0 but not i.e.
    5.0
    >
    > You can see an example of the problem at
    > [url]http://www.ineedatour.com/smalltour.aspx?ID=2[/url]
    > using I.E. 5.0 The pictures will not change.
    >
    > I'm pretty sure the problem that my custom SubmitPict(pict) function
    cannot
    > call __doPostBack('ChangePict',''). It works in the other browsers fine.
    >
    > <SCRIPT language="javascript">
    > function SubmitPict(pict)
    > {
    > if((pict) && (pict != "")){
    > document.forms['images'].elements['PictNum'].value = pict;
    > __doPostBack('ChangePict','');// THIS CODE WILL NOT CALL THE __doPostBack
    > Function
    > }
    > }
    > </SCRIPT>
    >
    > //This is the generated __doPostBackFunct
    > <script language="javascript">
    > <!--
    > function __doPostBack(eventTarget, eventArgument) {
    > var theform;
    > if (window.navigator.appName.toLowerCase().indexOf("n etscape") > -1) {
    > theform = document.forms["images"];
    > }
    > else {
    > theform = document.images;
    > }
    > theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
    > theform.__EVENTARGUMENT.value = eventArgument;
    > theform.submit();
    > }
    > // -->
    > </script>
    >
    >

    fadi Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139