Git Product home page Git Product logo

simplemodal's People

Contributors

alecrust avatar dmytromarch avatar juanparati avatar plasm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simplemodal's Issues

Scrollbar(s) for embedded iframe

How can I enable scrollbars for embedded iframes. Right now, I can use the scrollwheel on the mouse (assuming the mouse is equipped with one), but the plugin doesn't react to any of the standard coding for scrollbars, i.e.:

src="..." style="overflow-x: hidden;" width="800" height="600" align="middle" frameborder="0" scrolling="auto"

With working scrollbars, this script would become even better than it already is!

Thanks!

Change id to class

i am implementing Simple Model in loop so we have multiple model with dynamic way so the problem is when i assign id in loop and click on first it work perfectly but when i click on second link the id is same so its not working because of id. is there any way to use class instead of id.
$("modal-ajax").addEvent("click", function(e){
can we write ?
$(".modal-ajax").addEvent("click", function(e){
here is site when i use it click on result link i-e 2-1,3,0
http://ucgoal.com/

Mootools & Jquery Conflict

I am using Mootools and jQuery in of my project and the simple modal doesn't work after integrating jQuery.

Your help is highly appreciable.

cheers,

hi, i need help

Write a complete installation instructions, please
Be grateful

License info?

Would be good if you could include the license type in the readme.
Thanks!

onClose ????

i looked into the code but i can't find where I can handle close event. It just destroy the element without sending anything....

Force user to click button

Hi! I need the dialog can not be closed and the user forces gives a click button, how can I disable the overlay click to close the dialog and the X to close the top right?

Thank you for this project!!

Alex

Hard for users to download zip from the site

The move modal to download the zip on the site http://simplemodal.plasm.it/ might be cute, but it took me around 10 seconds to work out what was going on, and how to download the plugin. Most people would probably close the page by that time. That button you have to move doesn't look like a modal so you expect that just drag dropping it will remove it.

Ajax modal won't work

jQuery("myElement").addEvent("click", function(){
id = jQuery(this).attr('rel');
var SM = new SimpleModal({"width":600});

  SM.addButton("Cancel", "btn");
  SM.show({
    "model":"modal-ajax",
    "title":"Title",
    "param":{
      "url":"http://mysite.com/bla/"+id
    }
  });

});

I get rel attribute (post numbers from my blog) and then add obtained id to the url of handler page. "Loading failed"...

Custom Buttons

Is there any reason why buttons I am placing within the body of the modal would not work?

I have been trying for days to figure this out, and now I am wondering whether it is to do with the simple modal plugin.

All I am trying to do at the moment is alert when the button within body is clicked, however my event handler is not firing.

The really weird thing, that points me toward there being an incompatibility with the plugin, is that if I just copy and paste the HTML generated from the plugin on the page, and put it back in manually, then rerun the page (obviously not generating the modal via the plugin this time) my event handler works perfectly.

Thanks for any help you can provide me,
Duncan

Responsive?

You could always add a config - responsive: true

that would essentially take the configured width make that the max-width, and add width @ 95% (for an edge)

.onRequestComplete() not work.

After change the order of this lines, works fine:

            $('simple-modal').getElement(".contents").set("html", responseHTML);
            param.onRequestComplete();

Alert integration does not work.

Hello,

Sorry I'm a new user of this component.
I dont know why i use the simple modal code, i don't have the right result (please see my attachment).
my buttons doesnt appear, and the windows is left-aligned.
Please could you help me ?
I don't understand why i have this bad result.
Please see my following code :

<html>
<head>
<title>Applications SFL</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1252" />
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine&amp;v1" />
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz" />
<link rel="stylesheet" href="../../Scripts/plasm-simplemodal/Source/assets/css/simplemodal.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="../../Scripts/plasm-simplemodal/Demos/assets/javascript/mootools-core-1.3.1.js" type="text/javascript" charset="utf-8"></script>
<script src="../../Scripts/plasm-simplemodal/Demos/assets/javascript/mootools-more-1.3.1.1.js" type="text/javascript" charset="utf-8"></script>
<script src="../../Scripts/plasm-simplemodal/Source/simple-modal.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="../../Scripts/tab/general.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="../../style/style.css" />
<script src="../../Scripts/jquery/2.1.3/jquery.min.js"></script>
<script src="../../Scripts/tab/tabs.js" type="text/javascript" charset="utf-8"></script>
<link rel="shortcut icon" href="http://sfl1-sv00069/Info/Style/favicon.ico" type="image/x-icon" />
<script>
window.addEvent("domready", function(e){
document.id("BoutonSupprimer").addEvent("click", function(){
var Ref = document.getElementById("Reference").innerHTML;
var Four = document.getElementById("Fournisseur").innerHTML;
var SM = new SimpleModal({"btn_ok":"Alert button"});
SM.show({
"title":"Title",
"contents":"Your message..."
});
});
})
</script>
</head>

screenhunter_7

[enhancement] Add missing bower.json.

Hey, maintainer(s) of plasm/simplemodal!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library plasm/simplemodal is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "plasm/simplemodal",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

jQuery Alternative

Hello,

This is not an actual issue, so sorry about posting here, but I can't find any other place.

I love the way this modal looks and acts, but I don't know MooTools and I also used jQuery on this page that I want to include your modal.

Is is that hard to convert this into a jQuery modal?

Did anybody suggested that before? I think so!

This will be allot more used if it was jQuery based.

Any arguments why can't be done with jQuery?

If none, maybe I will try to convert-it!

Great design guys!

Thank,
Adrian

AMD support

The great feature will be adding RequireJS/AMD support!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.