stingray中modal window
自定义内容modal window
//show window for D&B suggestions
function showDBMatch(resp) {
console.log('xxx: ', resp);
html = '';
for (var i = 0; i < resp.length - 1; i++) {
html += '<div class="match" style="" title="Please click to select this match.">'
html += ' <span>' + resp[i].DUNS + '</span>'
html += ' <br>'
html += ' <span>' + resp[i].BusinessName + '</span>'
html += ' <br>'
html += ' <span>' + resp[i].YearStarted + '</span>'
html += ' <br>'
html += ' <span>' + resp[i].SIC + ': ' + resp[i].SIC_Desc + '</span>'
html += ' <br>'
html += '</div>'
}
html += '<div style="clear:both"></div>'
html += '<div style="margin-top: 20px; text-align: left; margin-left: 10px;">'
html += ' <button id="DBNoMatchBtn">None of these match</button>'
html += '</div>'
var $dialogW = $("<div id='DBBox' style=''></div>").html(html).dialog({
title: 'Business Match(es)',
width: 660,
height: 300,
modal: true,
autoOpen: false,
close: function(ev, ui) {
$(this).dialog("destroy");
},
// buttons: {
// Cancel: function() {
// $(this).dialog("destroy");
// return false;
// }
// }
});
$dialogW.dialog("open");
// bind btn click
$('#DBNoMatchBtn').die().live('click',function(){
$dialogW.dialog("destroy");
});
//bind match select
$('#DBBox .match').die().live('click', function(){
console.log('match: ',$(this).html());
$('#PQ_DUNS_No').val($(this).find('span').eq(0).text())
$('#PQ_MemberName').val($(this).find('span').eq(1).text())
$('#PQ_YrBizStart').val($(this).find('span').eq(2).text())
$('#PQ_BusinessIndustry').val($(this).find('span').eq(3).text())
$dialogW.dialog("destroy");
});
}
stingray中modal window的更多相关文章
- jquery中的$(document).ready()、JavaScript中的window.onload()以及body中的onload()的区别
body中的onload()和window.onload以及$(document).ready()的区别: 1.前两者都表示当页面加载元素(包括图片等信息)完毕后执行的操作,而且两者在各种浏览器中 ...
- JavaScript中,window.opener是什么?window.parent和window.opener有啥区别?
来自CSDN的问答: window.opener是什么啊? ++++++++++++++++++++++++++++++++++++++++++++++++++ 弹出本窗体的句柄 比如你想点一个按钮直 ...
- Jquery中$(document).ready()与传统JavaScript中的window.onload方法的区别(2016/8/3)
Jquery中$(document).ready()的作用类似于传统JavaScript中的window.onload方法,不过与window.onload方法还是有区别的. 1.执行时间 ...
- 遇到问题-----JS中设置window.location.href跳转无效(在a标签里或这form表单里)
问题情况 JS中设置window.location.href跳转无效 代码如下: ? 1 2 3 4 5 6 7 8 <script type="text/javascript&quo ...
- 细说javascript 中的 window.open() 参数设置
今天遇到一个问题,就是要用javascript中的window.open()打开一个新的网页,而且新打开的网页要在原来网页的基础之上,在查了一些资料之后,找到里一下方法:(其中,url 为链接的地址) ...
- jQuery 1.4.4 中 function( window, undefined ) 写法原因
读 jQuery 1.4.4 版本代码的时候,发现下面的写法: (function( window, undefined ) { ... // code goes here })(window); w ...
- (转载)JavaScript中的Window窗口对象
(转载)http://www.ijavascript.cn/jiaocheng/javascript-window-65.html 例子: <html> <head> < ...
- 关于 jQuery中 function( window, undefined ) 写法的原因
今天在读 jQuery 源码的时候,发现下面的写法: (function(window,undefined){ ...// code goes here })(window); window 作为参数 ...
- JavaScript中的window对象
JavaScript中的window对象:http://www.cnblogs.com/kissdodog/archive/2013/01/01/2841464.html
随机推荐
- C语言之基本算法24—黄金切割法求方程近似根
//黄金切割法! /* ================================================================ 题目:用黄金切割法求解3*x*x*x-2*x* ...
- SharePoint 压缩打包文件代码分享
前言 最近碰到这样一个需求,用户需要批量打包下载sharepoint文档库中的文档,所以,就需要开发一个打包下载的服务. 然后,把打包的代码分享给大家,也许会有需要的人. static void Ma ...
- XVFB实现selenium在linux上无界面运行安装篇
selenium在linux上无界面运行,其实是非常简单的.具体的方法有使用HtmlUnitDriver或者PhantomJSDriver,有时间我会写写关于这两个东东的文章,其实基本和ChromeD ...
- Android之仿心跳动画实现
// 按钮模拟心脏跳动 private void playHeartbeatAnimation() { AnimationSet animationSet = new AnimationSet(tru ...
- composer - No business network has been specified for this connection 解决方案
I have installed hyperledger composer locally. But on localhost it gives error : Error : Error tryin ...
- 连接MSSQL2008 Express
(1)打开Manage Studio. (2)click on the .\sqlexpress, select property, click security, make sure use mi ...
- IIS7增加mine类型,以便可以访问apk
1.打开IIS 2.找到mine类型,单击右边的添加 3.输入apk的配置 application/vnd.android-package-archive .这样,用户就可以直接访问apk了
- window API一天一练之邮槽
邮槽通信的进程分为服务端和客户端.服务端创建邮槽,客户端通过邮槽名打开邮槽,获得句柄后可以向邮槽写数据. 邮槽通信是单向通信,只能由客户端向服务端发送数据.下面来看看有关邮槽的几个API HANDLE ...
- tensorflow 卷积/反卷积-池化/反池化操作详解
Plese see this answer for a detailed example of how tf.nn.conv2d_backprop_input and tf.nn.conv2d_bac ...
- Javassist 字节码 语法 MD
Markdown版本笔记 我的GitHub首页 我的博客 我的微信 我的邮箱 MyAndroidBlogs baiqiantao baiqiantao bqt20094 baiqiantao@sina ...