Results 1 to 7 of 7

Thread: Ajax 2.4 alert problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    SW Connecticut/NY area
    Posts
    7,942

    Arrow Ajax 2.4 alert problem

    I've got a 2.4 Ajax WebApp that I want to add a vdf.gui.alert dialog to. It seems to work as expected except where I want to use it which is in the response to a vdfCall.

    Code:
            function doSendBase64(b64){
                oVdfCall = new vdf.ajax.VdfCall("oRmtPOD", "get_sGetPicture");
                oVdfCall.bSuppressError = true;
                oVdfCall.addParameter(b64);
                oVdfCall.addParameter(iWaybill);
                oVdfCall.onFinished.addListener(SuccessOrFail);
                oVdfCall.send(true);
    
    
            }
    
    
            function SuccessOrFail(oEvent){
                var oVdfCall = oEvent.oSource; 
                sRC = oVdfCall.getReturnValue();
    
    
                if (sRC != "0" && sRC != ""){
            alert(sRC);
            }else{
                    vdf.gui.alert('Done!', 'Photo upload');   <<========== this fails, the process doesn't stop at this point, just whizzes by this line
                    // alert("Done");                         <<========== this works but is unbelievably ugly on a phone
    
                    window.open("rmtPod.asp", "_self");
                }
            }
    I've tried the vdf.gui.alert in a few other locations in the WebApp and it works as expected when used everywhere but in the above code. I've tried this in a regular browser and also on the phone application where this lives and it behaves the same in both places. Any way to fix this?
    Last edited by Bob Worsley; 10-Sep-2014 at 09:29 AM.
    Bob Worsley
    203-249-2633
    rlworsley at gmail.com

    Do or do not. There is no try. — Yoda

Posting Permissions

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