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 6814669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:42:58+00:00 2026-05-26T20:42:58+00:00

I have code that looks something like this: <html> <head> <script type=text/javascript src=http://code.jquery.com/jquery-latest.min.js></script> <script

  • 0

I have code that looks something like this:

<html>
<head>
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
    <script type="text/javascript">
        function myButton_click(){
            alert('got here');
            $.get("myPage.cfm", function(data){alert('load was performed')});
        }
    </script>
</head>
<body>
    <input type="button" id="myButton" value="My Button" onClick="myButton_click()" />
</body>
</head>

The first alert (“got here”) shows up, but the “load was performed” doesn’t. Is the get being executed? What am I doing wrong?

Edit:

I’ve tried it with “http://www.google.com&#8221; instead of “myPage.cfm” to make sure it’s not a problem with my page and it’s still not alerting…

  • 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-26T20:42:58+00:00Added an answer on May 26, 2026 at 8:42 pm

    According to the docs, the function you pass as the second parameter to the $.get call is only called on success. So if your server is returning any kind of error (400, 403, 404, 500 etc.), that function will not be called. If you want a function to be called no matter what, use complete:

    $.get("myPage.cfm").complete(function(jqXHR, textStatus) {
      alert("Load was performed");
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now, I have code that looks something like this: Private Sub ShowReport(ByVal reportName
In my code, I have something that looks like this: @implementation MyClass - (id)
We have some html that looks like this: <form id=MyUserControl runat=server method=post> <script language=javascript
I have code, that looks something like this: (function($) { $(document).ready(function() { function getHash(){
I have a code that looks something like: struct Data { int value; };
I have some code in a couple of different functions that looks something like
I have code that looks like this: template<class T> class list { public: class
I have code that looks like this: class T {}; class container { const
I have a simple server that looks something like this: void *run_thread(void *arg) {
I have a string of raw text which looks something like this: 1 .

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.