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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:51:37+00:00 2026-05-18T12:51:37+00:00

Well, my problems is a little wierd, I have an AJAX Request to get

  • 0

Well, my problems is a little wierd,

I have an AJAX Request to get just a number.

That number is printed on: getMoney.php.
On index.php i have the AJAX request.

Ajax Code:

function getMoney(selected)
        {
            if(selected.value != -1)
            {
                // Obtener presupuesto via AJAX
                $(document).ready(function(){
                    $.ajax({
                            url: "getMoney.php",
                            async: true,
                            success: function(datos){
                                //My action
                            }
                    });
                });
            }
        }

The function is called when I change a value on a Combobox HTML

<select name="area_id" onchange="getMoney(this);">

Well… My problem:
If i write down the numbers on getMoney.php (mannualy) its works perfectly, the AJAX’s get it and the action is done, but when i get the numbers from my database i just get 0. I open mannualy too the getMoney.php, and the numbers ARE THERE! even if i get it from the Database.

What’s wrong?

  • 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-18T12:51:38+00:00Added an answer on May 18, 2026 at 12:51 pm

    make sure that getMoney.php is NOT using your standard view headers, i.e. script includes, stylesheet includes or anything else. Also, it’s better practice to have getMoney.php to return a JSON string with your data parametized that way you can pull back diagnosic and error codes as well as specific data. this will help in debugging. look at $.getJSON() if you need help with that.

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

Sidebar

Related Questions

Well I've createad a SurfaceView that displays a bitmap, without problems. But I want
well I have that problem, im using a lightbox srcipt and im opening an
Well, here is my problem: I have an application that uses a custom Javascript
I've used UISplitViewController several times before without problems (well, problems that I've fixed anyway
It's a well known problem that executing make test doesn't build the tests as
well i have most probably an extremly stupid problem but could not figure it
Well. I'm having a problem with the eval(); function in PHP. I don't quite
Well i have a web page hosted in a IIS 7.0 now the problem
I'm having problems loading the parse_ini_file, currently I have registered a path in my
A little while ago I read a great article which described a number 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.