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

  • Home
  • SEARCH
  • 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 8874803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:48:54+00:00 2026-06-14T18:48:54+00:00

I simply explain my problem. I know nothing about JS and AJAX. But I’d

  • 0

I simply explain my “problem”. I know nothing about JS and AJAX. But I’d make a simple AJAX function:

  • My Menu “projects” displays the last 5 projects to which the user is involved
  • When you click on one of these projects, a small drop-down list appears and you can choose “Tasks”, “presentation”, “Discussions”, etc..
  • When you click on “Tasks” for example, the right part of the website is updated by displaying tasks on the project.

Not refreshing the entire page, just a div on the right.

I have to pass the ID of the project that I want to see the tasks to the right div (which simply loads tasks.php) so that it displays project tasks that I selected!

By asking a few people I was advised to pass the ID of the project by putting it in a “rel” of the div of the project, that I would recover after tasks.php, only I did not have a clue how to put it into practice, as simply as possible!

If you could help me, it would be very helpful 🙂

  • 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-14T18:48:55+00:00Added an answer on June 14, 2026 at 6:48 pm

    Seems like all you need is to build a url to your php page. Something along the lines of tasks.php?projectId=[project id goes here]. This url would be built when the user clicked on one of the projects.

    For the request itself, I suggest you use jQuery’s $.get() function (http://api.jquery.com/jQuery.get/).

    In PHP, you could then use $_GET[“projectId”] to retrieve the value, and act accordingly. As far as how to transfer data between the two, I’d recommend encoding your PHP response as json (using the proper content encoding, a simple set of header directives will do), obviously you’ll need to fomat the JSON to something like:

    {tasks: [{id: 'task1', name: 'My task', ...}, {id: 'task2', name: 'my other task', ...}]}

    Does this answer your question?

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

Sidebar

Related Questions

My problem is very simple to explain but I don't success to find the
The problem is simple to explain but difficult for me to resolve. I have
I was wondering if someone could explain to me how to make a simple
somewhat simple problem(to explain) this time: i have an array of markers that i
I created this to simply explain my problem. It is of some list items
Greetings, I've run into a problem with a simple jQuery mousemove function: When I
I think the easiest way to explain is simply linking to an example of
I'm going to try and explain this as simply as I can, it's most
Can someone explain this simple, yet deceiving, anomaly? There are two models, where B
I will try to explain a simple app scenario: My app goes right to

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.