Loading ...
Sorry, an error occurred while loading the content.

Re: Cannot get setForm() to work in Connection Manager

Expand Messages
  • than505
    Thank you, that worked.
    Message 1 of 3 , Apr 30, 2006
    • 0 Attachment
      Thank you, that worked.

      --- In ydn-javascript@yahoogroups.com, Ron Lancaster <doc@...> wrote:
      >
      > It looks like you're passing a form rather than the form's name. Try
      > YAHOO.util.Connect.setForm(oForm.name);
      >
      > On Apr 30, 2006, at 12:52 PM, than505 wrote:
      >
      > > Hi,
      > > My first (simple) attempt at using connection manager worked, so I
      > > know all urls etc are correct. However, when I tried to use the
      > > setForm() method my program would not work. It is just a simplificaion
      > > of some stuff from this forum and the Yahoo example. Here it is:
      >
      > <snip>
      > >
      > > <script type="text/javascript">
      > > <!--
      > > function sendRequest() {
      > > var callback = {
      > > success: submit_success,
      > > failure: null,
      > > argument: null
      > > }
      > >
      > > var oForm = document.getElementById('testform');
      > > YAHOO.util.Connect.setForm(oForm);
      > > YAHOO.util.Connect.asyncRequest('POST', 'form_example.php',
      > > callback, null);
      > > }
      > >
      > <snip>
      > > Does anyone see anything wrong with this? When I click the button,
      > > nothing happens.
      > >
      > > Thanks.
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.