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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:51:58+00:00 2026-05-11T19:51:58+00:00

I tried to retrieve the value of a particular variable and alert it. That

  • 0

I tried to retrieve the value of a particular variable and alert it.
That is,I wanted to get the value “{“attributes”:[{“type”:”Text”,”labels”:”Untitled1″}]}
” in that variable. Using the success: function(msg) in ajax ,I alerted the value.

But instead of the required value :{“attributes”:[{“type”:”Text”,”labels”:”Untitled1″}]}
I am getting the text given below. What is the problem?

1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>
            CakePHP: the rapid development php framework:       Forms   
      </title>
  <link href="/cake_1_2/favicon.ico" type="image/x-icon" rel="icon" />
  <link href="/cake_1_2/favicon.ico" type="image/x-icon" rel="shortcut icon" />
  <link rel="stylesheet" type="text/css" href="/cake_1_2/css/cake.generic.css" />
  </head>

  <body>
        <div id="container">

        <div id="header">
           <h1>
           <a href="http://cakephp.org">CakePHP: The rapid development php framework</a>
           </h1>
        </div>

       <div id="content">   

                   {"attributes":[{"type":"Text","labels":"Untitled1"}]}

       </div>

       <div id="footer">
          <a href="http://www.cakephp.org/" target="_blank">
          <img src="/cake_1_2/img/cake.power.gif" alt="CakePHP: The rapid development php framework" border="0" />
          </a>  
    </div>
     </div>
</body>

  • 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-11T19:51:58+00:00Added an answer on May 11, 2026 at 7:51 pm

    The problem is that you still use the default layout. Try switching to another shipped layout for Ajax-responses:

    // In your controller
    $this->layout = 'ajax';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how to retrieve a single column's value of type string using HQL. I tried
I need to get(retrieve) updated cell value in controller. (MVC) So I tried this,
im worked in soap message, using SAXparser to retrieve the value(from Webservice) stored in
If I have a standard HTML textbox: I can retrieve the value using Request.Form.
I just tried to retrieve a value from my mysql databade and tried to
I need to retrieve the value of 2 GET parameters I pass to the
I tried to retrieve Cid and Lac for currently connected cell, but using public
I need to locate a particular value that can be buried into a deeply
I have a jsp file that contains this code, <form id=testForm> <input type=hidden value=study--study
I tried several ways to retrieve datetime2(3) equivalent from C# code but in vain.

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.