public
Description: jQuery based Framework for Red
Homepage:
Clone URL: git://github.com/julius/red_query.git
julius (author)
Fri Oct 16 06:23:53 -0700 2009
commit  d9d0806da6d7dc4d5155321598b92d7a63e4f8ff
tree    72d01bd1cd30542984fb77af2b1250ccda84e56a
parent  bbe7d9ef65e2d8361fba9faadd4cbe8d502d58e8
name age message
file README.rdoc Loading commit data...
directory lib/
file red_query.rb
README.rdoc

jQuery based Framework for Red

Provides DOM, Ajax, JSON functionality for Red. Heavy usage of jQuery. Its been developed for my personal fork of Red: github.com/julius/red

Usage

Of course you need jQuery and your own source. In addition you need a little startup code.

  <script src="jquery.js"></script>
  <!-- red_query startup code -->
  <script type='text/javascript'>
    jQuery.noConflict();
    jQuery(document).ready(function(){
      if (typeof c$Document !== "undefined")
            c$Document.m$ready_bang();
      else
            throw "BIG problem with Red code";
    });
  </script>
  <script src="your_red_file.js"></script>

Your main Red file should

  require 'red_query'

And your compilation should include

  red -I/path/to/red_query your_red_file