Hi all,
I am loading the webpage into my webbrowser and navigating, filling the from etc. while do so, if i fill the first textbox , based on that second text box has to come automatically. But it's not coming automatic. When viewing page source of that page came to know that ajax function is there to trigger. how to do that through vb.net coding.

the ajax function is like below:

$('#practices').bind('change paste input', function() {
            // when the selection of some other drop down changes 
            // get the new value
            var value = $(this).val();
            // and send it as AJAX request to the newly created action


                url: 'getAddDataStdValues.php',
                type: 'POST',
                data: { data: value, stdfor: 'practices'  },
                success: function(result) {
                    // when the AJAX succeeds refresh the ddl container with
                    // the partial HTML returned by the Foo controller action
                    $('#ddcl-std_practices span span.ui-dropdownchecklist-text').text(result);
                    $('#ddcl-std_practices span span.ui-dropdownchecklist-text').attr('title', result);
                    selectObj = document.getElementById('std_practices');
                    var stdPracs = result.split(';');

                    //clear all first
                    for (var i = 0; i < selectObj.options.length; i++) {
                        selectObj.options[i].selected = false;
                        document.getElementById('ddcl-std_practices-i'+i).checked = false;

                    for(var j = 0;j < stdPracs.length; j++){
                        for (var i = 0; i < selectObj.options.length; i++) {
                            if (selectObj.options[i].text == stdPracs[j]) {
                                selectObj.options[i].selected = true;
                                document.getElementById('ddcl-std_practices-i'+i).checked = true;



3 Years
Discussion Span
Last Post by AleMonteiro

I'm not sure, but I think this would work (C#):

object[] codeString = {"$('#practices).change();"};
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.