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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:29:28+00:00 2026-05-30T12:29:28+00:00

I have a page that is currently utilizing a jQuery plug-in for truncating text

  • 0

I have a page that is currently utilizing a jQuery plug-in for truncating text string based on a width provided. While the string is truncated and ends with “…” the full string is placed inside TITLE of the element.

Normally it works great, however, I noticed a case where a page has too many strings, close to 100, and my page starts crashing, complaining that the script stopped responding.

Is there a simpler way to truncate? I’m OK use approximate width, perhaps switching to a character count?

I’d love it if this could be accomplished with just a few lines of code.

Can something like this be done?

  • 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-30T12:29:29+00:00Added an answer on May 30, 2026 at 12:29 pm

    They are called ellipsis. I would suggest you to go for css rather than using JavaScript.

    Something like this.

    .ellipsis {
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
        -o-text-overflow:ellipsis;
        -moz-binding:url('ellipsis.xml');
    }
    

    Where ellipsis.xml contains

    <?xml version="1.0"?>
    <bindings 
      xmlns="http://www.mozilla.org/xbl"
      xmlns:xbl="http://www.mozilla.org/xbl"
      xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
         <binding id="ellipsis">
            <content>
               <xul:window>
                  <xul:description crop="end" xbl:inherits="value=xbl:text"><children/></xul:description>
               </xul:window>
            </content>
         </binding>
    </bindings>
    

    Also for browsers like FF(4 to 7) which do not support ellipsis there are workarounds to achieve this.

    You can take a look at this link for FF workarounds text-overflow:ellipsis in Firefox 4? (and FF5)

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

Sidebar

Related Questions

I have a page that is currently using the datetime microformat to display a
Let's say I have a web page that currently accepts a single ID value
I currently have an advanced search page that searches a number of fields in
I currently have a web form aspx page that calls RegisterClientScriptBlock. This sends down
I currently have a product view page that contains an MVCContrib HTML Grid with
I have a page that is currently generating dynamically created textboxes in a table
I currently have a page that displays player information from one table named tblplayers.
I currently have a page that is erroring out with the Generic code of
I have a page on my site that currently loads html via ajax. The
I have an anchor tag on my web page that is currently defined as:

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.