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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:11:19+00:00 2026-05-21T04:11:19+00:00

Currently I’m working on a project using Zend framework and the message notification dialog

  • 0

Currently I’m working on a project using Zend framework and the message notification dialog box (using Facebox jquery).

I wanted to make my message notification dialog box to be smarter rather having the user click onto the link, before the Notification Message box appear. I wanted to make it if there’s inbox messages then the message box appear else it doesn’t appear on the screen.

I have 2 questions,

  1. How can I make the message notfication dialog box popup when the page load . (without requiring the user click onto the link)
  2. Second question how can I control the dialog box to display or not to display in Zend framework Controller?

Thanks so much in advance!

Here is my current code

When a user click onto the link, the Notification Message box appear on the screen

<a href="#messages" rel="modal">Notification Messages</a>

Here the javascript code to Initialise the Facebox Modal window:

$('a[rel*=modal]').facebox(); // Applies modal window to any link with attribute rel="modal"
  • 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-21T04:11:20+00:00Added an answer on May 21, 2026 at 4:11 am

    How can I make the message notfication dialog box popup when the page load . (without requiring the user click onto the link)

    There are several way to do this, depending on your use case. If you want to notify users in “real time” you may use javascript setTimeout() or setInterval() functions to start a timer and trigger an ajax request to check for new message.

    If you just want to do that on page load, well, a simple flag like var hasMessages = true; would do the trick.

    In both case, consider writing a View Helper (see my second answer below)

    Second question how can I control the dialog box to display or not to display in Zend framework Controller?

    Controllers are not intended to “display” or “not display”.
    What you are probably looking for is View Helper

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

Sidebar

Related Questions

Currently, I'm working on a project where I have a server - client relationship
Currently working on database part of android project. The main aim of the project
Currently I am using HTML files for parts of my user interface. I display
currently, I`m implementing a map App with Mono4Droid and there I`m using a WebView
Currently working with converting SQLException error messages into messages that are more useful for
Currently i'm having trouble using two functions in my -(void)viewDidLoad , both of these
Currently I am using Amazon Cloudfront to service static objects on my ASP.Net MVC3
Currently, I am modifying a css document to make a website compatible in IE
Currently I'm using the Jackson JSON Processor to write preference data and whatnot to
Currently writing a C# application it should do backups using GIT in the background.

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.