جافا سكريبت ولدت CFWindow لا تتركز في coldfusion
-
15-11-2019 - |
سؤال
أحاول استخدام وظيفة JavaScript ColdFusion لإنشاء CFWindow وتوسط ذلك.لقد اتبعت الوثائق / البرامج التعليمية إلى T وحاولت ذلك في CF8 و CF9 ولكن لا يمكنني الحصول عليها للمركز.ماذا أفعل الخطأ؟ giveacodicetagpre.
شكرا :)
المحلول
Use the function below to create a CfWindow
. Call function create_Window()
in <a>
tag.
function create_Window() {
win = name + "_os_" + Math.round(Math.random() * 10000000000);
try
{
twin = ColdFusion.Window.getWindowObject(winname);
twin.destroy(true);
}
catch (e)
{
// do nothing because the window does not exist
}
ColdFusion.Window.create(
win,
'Request Page',
'windowPageName.cfm?windowname='+win,
{
height:600,
width:700,
modal:true,
closable:true,
draggable:true,
resizable:true,
center:true,
initshow:true
}
)
winname=win;
}
لا تنتمي إلى StackOverflow