1 Reply Latest reply on Dec 1, 2009 1:34 PM by sait

    jQuery Media Plugin , RichFaces and Seam

    sait

      Hi,


      jQuery Media Plugin supports unobtrusive conversion of standard markup into rich media content. I want to use jQuery Media Plugin with RichFaces. Has anyone have an experience or ideas?

        • 1. Re: jQuery Media Plugin , RichFaces and Seam
          sait

          I solved by myself :)


          Just add this code between head tags




          <a4j:loadScript src="resource:///styles/jquery.media.js" />



          Then you can use JQuery Media Plugin in your pages as shown below




          <a id="media" href="mariobros.avi">Movie#1</a>
          
          <rich:jQuery selector="#media"
          
            query="click(function(){
                          
               var answer = confirm('Do you want to watch?');
                   
                      if (answer){
                      jQuery(this).media();
                          return false;
                      }
                      else{
                          return false;
                      };
            }
          )" />