var images = new Array('images/fullscreen/1.jpg','images/fullscreen/2.jpg','images/fullscreen/3.jpg');
var titles = new Array('Title 1','Title 2','Title 3');
var descriptions = new Array('Description 1','Description 2','Description 3')
No title, no description
It tells me: Error: itemSrc.match is not a function
Source: file:///C:/Users/Jay/Downloads/prettyPhoto_uncompressed_2.5.6/js/jquery.prettyPhoto.js
Line: 534
Jay,
I had simliar issue but i fixed by using angle brackets instead of array and by wiring up my click event for the anchor tag using jquery in document.ready
I've the same problem, when I use :
function widget_success_submit(responseText, statusText) {
$.prettyPhoto.open('responseText','Title','Description');
}
I'm getting the same error :
$.prettyPhoto.open is not a function
//////////////////////
// Edited
//////////////////////
I think you should call prettyPhoto at least one time so as u can use the API.
so, just add :
$("a[rel^='prettyPhoto']").prettyPhoto();
then u can use the API, at least it works fine for me in this way