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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:42:39+00:00 2026-06-14T14:42:39+00:00

The issue: I have text fields that are extremely long, and I’m truncating them

  • 0

The issue: I have text fields that are extremely long, and I’m truncating them and putting the full text into a jQuery Mobile popup that will appear when the ‘[more]’ link is clicked. However, I’m having trouble finding the right hook to initialize the popup after replacing the text with the popup markup. I bound it to pageinit, but when I click, nothing happens. Not binding the replacement code at all gives me the message: “Function called on popup that has not been initialized”, so I know that some initialization is necessary – but if not at pageinit, I don’t know how early in the stack it needs to be called.

JSFiddle: http://jsfiddle.net/KSFyn/1/ – note: since the built-in jQuery Mobile for JSFiddle is 1.1.1, the pageinit isn’t performing as expected, but that gives you an idea of what I’m trying to accomplish.

  • 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-14T14:42:41+00:00Added an answer on June 14, 2026 at 2:42 pm

    Does something like this work?

    • http://jsfiddle.net/RyNFc/1/

    UPDATED: need to recreate the jQM Markup as you are dynamically adding the popup text after the page is created (using the ‘create’ event in JQM ~ beh)

    • http://jsfiddle.net/RyNFc/4/

    HTML

    <div data-role="page" class="type-home">
        <div data-role="content">
            <a href="#popupInfo" data-rel="popup" data-role="button" data-inline="true">This is an exceptionally long span ...</a>
            <div data-role="popup" id="popupInfo" class="ui-content" data-theme="e" style="max-width:350px;">
              <p>This is an exceptionally long span that I will attempt to break up with JS and present the full text as a popup.  This is an exceptionally long span that I will attempt to break up with JS and present the full text as a popup.</p>
            </div>
        </div>
    </div>
    ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a strange issue that has arisen recently: Whenever I enter text, even
I have a small issue with a method that should save the text contained
I have various text fields and sometimes their values have hypens/dashes in them, e.g.
I have a simple contact form on a website that has 2 text fields,
I have an odd issue while using FlashCS4. I have a textfield that, when
i have a small issue which my text field insist to inhert the CSS
http://dl.dropbox.com/u/24856/android_issue.PNG i have a text view on top running into the relative layout with
I have this issue trying to get all the text nodes in an HTML
I have a issue with my listview, I basicly want the text in the
I'm using XPreformatted to print some preformated text and I have an issue with

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.