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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:14:33+00:00 2026-05-14T00:14:33+00:00

I am working on zend framework, PHP and jQuery. I am working on popups

  • 0

I am working on zend framework, PHP and jQuery. I am working on popups sometimes. When any popup is open on the screen, we can still clicks links on webpage behind popup which causes some unexpected behaviour. How can I disable a webpage behind popup. I have seen some web application in which when popup appears then webpage behind popup become shady.

I have read some tutorial about this. In each tutorial a link is used to open a dialog and an special attribute is added in anchor tag for modal. But I have a different case I have to open dialog on some condition in action.

I check a condition in action after post like this:

$form = new Edit_Form( );
$this->view->form = $form;
$this->view->form->setAction($this->view->url());

$request = $this->getRequest();
if ( $request->isPost() ) {

   $values = $request->getParams();

   if( $values['edit'] ) {
        $this->view->openEditBox();
   }
}

Now check in view to see that it should open an edit pop or not:

if( $this->openEditBox ){
  $jsonOutput ['content'] = '<div class="DialogBox" title="Edit">' . $this->form->render() . '</div>';
  echo Zend_Json::encode($jsonOutput);
}

‘content’ is a DIV on my webpage.
Any Idea? Thanks

  • 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-14T00:14:34+00:00Added an answer on May 14, 2026 at 12:14 am

    This is done via Javacript and is called a Modal Window.

    You can achieve this easily with the Dialog component in JQueryUI. Other implementations are widely available.

    $('.selector').dialog('option', 'modal', true);
    

    You can use ZendX_JQuery_View_Helper_DialogContainer to create a modal dialog with ZF. You have to enable the library first though, as it is not part of the standard distribution. Then you can use the following in your View:

    $this->dialogContainer('foo', 'I am a modal Dialog', array('modal' => true));
    

    * Note: haven’t worked with these helpers, so the above snippet might need adjustment

    Usage of dialogContainer is pretty straightforward:

    dialogContainer($id, $content, $params, $attribs):
    Create a Dialog Box that is rendered with the given content.on startup. If the option ‘autoOpen’ set to false is specified the box will not be displayed on load but can be shown with the additional dialog(“open”) javascript function. See UI docs for details.

    See the ZF manual for further information on how to setup and use ZendX_JQuery

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

Sidebar

Ask A Question

Stats

  • Questions 324k
  • Answers 324k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can use jQuery load method You can look here:… May 14, 2026 at 1:21 am
  • Editorial Team
    Editorial Team added an answer /* I did this entirely in SQL and avoided ADO.NET*/… May 14, 2026 at 1:21 am
  • Editorial Team
    Editorial Team added an answer The fundamental issue is that eval can run any JavaScript,… May 14, 2026 at 1:21 am

Related Questions

I am working on a Facebook game which is developed using Zend framework. Right
I am working on a Facebook game which is developed using Zend framework. Right
I am using PHP and the codeigniter framework for a project I am working
Although I am using the Zend framework, MooTools JS library and my questions revolves
This is my first experience using the Zend Framework. I am attempting to follow

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.