Friday, November 16, 2007

RJS is Supported Now

I'm sorry that I enable jq4r support RJS so lately. From the revision #27 on, you can use some (not all) RJS methods while you use jq4r. For instance,


  • jquery_insert_html(position, id, *htmls)


    You can insert html by using this method. The first parameter specifies the insertion position like 'before', 'after', 'wrap', and so on. For more details, please refer the jQuery/Manipulation's documentation.

  • jquery_replace_html(position, id, *htmls)


    This method replace the html by using the jQuery.html function.

  • jquery_replace(id, *htmls)


    It will replace the specified element with the *html.

  • jquery_remove(*id_list)


  • jquery_hide(*id_list)


  • jquery_show(*id_list)


  • jquery_toggle(*id_list)


  • jquery_visual_effect(name, id, options)



Please try the HEAD revision of jq4r and feel free to send me any suggestion if you find something wrong out. :-)

No comments: