Tapestry 5
  1. Tapestry 5
  2. TAP5-1328

Tapestry.ajaxRequest() fails when just parameters are provided, but not an onSuccess handler function

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.2
    • Fix Version/s: 5.2.3
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      So... Tapestry.ajaxRequest(url, { parameters:

      { "foo" : "bar" }

      }) should work, and just ignore the value from the server. Instead, it fails on the client with an exception about "successHandler is not defined."

        Activity

        Howard M. Lewis Ship created issue -
        Hide
        Howard M. Lewis Ship added a comment -

        Workaround:

        Tapestry.ajaxRequest(url, { parameters:

        { "foo" : "bar" }

        , onSuccess: function() { } });

        Show
        Howard M. Lewis Ship added a comment - Workaround: Tapestry.ajaxRequest(url, { parameters: { "foo" : "bar" } , onSuccess: function() { } });
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 5.2.3 [ 12315474 ]
        Resolution Fixed [ 1 ]
        Hide
        Hudson added a comment -

        Integrated in tapestry-5.2-freestyle #225 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/225/)

        Show
        Hudson added a comment - Integrated in tapestry-5.2-freestyle #225 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/225/ )
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        4h 53m 1 Howard M. Lewis Ship 27/Oct/10 23:08

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development