Forum: สอบถามปัญหา Notes ทางด้านพัฒนาโปรแกรม (Web Browser) |
Tags1: | Created on Nov 25, 2009, 10:59 AM by 9notes/9Notes|Topic Responses: 2 |
&action=openDocument&documentId=2456 |
ขออภัยที่ตอบช้าหน่อยสำหรับกระทู้นี้เพราะต้องใช้รูปเยอะพอควร
1. สร้างฟิลด์ comment บนฟอร์ม main ก่อนครับ
2. สร้างฟอร์ม comment บนฟอร์ม Dialogue แล้วใส่สูตรในปุ่ม ok ตามนี้
window.opener.document.forms[0].Comment.value = document.forms[0].Comment.value;
window.close();
ส่วน cancel ก็ตามนี้ครับ
window.close();
3. จากนั้นกลับมาในฟอร์ม main แล้วสร้างปุ่ม comment แล้วใส่สูตรตามนี้เพื่อเปิดฟอร์ม dialogue ที่เราสร้างไว้ครับ
var f = document.forms[0];
var pathname = window.location.pathname;
var DBPath = pathname.substring(0,(pathname.lastIndexOf(".nsf") + 5));
var url = DBPath + "DLG_Comment?openform";
var name = "comment";
var args = "";
window.open(url, name, args);
4. ลองรันดู
 |
|