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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:11:06+00:00 2026-06-15T01:11:06+00:00

I have a forum, and on every persons post theres a button that allows

  • 0

I have a forum, and on every persons post theres a button that allows a moderator to mute someone after reviewing the post/entering hours to mute for in a window using simplemodal. In the code that shows the window, I have long code like

var output = "<div id='msginfo'>...</div>";

and so on. I would like my code to be able to be ‘minified’ when I’m done with it and a lot of packers/shrinkers crap out when it comes to the html (usually the < and “> stuff.).

How do other web applications manage no HTML in javascript files? are the divs that will be shown just hidden until they’re needed or what?

  • 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-15T01:11:07+00:00Added an answer on June 15, 2026 at 1:11 am

    At work, I use ICanHaz for this. It lets you generate DOM elements on the fly from HTML templates (which you can include in the <head> of your HTML file) without having to inline any HTML whatsoever in your Javascript where it’s ugly and harder to read.

    For a purpose like yours – displaying a modal with a fixed layout – this is probably cleaner than having the modal included and hidden on the page the moment it loads, although there’s probably nothing horribly wrong with the latter solution either in this case.

    Incidentally, ICanHaz is also a nice solution when you want to asynchronously add content to the page after it has loaded, which may be relevant in a forum context (for e.g. loading new posts without a new page load).

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

Sidebar

Related Questions

I have a form that i want to appear at the top of every
I have a basic POST form being submitted. Every time a form is submitted,
I have a forum where people on a daily basis post links to other
Example: I have 20 persons as object, and every person knows 0-n others. The
I have a form that asks for addresses. After each address, we ask how
I have a System.Timers.Timer that updates my win form application components in every 5
I have this Form I am trying to upload my image but every time
I have a page with lots of forms on it and every form has
I have an php website with login form and I want every visitors can
I have two select fields in a form. Every time one of these select

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.