Tag: prettyphoto

uploadify with prettyPhoto:uncaught exception:调用StartUpload失败

我们一直在使用uploadify进行图片上传,使用prettyPhoto在我们的Rails应用程序中在lightbox上显示图像。 如果单独使用,两者都很好。 现在我们想在dropbox上显示uploadify控件,就像dropbox一样,但如果与prettyPhoto一起使用它会开始尖叫。 这是使用uploadify和prettyPhoto的示例html。 My Uploadify Implementation $(function() { $(‘#file_upload’).uploadify({ ‘swf’ : ‘uploadify.swf’, ‘uploader’ : ‘uploadify.php’ // Your options here }); $(‘#closeme’).live(‘click’, function() { $.prettyPhoto.close(); return false; }); $(“a[rel^=’prettyPhoto’]”).prettyPhoto(); }); popop This is inline content opened in prettyPhoto. 在这里,您将看到弹出窗口的链接,点击链接,它会在灯箱上显示uploadify控件。 然后,您从磁盘中选择图像以上载到服务器。 选择图像后,我面临两个问题: 1)获取Error: uncaught exception: Call to StartUpload failed在FF和Crome上Error: uncaught exception: Call to StartUpload failed javascript错误 […]

jQuery prettyPhoto – 设置灯箱的最大高度和宽度

我已经安装了漂亮的照片jQuery插件,但我需要设置灯箱的最小和最大高度和宽度,似乎无法让它工作。 我已经尝试更改prettyPhoto.css文件并且没有运气,我尝试查看prettyPhoto.js文件并且无法确定如何实际设置尺寸!? 任何人都知道如何做到这一点?

Prettyphoto – 如何将唯一参数传递给回调函数

无论如何我在prettyphoto中将参数传递给回调函数 这是我目前的设置 $(文件)。就绪(函数(){ $( “一个[相对^ = ‘prettyPhoto’]”)。prettyPhoto({ 回调:function() { $ .post(’/ course / close-video’,{topic_id:’13’}); } }); }); <a href="/course/play-video/topic_id/ topic_id;?>?iframe = true&width = 470&height = 340“rel =”prettyPhoto“title =” TOPIC_NAME;?>“> ”/> 注意:我已经在回调中将主题值硬编码为13 – 但这应该基于单击哪个链接来实现。 页面中有多个href标签,每个标签都有一个唯一的topic_id 那么如何将该唯一的topic_id传递给回调函数 非常感谢