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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:19:29+00:00 2026-05-26T08:19:29+00:00

I am using cakePHP for my project and i have the following Jquery script

  • 0

I am using cakePHP for my project and i have the following Jquery script

$.ajax({
                url: '<?php echo $this->Html->url(array("action" => "retrieveVideoFeed"));?>',
                dataType: "json",
                data: {
                    vid: $v_id
                },
                success: function( data) {
                                            response([data]);
                }
            });

Now i want to use the response data from the controller and when i do :

data.example, it should give the value of the json type that is responded by the controller. However, firebug is complaining that data is not defined. If that is the case, how can i use the response data in the ajax? However the firebug is showing the response data. I just need to know how can i use access the responded data from jquery.

  • 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-26T08:19:29+00:00Added an answer on May 26, 2026 at 8:19 am

    thsi is the json you are getting as you have posted in the comments

    {
        "apiVersion": "2.1",
        "data": {
            "id": "Ahg6qcgoay4",
            "uploaded": "2008-03-10T17:30:17.000Z",
            "updated": "2011-10-23T04:17:10.000Z",
            "uploader": "dothetest",
            "category": "Howto",
            "title": "Test Your Awareness: Do The Test",
            "description": "How many passes does the team in white make? Test your awareness and Do the Test!"
        }
    }
    

    access it in the success handler like

    success:function(data){
    alert(data.data.id);
    //or
    console.log(data.data.id);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi i am currently doing a school project using cakePHP. I have the following
I am using RPX in my CakePHP project. I have set the toke url
I just started using CakePHP for a small project. I have rails experience, and
Using CakePHP 1.3, I have the following layout: /srv/www/_cakephp13/ /app/ /cake/ /plugins/ /vendors/ etc...
Using CakePHP, I created select-option form element with: echo $form->select('items', $numeration , array('selected' =>
I want following type of URL using cakephp. http://localhost/project1/controller1/action1/[{user_id:1,udid:,msg:,nick_n:Danis,post_t:2011-10-21 12:15:00,source:A}]/50 where [{user_id:1,udid:,msg:,nick_n:Danis,post_t:2011-10-21 12:15:00,source:A}] and
  I am developing a project which is built in CakePHP and using jQuery in
I am using following code in the cakephp project in bootstrap to define constants
I have project developed using cakephp 1.3 and for testing I used SQL Inject
I am using spark_plug in my cakephp project and I am having this error

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.