4 Replies Latest reply on Aug 25, 2011 5:46 AM by ionutbarau

    Access is denied for extendedDataTable.js.faces IE 7

    ionutbarau

      Hi guys,

       

      After testing my app on IE 7 I get Access is denied for extendedDataTable.js.faces. ExtendedDatatable has a wierd behaviour, no scroll, no selection and after a couple of refresh the header borderes are messed up.Everything is fine on IE8 and Firefox. I am using Richfaces 4 and WAS 7. Any ideas are appreciated. Thanks a lot !

        • 1. Re: Access is denied for extendedDataTable.js.faces IE 7
          ionutbarau

          Ok got it

           

          It was due to a conditional css statement.By the way does somebody know how to add a correct conditional css statement in jsf ? It does not work like this:

           

           

          <!--[if lte IE 7]>

           

          <h:outputStylesheet name="/css/iestyle.css"/>

           

          <![endif]-->

           

          Neither using link tag..

           

          Thank you

          • 2. Re: Access is denied for extendedDataTable.js.faces IE 7
            ilya_shaikovsky

            I think you could use pure client side solution for that:

             

            <script>

            function loadStylesheet(shref){

                      var fileref=document.createElement('link');

                      fileref.setAttribute("type","text/css");

                      fileref.setAttribute("rel","stylesheet");

                        fileref.setAttribute("href", shref);

                      document.getElementsByTagName("head")[0].appendChild(fileref);

            }

              if (checkForIE7Version()){

                                loadStylesheet('ie7.css');

                      }else{

                                loadStylesheet('anyOther.css');

              }

             

            </script>

             

            checkForIE7Version method could use http://api.jquery.com/jQuery.browser/ - it should perfectly fit your needs. 

            • 3. Re: Access is denied for extendedDataTable.js.faces IE 7
              ionutbarau

              Hi, thanks for your response

               

              I already tried this solution with just pure javascript, whithout jquery. I didn't find a way to include jquery in my page. As far as i know jquery is bundled inside richfaces, so there is no need to add jquery.js to my project. I have tried adding <h:outputScript  name="jquery.js"/> as i found out on google but it doesn't work.Tried <rich:jQuery> tag but i did not succed attaching a javascript function (from js file) to it. Another thing is that even though i did it with javascript, in internet explorer i get a "Not implemented " error. On firefox works great.. So how can I include jquery? I thing i will need a lot of javascript in my project, so jquery is the way to go

               

              Thanks

              • 4. Re: Access is denied for extendedDataTable.js.faces IE 7
                ionutbarau

                Ok. got it

                 

                it was the path

                The correct way is <h:outputScript name="resource:///org/richfaces/renderkit/html/scripts/jquery/jquery.js"/>