[英]how do I load an image in a picture box of another form using open file dialog
[英]How do i Open a page in a dialog box using jQuery?
當用戶單擊“登錄”鏈接時,我需要在對話框中打開login.aspx
頁面。 我看過jQuery UI對話框,但是看起來無法從給定的URL打開整個頁面?
你們對我可以使用的任何提示嗎?
您只需創建一個<iframe>
和.dialog()
即可獲得所需內容,簡單簡單即可。 伊萊賈庄園(Elijah Manor)有一篇完整的文章,內容包括如何做到的代碼 。
這是一個快速版本:
$('<iframe src="login.aspx" />').dialog({
title: 'Login',
width: 600,
height: 400,
modal: true,
}).width(570).height(370); //give it a bit of padding
使用<iframe>
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.