-
1. Re: Safari not liking <a4j:ajax/> control
nbelaevski Jul 6, 2011 6:54 PM (in response to mickelback)Hi Mick,
I've just checked showcase example for a4j:ajax - both demos work fine. Can you please check if it's reproducible for you?
Also including additional jQuery version can cause script conflicts and various JS errors, try using jQuery that is bundled with RichFaces.
-
2. Re: Safari not liking <a4j:ajax/> control
mickelback Jul 21, 2011 2:08 PM (in response to nbelaevski)Hey Nick,
Thanks for taking the time to look at this.
To answer you question, yes the RichFaces Showcase works for me as well.
I'm trying to understand where a script conflict could exists where my use case works fine in all other browsers. Also, in my local jQuery code, I've made the changes to prevent conflicts via the following code:
// Use jQuery via $j(...) due to the conflict between RichFaces Prototype.js libs.
var $j = jQuery.noConflict();
So all of my jQuery calls are made via $j(). Also, (not 100% on this part). But when I look at the source from the rendered page in the browser, the a4j:ajax calls are being rendered as the following:
<a id="registerForm:j_idt11" href="#" onclick="RichFaces.ajax(this,event,{"parameters":{"javax.faces.behavior.event":"action"} ,"sourceId":"registerForm:j_idt11","begin":"$j('.jqmDialog').jqmHide();"} );return false" class="jqmdX jqmClose">
<img src="/myNPP/javax.faces.resource/cancelSearch.gif.xhtml?ln=images" style="border: 0 none;">
</a>
The error I'm getting in Safari is: 'ReferenceError: Can't find variable: RichFaces'. So I don't know if it is having an issue with the 'RichFaces.ajax(this,event....) part or not. It feels as if there is some library Safari didn't load or can't see. Again, I'm not 100% nor do I know of any way of proving that.
Anyhow, I hope that information helps with a possible solution. Any advice is much much appreciated.
Thanks again!