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

  • Home
  • SEARCH
  • 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 77469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:50:07+00:00 2026-05-10T20:50:07+00:00

I need to replace our Ajax Modal Popup controls with a JavaScript equivalent. We

  • 0

I need to replace our Ajax Modal Popup controls with a JavaScript equivalent. We use this as a simple context sensitive help type popup. I did a quick browse but didn’t see quite what I was looking for. I just need some text and a simple Close button/link, but I would like the page darkened below the popup, as it does with the Ajax modal control.

Can anyone suggest a nice JavaScript popup/help type solution that you’ve used?

  • 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. 2026-05-10T20:50:07+00:00Added an answer on May 10, 2026 at 8:50 pm

    I can provide you the code. Do your modifications as necessary, OK?

    Page JavaScript:

    function myPop() {      this.square = null;     this.overdiv = null;      this.popOut = function(msgtxt) {         //filter:alpha(opacity=25);-moz-opacity:.25;opacity:.25;         this.overdiv = document.createElement('div');         this.overdiv.className = 'overdiv';          this.square = document.createElement('div');         this.square.className = 'square';         this.square.Code = this;         var msg = document.createElement('div');         msg.className = 'msg';         msg.innerHTML = msgtxt;         this.square.appendChild(msg);         var closebtn = document.createElement('button');         closebtn.onclick = function() {             this.parentNode.Code.popIn();         }         closebtn.innerHTML = 'Close';         this.square.appendChild(closebtn);          document.body.appendChild(this.overdiv);         document.body.appendChild(this.square);     }     this.popIn = function() {         if (this.square != null) {             document.body.removeChild(this.square);             this.square = null;         }         if (this.overdiv != null) {         document.body.removeChild(this.overdiv);         this.overdiv = null;         }      } } 

    Now the HTML page, using the JavaScript file:

    <html>    <head>     <script type='text/javascript' src='NAME OF THE PAGE!.js'></script>     <style>         div.overdiv { filter: alpha(opacity=75);                       -moz-opacity: .75;                       opacity: .75;                       background-color: #c0c0c0;                       position: absolute;                       top: 0px;                       left: 0px;                       width: 100%; height: 100%; }          div.square { position: absolute;                      top: 200px;                      left: 200px;                      background-color: Menu;                      border: #f9f9f9;                      height: 200px;                      width: 300px; }         div.square div.msg { color: #3e6bc2;                              font-size: 15px;                              padding: 15px; }     </style>   </head>   <body>     <div style='background-color: red; width: 200px; height: 300px;                 padding: 20px; margin: 20px;'></div>      <script type='text/javascript'>         var pop = new myPop();         pop.popOut('Jose leal');     </script>   </body> </html> 

    Hope that this can help.

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

Sidebar

Ask A Question

Stats

  • Questions 67k
  • Answers 67k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Chess from MS Research is great (http://research.microsoft.com/en-us/projects/chess/) It detects Concurrency… May 11, 2026 at 11:43 am
  • added an answer From http://www.php.net/manual/en/language.types.boolean.php, it says that an empty array is considered… May 11, 2026 at 11:43 am
  • added an answer My guess is that because your class is inheriting from… May 11, 2026 at 11:43 am

Related Questions

I need to replace our Ajax Modal Popup controls with a JavaScript equivalent. We
I need to replace character (say) x with character (say) P in a string,
I need to replace all WinAPI calls of the CreateFile, ReadFile, SetFilePointer, CloseHandle with
I need to replace the contents of a node in an XElement hierarchy when
I need to replace the standard Overflow function in a ToolStrip to a More...
I need to replace one of the pre-defined window classes all across Windows. For
I have a string. I need to replace all instances of a given array
I'm writing a SQL query in SQL Server in which I need to replace
I have a word : [lesserthen] , that I need to replace with <
I need help to replace all \n (new line) caracters for in a String,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.