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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:21:15+00:00 2026-05-24T22:21:15+00:00

I am working on a notification’s bar that displays all friend requests a user

  • 0

I am working on a notification’s bar that displays all friend requests a user received as well as note’s posted to him etc. So my notification’s bar displays a sum of these recent event’s and on a mouse over that notification’s bar displays the details like friend requests,message’s received,comments posted etc separated by a new line.

echo "<a href='notifications.php?id=all_notifications' class='notification_text'   title='".$title."'>"."You have ".$notifications->notification_counter." new notifications!</a> <a class='close_button' href='#' onclick='ajaxcaller_one_param(\"clear_notifications_bar\");return false;'></a>";

The problem is the $title which has all the messages concatenated in it over various if blocks and has \n at the end of each string.

mozilla ignores the \n at the end and places all the messages side by side without a space. how can i eliminate this issue???

  • 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-24T22:21:16+00:00Added an answer on May 24, 2026 at 10:21 pm

    The way the title attribute is rendered depends upon/varies with browser. According to this article, Firefox displays the tooltip correctly, ignoring LF and replacing CR with space. I suggest that you use a JavaScript tooltip plugin instead.

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

Sidebar

Related Questions

I am currently working on a notification bar http://jsfiddle.net/nZe8t/ and I would like to
I am working on a simple web server that sends push notification to my
I have implemented C2DM (Android Push Notification) to my app and all is working
I am working with a remote git repo that does NOT support email notification
Okay, So I'm working on having an alarm that gives a notification at, lets
I am working on a simple notification service that will be used to deliver
I'm working on implementing an observer design pattern with a notification object that I
I'm currently working on a system that allows users to reply to notification emails
I don't want the notification service to be working while the user is in
I have a toast notification system that is working on WP7. When I send

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.