Results 1 to 5 of 5

Thread: Sending a message to a DD & Screen refresh

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Pine Island, Forida
    Posts
    2,056

    Default Sending a message to a DD & Screen refresh

    We are doing our first Webap Ajax experiment and would appreciate some help on two topics.

    1. We have created a form with a wizard, added a button that makes an AJAX call to the Webap to do something. After the call completes we would like to proceed to another page. Our code to make the call is:
    Code:
    function fUpdateLoc(sLoc) {
    document.getElementById('LocDiv').innerHTML = sLoc;
     }
    function call_SetLoc(sNewLoc){
        var oCall;
        
        oCall = new vdf.ajax.VdfCall("oAjaxTest","get_SetLoc");    
        oCall.onFinished.addListener(handleResponse);
        oCall.addParameter(sNewLoc,sNewLoc)
        oCall.send(true);
    }
    function handleResponse(oEvent){
        var sResult = oEvent.oSource.getReturnValue();
        
        if(sResult !== ""){
            fUpdateLoc(sResult);
            ' AT THIS POINT WE WOULD LIKE TO move to another webpage
        }else{
            fUpdateLoc("Error retrieving Loc !");
        }
    }
    2. The second questions is how do we send a message to the DD to clear itself. Same as clickiing on the clear (eraser)button.

    Thanks
    fv
    Last edited by FrankValcarcel; 16-Sep-2011 at 03:28 PM. Reason: spelling
    Frank Valcarcel
    Cove Systems, Inc.
    Pine Island, Florida USA
    fv@covesys.com
    (239) 823-7976

Tags for this Thread

Posting Permissions

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