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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:57:06+00:00 2026-05-31T16:57:06+00:00

i have a little problem with my Ajax calls. Maybe i do not have

  • 0

i have a little problem with my Ajax calls. Maybe i do not have the right approach here or i did not understand it correctly.

Here is what i do:
i create a new object once and set a value with the function set_value for a variable defined in the __constructor in createobj.php

$obj->set_value(10);

The object is created in class_obj.php. and the value is 10.

Then i make an ajaxcall with jquery and json:

$jq.getJSON(ajaxcall.php? + options, function(data) {

But when i call the obj in ajaxcall.php again it is empty? I do not understand why, so i appreciate any tipps, tutorials ebooks and your help for better understanding.

How can i achieve it, that i can access the same object created in createobj.php in ajaxcall.php with all values, setting new ones etc.? So a “global” object. Or do i have to send the obj with the ajaxcall?

Thank you for bringing light into the dark 😉

  • 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-31T16:57:08+00:00Added an answer on May 31, 2026 at 4:57 pm

    Sounds like you’re expecting the value to stay as it was when you execute another script (the AJAX script), which won’t work, they will act as completely different scripts, so no information will be passed between them.

    You’d either have to set the value to a SESSION, or save it in some way (e.g. to a database) and then “load” the values from an ID set in a SESSION variable.

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

Sidebar

Related Questions

I have a little problem. I have situations where my ajax calss returns a
I'm having a little problem with jQuery ajax and an animation. I have a
Hey guys, I have a little problem with a simple ajax request. I can't
I have a little problem with my click event. I have an AJAX function
I'm having a little problem with this setup here I have a list of
I am very new to jQuery/JS and I have little problem with add or
i have a little problem here. I am working on a little application wich
i have little problem with boost::asio library. My app receive and process data asynchronously,
I have little problem with a replacement of a little part in an url.
I have little problem in regular expressin creation. Expected input: blahblahblah, blahblahblah, 'blahblahblah', blahblahblah,

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.