opal-jquery provides DOM access to opal by wrapping jQuery (or zepto) and providing a nice ruby syntax for dealing with jQuery instances. opal-jquery provides an Element class, whose instances are toll-free bridged instances of jQuery objects. Just like ruby arrays are just javascript arrays, Element instances are just jQuery objects. This makes interaction with jQuery plugins much easier. Also, Element will try to bridge with Zepto if it cannot find jQuery loaded, making it ideal for mobile applications as well. The request is actually triggered inside the HTTP. get method, but due to the async nature of the request, the callback and errback handlers can be added anytime before the request returns.

Features

  • jQuery wrapper for Opal
  • Install opal-jquery from RubyGems
  • Include it in your Gemfile for Bundler
  • You can run the specs in any web browser
  • You will need phantomjs to run the specs outside the browser
  • opal-jquery also supports zepto

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Opal jQuery

Opal jQuery Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Opal jQuery!

Additional Project Details

Programming Language

Ruby

Related Categories

Ruby Libraries

Registered

2023-10-02