简体   繁体   English

如何在Spring-Jquery应用程序中使用ColorBox示例?

[英]How to Use ColorBox Example in Spring-Jquery Application?

In my Spring Application when click hyperlink Popup will Open. 在我的Spring应用程序中,单击超链接时,弹出窗口将打开。 in that i'm choosing ColorBox Example 在那我选择ColorBox示例

Actually in my Spring Application return Jsp file and here is my sample code. 实际上,在我的Spring Application返回Jsp文件中,这是我的示例代码。

function edit_onClick() {
$.ajax({
    url : "demo/editEvent",
    success : function(data, textStatus, jqXHR) {
        // So here is my Result coming on 'data'
        // How to give this data as ColorBox?????  
    }
});
}

Actually i'm checking all the code in colorbox plugin but i'm unable to find it.. 其实我正在检查colorbox插件中的所有代码,但是我找不到它。

So please help me anyone Experienced with colorbox Plugin.. how to give my response as colorbox?? 所以,请有经验的colorbox插件的人帮帮我。

Now You can try like this.. 现在您可以尝试这样。

You can add colorbox plugin and now add following code... 您可以添加colorbox插件,现在添加以下代码...

function edit_onClick() {
$.ajax({
    url : "demo/editEvent",
    success : function(data, textStatus, jqXHR) {
       $.colorbox({html:data});
    }
});
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM