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

Res: [JavaScript] ajax callback

Expand Messages
  • Wagner Bianchi
    Dear friens, I have one question with AJAX use...i need the ajax when i click over a link. When the user click over the link, i want insert in a table database
    Message 1 of 1 , Apr 30, 2007
      Dear friens,

      I have one question with AJAX use...i need the ajax when i click over a link.
      When the user click over the link, i want insert in a table database on register.

      Maybe to b simple, but, i'm a dummy with Ajax.

      Somebody Help me?

      Thk's.

      ----- Mensagem original ----
      De: dwi kristianto <infos@...>
      Para: javascript_official@yahoogroups.com
      Enviadas: Domingo, 8 de Abril de 2007 15:51:02
      Assunto: [JavaScript] ajax callback

      dear all,

      i'm new to to this group and javascript, and trying to use ajax.
      now, i have problem with ajax callbak. fyi, i use sack library.

      here is the code:

      function submitChanges( ){
      var ajxSubmitChanges = new ajaxSubmitChanges( );
      }

      function ajaxSubmitChanges( ){
      this.ajax = new sack();
      this.ajax.ObjReff = this;

      var fname = _svr_root+'/ docs/text_ only/ajax_ modify.php' ;
      this.ajax.requestFi le = fname;
      this.ajax.setVarEle ment("idthetext" );
      this.ajax.setVarEle ment("thetext" );
      this.ajax.method = "GET";
      this.ajax.onComplet ion = function(){

      //---------- -------- error in here.
      //- error messages: this.ajax is undefined.
      window.alert( this.ajax. response) ;

      drawTextOnlyCell( );
      }
      this.ajax.runAJAX( "save=1") ;
      }

      how can i access ajax object (this.ajax) to get it's response within
      callback function?

      sorry for dummy questions,
      for any respons, TIA
      --
      http://dwikristiant o.homeunix. org




      __________________________________________________
      Fale com seus amigos de gra├ža com o novo Yahoo! Messenger
      http://br.messenger.yahoo.com/

      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.