开发者

jquery simple modal

i use jquery with simple modal plugin. When in modal user select the cell of table i need to do information about this cell. Size of table and info about cell take different amounts of space on the screen. I want to change size of modal window, can i do that without closing modal window? part of function which called when user click table cell:

// temp element for display data about record in table
var tmp = $("#temp")[0];
// table invisible
$("#tableells")[0开发者_开发百科].style.display="none";
// do temp element visible
tmp.style.display="";
// fill temp element with data of record (name is par of function)
tmp.innerHTML = name;
// here i want to change size of modal window 


You have a couple different options.

1) To let SimpleModal determine the size based on the new content, call:

$.modal.setContainerDimensions();

2) To tell SimpleModal what dimensions you want to use:

$.modal.update(height, width);

Hope that helps...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜