如何从外部源调用弹出窗口 [英] How to call a popup-window from an external source
本文介绍了如何从外部源调用弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HEllo的朋友,
如何从外部登录页面拨打弹出窗口,帮助我的朋友
提前预测
HEllo friends,
How to call a popup-window from an external Login page , help me friends
thanx in advance
推荐答案
通过使用UI事件中的JavaScript,比如onClick
,我建议使用jQuery,请参阅下一个例子:
By using JavaScript from a UI event, likeonClick
, and I do recommend to use jQuery, see the next example:
/// <reference path="jquery-1.5.2-vsdoc.js" />
/// <reference path="jquery-ui-1.8.11.min.js" />
/// <reference path="jQuery.tmpl.js" />
window.onload = function () {
( #defineQuantity)。dialog({
autoOpen: false ,
title:resourcesTexts.defineQuantityTitle,
height:' auto',
width: 580 ,
modal: true ,
可调整大小: false ,
cache: false
});
};
函数openDefineQuantity(){
("#defineQuantity").dialog({ autoOpen: false, title: resourcesTexts.defineQuantityTitle, height: 'auto', width: 580, modal: true, resizable: false, cache: false }); }; function openDefineQuantity() {
( #defineQuantity)。dialog( open);
}
("#defineQuantity").dialog("open"); }
因此,在你的UI事件中,对于这个例子,你应该调用 openDefineQuantity
在您的HTML页面中,您应该有一个包含弹出窗口的HTML的div到div中:
< div id = defineQuantitystyle =display:none;>< / div>
So in your have UI event, for this example, you should invoke openDefineQuantity
And in your HTML page you should have a div that contains the HTML for your popup, into a div:
<div id="defineQuantity" style="display:none;"></div>
这篇关于如何从外部源调用弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文