devraid / jquery.modal Goto Github PK
View Code? Open in Web Editor NEWA Modal Window System plugin.
License: MIT License
A Modal Window System plugin.
License: MIT License
It would be interesting something like this:
$('css-path').spModal('ui', function () {
// this function is executed immediately after initialization occurs
// 'this' is an instance of $.spModalUi
});
$.spModal('error', title, message);
The 'id' or the 'name attributes are required. If the 'name' attribute is missing, the $.spModalUpload class should take the 'id' attribute instead.
$.spModal('confirm', title, message, function () {
// accept
});
```JavaScript
It would be interesting having a text an additional (an optional) button to select the error messages.
The focus should be placed in the last button of the modal message dialog. For example:
var msg = new $.spModalMessage('title', 'message');
msg.addButton('Accept', function () {
// ...
});
msg.addButton('Cancel', functoin () {
// the focus should be here
});
This is an interesting i18n plugin:
https://github.com/wikimedia/jquery.i18n
$.spModalDialog should return the added buttons
The height of a modal message dialog shouldn't exceed the height of the available window.
The message is collapsing white spaces. It shouldn't.
Alert dialog: $.spModal('alert', title, message);
$.spModal('upload') should accept 'type' parameter.
$.spModalUi should accept css selectors as parameter.
$.spModal('get|post|upload') should accept only the next parameters:
url, [data], [type]
$.spModal('upload') should return a document according with the document type.
$.spmodal('upload', inputFile, 'document.xml').done(function (data) {
// data should be an XML document, not a string
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.