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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:22:59+00:00 2026-05-26T19:22:59+00:00

In fact, I edited the sample HTML basic template from author Eric Martin and

  • 0

In fact, I edited the sample HTML basic template from author Eric Martin and it dw.
How come? Here is the file: http://communitychessclub.com/basic/index.html and all needed files are clearly referenced correctly.

This the HTML to invoke the simplemodal:

<a href='#' class='basic' data-width="586" data-height="100">Demo</a>

This is the target div to popup:

<!-- modal content -->
<div id="basic-modal-content">
<p class="hyphenate"><span class="bold">George Carlin explains:</span> "Quality. Values. Style. Service. Selection. Convenience. Economy. Savings. Performance. Experience. Hospitality. Low rates. Friendly service. Name brands. Easy terms. Affordable prices. Money back guarantee. Free installation. Free admission. Free appraisal. Free delivery. Free alterations. Free home trial. And free parking.</p></div>

This is the javascript to process the modal:

<script>
jQuery(function ($) {
$('#basic-modal .basic').click(function (e) {
    var hrefval= $(this).attr("href"); 
    var $this = $(this); 
    var height_len = $this.data("height");  
    var width_len = $this.data("width"); 

$('#basic-modal-content').modal(

containerCss:{
        backgroundColor:"#ccc",
        borderColor:"#ccc",
        border:5,
        padding:5,
        height:'height_len+20',
        width:'width_len+20'
        });
return false;
});
});
</script>
  • 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-05-26T19:23:00+00:00Added an answer on May 26, 2026 at 7:23 pm

    Arent you missing a {} cus this gives an error:

    missing ) after argument list
    [Afbreken op deze fout] containerCss: { 
    

    It should be something around containerCss like:

    jQuery(function($) {
        $('#basic-modal .basic').click(function(e) {
            var hrefval = $(this).attr("href");
            var $this = $(this);
            var height_len = $this.data("height");
            var width_len = $this.data("width");
    
            $('#basic-modal-content').modal(
            {
                containerCss: {
                    backgroundColor: "#ccc",
                    borderColor: "#ccc",
                    border: 5,
                    padding: 5,
                    height: height_len+20,
                    width: width_len+20
                }
            });
            return false;
        });
    });
    

    Update how to use multiple

    <a href='#' class='basic' data-connection="dialog1" data-width="586" data-height="100">Demo</a>
    <a href='#' class='basic' data-connection="dialog2" data-width="586" data-height="100">Demo</a>
    

    The Boxes

    <!-- modal content -->
    <div id="dialog1"><p class="hyphenate">BOX 1</p></div>
    <div id="dialog2"><p class="hyphenate">BOX 2</p></div>
    

    The script

    jQuery(function($) {
        $('#basic-modal .basic').click(function(e) {
            var hrefval = $(this).attr("href");
            var $this = $(this);
            var height_len = $this.data("height");
            var width_len = $this.data("width");
            var id = $this.data("connection")
    
            $('#' + id).modal(
            {
                containerCss: {
                    backgroundColor: "#ccc",
                    borderColor: "#ccc",
                    border: 5,
                    padding: 5,
                    height: height_len+20,
                    width: width_len+20
                }
            });
            return false;
        });
    });
    
    • 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 Cycle plugin. The page in question is here: http://harrisonfjord.com/folio/test.html The
Edited Post These are the new functions that I have created using your template
My fact table looks like this yesterday a yesterday a yesterday a yesterday b
In fact, my question concerns an algorithm. I need to be able to attach
The fact that Delicious has two sets of API authentications one with username and
I really like the fact that Microsoft has taken a commitment to bring MVC
As a matter of fact you have smth like /java/src and /java/test . But
Other than the fact that ASP.NET MVC Web Application has more clarity in its
Let's in fact generalize to a c -confidence interval. Let the common rate parameter
I'm designing the Fact and Dimension tables for a data warehouse currently using SQL

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.