CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 How to execute javascript immediately after AJAX Autofill

Print topic Send  topic

Author Message

Posts: 183
Posted: 03/04/2010, 3:04 AM

This no doubt applies to other AJAX routines, but if you want to execute some javascript immediately after your AJAX autofill then insert your js function here:

My js function in this example is CalcQuantity();

//PTAutoFill2 Loading @61-ABF7CDD3  
function salesorderlinedetailTaxCodeRef_idPTAutoFill2_start(sender) {  
    new Ajax.Request("services/salesorder_lineitem_salesorderlinedetail_TaxCodeRef_id_PTAutoFill1.php?keyword=" + encodeURIComponent($("salesorderlinedetailTaxCodeRef_id").value).replace(/'/g, "%27"), {  
        method: "get",  
        requestHeaders: ['If-Modified-Since', new Date(0)],  
        onSuccess: function(transport) {  
            var valuesRow = eval(transport.responseText)[0];  
            if (typeof(valuesRow) != "undefined") {  
                getSameLevelCtl("salesorderlinedetailTaxCodeRef", sender).value = valuesRow["VATRate"];  
            } else {  
                getSameLevelCtl("salesorderlinedetailTaxCodeRef", sender).value = "";  
        onFailure: function(transport) {  
//End PTAutoFill2 Loading

You have to of course define your js function elsewhere in the head!

RAD tools for rich UI controls:
View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.