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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:04:03+00:00 2026-05-28T19:04:03+00:00

I can see that the $.getScript bit of jquery would be handy once it’s

  • 0

I can see that the $.getScript bit of jquery would be handy once it’s working, but it’s the last little bit I’m having problems with. I’m suspecting the problem is caused by the way I’m loading JS files. How do I get this to work? My index.html is actually index.php and has very little between the body tags. I’m using jquery 1.7.1

<body id="btLive">
     <script>
          buildInterfaces();
     </script>
</body>

buildInterfaces() resides inside a document named layoutLoader.js. In that file, I have the following:

$(document).ready(function() {
     $('#hToggle').click(function() {
          aaa = "Not working.";
          $.getScript('test.js', function() {
               alert(aaa);
          });
          toggleHoverPanel();
     });
});

As my test, test.js is in the same folder as layoutLoader.js and contains only the following:

aaa = "Successful Load."

When I click on the button hToggle, toggleHoverPanel takes place and I get no alert. If I place an alert after aaa=”Not working.”; I get the alert I expect, telling me it’s not working. I have a number of items that I need to use this for, but for the life of me, I cannot get it to work. Help?

  • 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-28T19:04:04+00:00Added an answer on May 28, 2026 at 7:04 pm

    With high probability test.js file could not by found.
    Add this piece to your code and try again:

    $(document).ajaxError(function(event, request, settings){
      alert('error loading: ' + request.status);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can see that GD library is for images. But I can't see differences
I can see that Collections.unmodifiableSet returns an unmodifiable view of the given set but
in this example http://layout.jquery-dev.net/demos/toggle_alternate_layouts.html you can see that the resize is on the fly.
I can see that there is a copyDirectory activity, but no copyFile activity. Is
On this link you can see that the page has a background image, but
I assumed that Application.Exit causes app to exit imemdiately but I can see that
I am working on a project in which As you can see that there
You can see that I add 40 spaces after my string but it starts
Below you can see that I store the results of the jquery selector in
I can see that this question has been asked several times, but none of

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.