Vanilla 2
Discussions
Activity
Sign In
prettyPhoto support
using prettyphoto[ajax]
zenon
June 2011
Hi, I haven't understood on how to use prettyphoto with ajax request:
suppose my jquery function is
function ajax_call(param)
{
var url2Call = 'url2call';
$.ajax({
type: "POST",
url: url2Call,
data: 'param='+param,
dataType: "html",
beforeSend: function(xhr) {
xhr.setRequestHeader("Ajax-Request", "true");
},
success: function(response) {
// this is where I output response
},
failure: function(response) {
}
});
return false;
}
how to use prettyphoto[ajax] ?
I can't understand how href should be, because usually I call a js function.
Please note I'm using CodeIgnitier, but I don't know if could be related to any problem.
Thanks in advance for any response
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
4,649
General
1,277
Showoff your stuff!
13
prettyComments support
18
prettySociable support
40
WP-prettyphoto support
290
prettyCheckboxes support
19
prettyGallery support
118
prettyMobile support
12
prettyPhoto support
2,833
prettyLoader support
16
INK - Support forum
13
Powered by Vanilla