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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:45:36+00:00 2026-06-13T16:45:36+00:00

I am using the jQuery tmpl plugin to generate some HTML for a bunch

  • 0

I am using the jQuery tmpl plugin to generate some HTML for a bunch of objects in an array, and I’m getting an Invalid Argument error within the core jQuery library when I try to template a large number of objects, for example: in some cases the array might have over 9000 objects in the array and I’ll get the error. This is a .NET 4.0 app with a bunch of client-side code, the exact error reported by visual studio is “Microsoft JScript runtime error: Invalid argument.” and it is occurring at line 679 (in the merge function) of the un-minified jQuery library, 1.8.2 . I’m trying to generate the HTML so I can do some other formatting on it and display only certain things at a time. This won’t happen if I template fewer objects, such as 4000 or less. I don’t know exactly where the cutoff is. Has anyone run into this before, or know if there’s a workaround?

tmpl plugin version: 1.0.0pre
jQuery core version: 1.8.2

Thanks.

  • 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-13T16:45:38+00:00Added an answer on June 13, 2026 at 4:45 pm

    I think in your case you got this error because on you local machine, your Javascript doesnt work with such a big object. As i know it doesnt depend on verstion plugin and so on – solution more deeper in core. So size of your array with 9000 object bigger that size which can be processed.

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

Sidebar

Related Questions

I'm currently generating a list using the jQuery tmpl plugin : <script id=mainTemplate type=text/x-jquery-tmpl>
I'm appending rows to a table using the jQuery tmpl plugin. Each row corresponds
I noticed that jquery's beta template plugin is using, the type attribute text/x-jquery-tmpl e.g
I am using the jQuery templates plugin to render separate html files as templates.
I am using jquery tmpl to show a bunch of results in a table.
I'm trying to implement more/less functionality using the official jquery-tmpl plugin. I've looked at
I'm using jQuery Templates from within the jQuery UI Autocomplete plugin so that I
I'm trying to interrogate a string value using JQuery.tmpl() from within an {{if}} block
I am using jQuerys tmpl plugin for templates. Now i have an array with
Using jQuery templates is easy for some simple data structures. <script type=jquery/x-jquery-tmpl id=myTemplate> <li>

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.