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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:59:22+00:00 2026-06-05T14:59:22+00:00

On my index.html I am doing the following: <script src=jquery/jquery.js></script> <script src=managment.js></script> <script src=jquery/jquery.mobile-1.1.0.js></script>

  • 0

On my index.html I am doing the following:

<script  src="jquery/jquery.js"></script> 
<script  src="managment.js"></script>
<script  src="jquery/jquery.mobile-1.1.0.js"></script> 

After doing some calculation, I have the need of using a function from the managment.js file:

 $.getScript("managment.js", function(){

                            alert("Script loaded and executed.");
                            login();
                            });
            }

And finally the managment.js file:

<script type="text/javascript">
function login(){
    alert("asdasdasdasdasdasd");
}
</script>

My issue, is that the login() function is never called. Actually the alert I have inside getScriptfunction is not called either, but the strange thing is that if I check if the jquery.js file is loaded the alert is called. More, if I try to call login() without doing getScriptnothing happens has expected. My files structure is the following:

enter image description here

(note: you can see that I am using 2 managment.js files. I tried both approaches to see if the problem was with the path of the file.)

What am I missing here? For relevance, I am using PhoneGap, but this isn’t working on the browser as well.

  • 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-06-05T14:59:24+00:00Added an answer on June 5, 2026 at 2:59 pm

    The management.js file should not contain the <script type="text/javascript"> tag. It should be:

    function login(){
        alert("asdasdasdasdasdasd");
    }
    

    Hope it helps! 🙂

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

Sidebar

Related Questions

Take the following page: <html> <head> <script src=https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js type=text/javascript/> </head> <body> <div class=hashtag>#one</div> <div
My index.html page for my project needs some Ruby code so I need to
in my code for index.html I use jQuery and have a link with id
In my rails view(index.html.erb), i have following structure <div> <%= render :partial => create
I have the following structure /templates/base.html templates/index.html --- here i have inherited base.html which
I have the following jquery script: $(function(){ $('#top-menu').on('click', 'a.change-menu', function(e){ e.preventDefault() $(#menu-change-div).load($(this).attr(href)); }); });
I have the following jquery code in my view <script type=text/javascript> $(document).ready(function () {
I have an index.html and global.css files. When I open these files at Coda,
Inside my index.html.erb <script type= text/javascript> var msg = Hello World ; </script> i
In running this on index.html, I get the following error: Uncaught SyntaxError: Unexpected token

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.