-
1. Re: Access is denied for extendedDataTable.js.faces IE 7
ionutbarau Aug 22, 2011 9:43 AM (in response to 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 Aug 23, 2011 11:14 PM (in response to ionutbarau)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 Aug 25, 2011 4:49 AM (in response to ilya_shaikovsky)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 Aug 25, 2011 5:46 AM (in response to ionutbarau)Ok. got it
it was the path
The correct way is <h:outputScript name="resource:///org/richfaces/renderkit/html/scripts/jquery/jquery.js"/>