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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:02:26+00:00 2026-06-15T09:02:26+00:00

I am using: $(<div/>, { id: overlay, class: web_dialog_overlay }).appendTo(body); $(<div/>, { id: dialog,

  • 0

I am using:

$("<div/>", {
id: "overlay",
class: "web_dialog_overlay"
}).appendTo("body");
$("<div/>", {
id: "dialog",
class: "web_dialog",
html: "<div class='d_title'>Server error! Try again later</div><div class='button ok' id='ok'>Ok</div>"
}).appendTo("body");
$('#overlay').show();
$('#dialog').fadeIn(300);

This code is working perfectly in google chrome, firefox and opera. But not working in internet explorer.

I am getting

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; Tablet PC 2.0)
Timestamp: Mon, 3 Dec 2012 13:26:49 UTC


Message: Expected identifier, string or number
Line: 335
Char: 1
Code: 0
URI: http://localhost/signup

The 335 line is id: "overlay",

What to do? Thanks in advance.

  • 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-15T09:02:27+00:00Added an answer on June 15, 2026 at 9:02 am

    Make sure you surround the class property name in the object with quotes since it is reserved for future use. https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Reserved_Words

    $("<div/>", {
        id: "overlay",
        "class": "web_dialog_overlay"
    }).appendTo("body");
    
    $("<div/>", {
        id: "dialog",
        "class": "web_dialog",
        html: "<div class='d_title'>Server error! Try again later</div><div class='button ok' id='ok'>Ok</div>"
    }).appendTo("body");
    
    $('#overlay').show();
    $('#dialog').fadeIn(300);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jQuery code below to launch an overlay div and it works
Is there a way to overlay/overlap two or more images using one div only?
i'm using div content editable html to get value from input keyboard to post
i am creating div using DOM Element as phototab = document.createElement('div'); phototab.setAttribute('class', 'phototab fleft');
I'm using the following code to make a div overlay. If the links login
Using the following code: <a href=/someurl> <div class='mydiv' onMouseOver=document.getElementById('myid').sendEvent('play'); onMouseOut=document.getElementById('myid').sendEvent('stop');> <div id='myid'></div> <script type=text/javascript>
I have a basic overlay setup using css/html/jquery and it goes like this: <a
I'm using the overlay jquery from here: http://flowplayer.org/tools/overlay/index.html Within my overlay I have a
I have a div containing form elements, and I'm using an invisible overlay mask,
I have the following html code: <div id=gridStage> <div id=point1 class=point rounded-corners> </div> </div>

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.