JQuery Conflicts with Primefaces? [duplicate]

I had the same problem as described in the question. That’s why I came up with the following solution: Include the primefaces built-in jQuery library (currently 1.4.1) as including an own jQuery library leads to CSS formatting problems. Adding the target=”head” attribute allows for specifying the tag everywhere – e.g. when using templating you not … Read more

Why is jqXHR.responseText returning a string instead of a JSON object?

I had the same problem. I returns a string because it formulated from an exception. E.g. I use a kernel listener with serialization to json on my Symfony2 project. Which is correct for proper REST headers. Anyway, just parse it; this works for me: $.ajaxSetup({ “error”: function(jqXHR, status, thrownError) { alert(‘error’); var responseText = jQuery.parseJSON(jqXHR.responseText); … Read more

parsererror after jQuery.ajax request with jsonp content type

JSONP requires that the response be wrapped in some kind of callback function, because it works by injecting a script tag into the document as a mechanism to load data from another domain. Essentially, what happens is a script tag gets dynamically inserted into the document like so: <script src=”http://the.other.server.com/foo?callback=someFn”></script> callback is dependent on the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)