You must Sign In to post a response.
  • Category: JQuery

    Jquery ajax call issue.

    Hi Experts,

    This is my function to load data into jquery datatable from external file . its loading the data if alert is used other wise data records not loading.

    function registerComposeButtonEvent(){
    /* just for this demo */
    $('#composeButton').click(function (e) {
    e.preventDefault();

    var tabId = "compose"+composeCount;//this is id on tab content div where the
    composeCount = composeCount + 1;//increment compose count

    $('#topTabs').append('<li><a href="#'+tabId+'"><button class="close closeTab clsBtn" type="button" ><i class="fa fa-times-circle"></i></button><i class="flaticon-social-network15"></i>Manage User</a></li>');
    $('#topTabs-content').append('<div class="tab-pane" id="'+tabId+'"></div>');
    craeteNewTabAndLoadUrl("","work2.html","#"+tabId);
    alert('test');
    callusergrid();
    $(this).tab('show');
    showTab(tabId);
    registerCloseEvent();
    });

    }
  • #763922
    Hi
    Ram

    Did you using external Jquery file means your control property must be this


    <asp:Label ID="lbl1" ClientIDMode="Predictable" runat="server"></asp:Label>


    then call using control.ClientID in your client side script then try it will work

    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #763931
    Hai Ram,
    Did you check the function callusergrid();. There might be the issue for this function to load the GridView. Instead try the same code inside this function and check using debugger.
    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com

  • #763944
    Hi,

    The issue might not be alert, my suggestion is execute the ajax call in browser and check if it throws any errors.

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/


  • Sign In to post your comments