Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4606336
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:33:06+00:00 2026-05-22T00:33:06+00:00

I am loading a jQuery UI dialog and at the end of the HTML

  • 0

I am loading a jQuery UI dialog and at the end of the HTML that I get with an AJAX call is the script below. I expect it to bind to a button that I have defined and to run when clicked, however it does not run. If I change the contents of the function to nothing but an alert it runs fine. JSLint has not helped me to find my problem. Can anyone tell me what I am missing?

<script type="text/javascript">
    $("#runbutton").bind("click",function()
    {
        $("#loading").show();
        $.getJSON("web.air.sum.rpt.php","json=true&whse="+$("#whse").val()+"&date1="+$("#date1").val()+"&date2="+$("#date2").val()+"&status="+$("#status").val()+"&caby="+$("#caby").val()+"&catarg="+$("#catarg").val(),function(data, textStatus)
            {
                $("#results").html("<table width='100%' id='restbl'></table>");
                $("#loading").hide();
                $.each(data,function(key,val)
                {
                    $("#restbl")
                        .append("<tr><th>AIR "+val.KEY+"</th><td>"+val.ACCDATE+" "+val.ACCTIME+"</td></tr>")
                        .append("<tr><th>Team Member</th><td>"+val.NAME+"</td></tr>");
                        .append("<tr><th>Target</th><td>"+val.TARDATE+"</td></tr>");
                        .append("<tr><th>Accident Description</th></tr><tr><td colspan='2'>"+val.ACCDESC+"</td></tr>");
                        .append("<tr><th>Corrective Action</th></tr><tr><td colspan='2'>"+val.CORRACT+"</td></tr>");
                        .append("<tr><td></td><td>By "+val.VERBY+"</td></tr>");
                        .append("<tr><td colspan='2'><hr></td></tr>");
                });
            });
    });
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:33:06+00:00Added an answer on May 22, 2026 at 12:33 am

    You have semicolons after your .append() functions. This should only be so after the last one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some content that I am loading using jquery ajax. The content has
I'm loading some content into a jquery-ui dialog via .ajax. That's all working fine
I am loading some html via $.get() into a Jquery-dialog-popup. Upon clicking a link
I got this jQuery pre-loading script running on a index.html page loading about 10Mb
i'm loading, using the JQuery ajax() method, an external page with both html and
I am loading feed-items into a ul using this jQuery .ajax() call, which I
I have a function resizePreview() that will resize an image in a jQuery dialog
I'm loading a view page via an $.ajax() call with jQuery. I'm explicitly setting
In a jquery ui dialog i'm loading table of images via ajax. Once content
I have got a problem with Jquery UI dialog window. I am loading external

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.