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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:27:33+00:00 2026-06-02T23:27:33+00:00

I have been testing the jQuery .html() function and I have found that it

  • 0

I have been testing the jQuery .html() function and I have found that it does not work with large amounts of text, see this example. However the code for that is bug free, and a much simplified test case works perfectly.

I know that this probably isn’t the best way to include large amounts of data into a div, but I intend to eventually load the data in from various arrays, and the code was meant to be a sort of constructor.

So onto my question: what am I doing wrong? Can jQuery just not handle that amount of text? And if so what is the best way to load multiple instances of the same html, with different text/urls in some parts, using jQuery/JavaScript/JSON? Should I populate the data from an array?

Thanks in advance, any help would be much appreciated.

EDIT based on answers

Hi thank, stupidly I overlooked an undefined variable. Here is a new working test case. What I am trying to accomplish is to have multiple blog posts that follow the same structural formula loaded into a page by jQuery 6 at a time. Is the best way to store this data in an array? And then populate the contents of those elements from the array?

  • 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-02T23:27:34+00:00Added an answer on June 2, 2026 at 11:27 pm

    The example you provided is throwing an error:

    Uncaught ReferenceError: posterurl is not defined
    

    After adding var posterurl = "";, the code executed properly and performantly.

    Here’s a working fiddle.

    Note: This is a horrible way to build a page.

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

Sidebar

Related Questions

I have been doing some testing whilst using Jquery UI datepicker and have found
I have been testing and playing around with jquery date picker below. http://jqueryui.com/demos/datepicker/ on
I have been testing the performance of reading server socket input stream. I found
I have been hearing that with unit testing we can catch most of the
I have been working on and testing the jQuery autcomplete functionality here on my
I have been looking for a really good, well documented jquery plug-in that will
I have been testing the new deferred AJAX functions in jquery 1.5 and am
I have been developing and testing with inline jQuery. I am using CodeIgniter and
I have been testing WCF and WWS services, both my own and the SortService
I have been recently testing my app in a strict mode to detect disk

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.