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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:49:49+00:00 2026-06-08T00:49:49+00:00

I may have coded myself into a corner here. I am developing a chat

  • 0

I may have coded myself into a corner here.
I am developing a chat application in Zend Framework. What I have is an “action” page (action.phtml) that handles all of the requests sent by jQuery (which is loaded when index.phtml action fires). The action script runs static methods and returns a json encoded response. ($response = Chat::Static_Method)

My problem is, when I run the app, everything fires correctly, and I can see the various actions (action.phtml?run=whatever) in the browser console. What I can’t seem to figure out is how to get index.phtml to read the response echoed onto action.phtml.

Any advice would be appreciated.

  • 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-08T00:49:51+00:00Added an answer on June 8, 2026 at 12:49 am

    I wish I could have explained my problem more clearly. Posting code simply wasn’t an option, there are literally dozens of files involved and several hundred lines of code for the chat app alone.

    Turns out the issue was the layout. The json that my action page produced wasn’t being consumed by the jquery because of all the other html around it. The solution was rather simple (after a night of reading through the documentation) – I simply deactivated the layout in that action;

    $this->_helper->layout()->disableLayout();
    

    SO, I hope this helps someone out… although I know this is a pretty unique problem.

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

Sidebar

Related Questions

I have this relatively large numerical application code that may run for a few
Ok so the title may have been confusing so i have posted 2 code
This may be a stupid question but I have a code with the following
As you may know, when we have this code in Javascript : function getName()
I have some cleanup code which may try to refer to an (stateful) EJB
I have the following situation in code, which I suspect may be a bit
You may have heard of PawSense , a Windows-only utility that prevents keystrokes from
This may have been answered before, and if so, point me to the answer.
I have a csv file which may have empty or blank rows. I want
I have a multidimensional points which may have keys of the following 3 types

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.