jQuery
jQuery for DicksonUI
##Features
Lightweight Footprint
Only sent around 87kb (minified). python wheel is around 65kb python package is around 35kb(Tar archive - gzip compressed)
CSS3 Compliant
Supports CSS3 selectors to find elements as well as in style property manipulation
Cross-Browser
Chrome, Edge, Firefox, IE, Safari, Android, iOS, and more
What is jQuery?
jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript. thia is python package of jQuery for DicksonUI
Other Related Projects
Coming soon(python packages)
jQueryUI jQuery Mobile QUnit Sizzle
Resources
- jQuery Core API Documentation
- jQuery Learning Center
- jQuery Blog
- Contribute to jQuery
- About the jQuery Foundation
- Browse or Submit jQuery Bugs
A Brief Look
Import
import jquery
from dicksonui import Application, window
app = Application() # make Application
jquery.install(app) # install jquery
mywindow = window() # make window
app.add(mywindow) # add window to app
# $ is invalid name for python so S used
S=jquery.jQuery(mywindow) # add jquery to window
mywindow.show() # show window
# think S as $ n jquery
DOM Traversal and Manipulation
Get the <button> element with the class 'continue' and change its HTML to 'Next Step...'
S( "button.continue" ).html( "Next Step..." )
Event Handling
Show the #banner-message element that is hidden with display:none in its CSS when any button in #button-container is clicked.
from dicksonui.builtins import setCall, function
hiddenBox = S( "#banner-message" )
S( "#button-container button" ).on( "click", function("event") (
setCall(hiddenBox.show)
))
Ajax
Call a local script on the server /api/getWeather with the query parameter zipcode=97201 and replace the element #weather-temp's html with the returned text.
from dicksonui.builtins import setCall, function, code
S.ajax({
"url": "/api/getWeather",
"data": {
"zipcode": 97201
},
success: function( "result" ) (
setCall(S( "#weather-temp" ).html)(
code('"<strong>" + result + "</strong> degrees"')
)
)
});
Copyright 2020 The jQuery Foundation. jQuery LicenseWeb hosting by Digital Ocean | CDN by StackPath
Metadata
Release files for PyjQuery 3.5.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyjQuery-3.5.1.1.tar.gz | 36.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyjQuery-3.5.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 103.5 kB
Release files / PyjQuery-3.5.1.1.tar.gz
| Download URL | PyjQuery-3.5.1.1.tar.gz |
|---|---|
| Size | 36.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c4ebca948c3af8dd28b54365ff90af7628d4e2873d159d292856f5d65dee05f
|
|
BLAKE2b-256 checksum How to use checksums |
650919ca8a66a1095f4a0633a608ee69911f3b38df636d8d7263d0bb0a495e60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/2.7.16
|
Release files / PyjQuery-3.5.1.1-py2.py3-none-any.whl
| Download URL | PyjQuery-3.5.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 67.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a0469a5ae525c62bd752f851911d86c475d8038ea85eb2c4b1c00fd17463fc3e
|
|
BLAKE2b-256 checksum How to use checksums |
bcc95449782f8f1f6dfec5dc88f14756f904eafa08ae04c4fe2d54927a666eb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/2.7.16
|