hi ther all
i hav a asp list ,i wont to open the edit record file in popup windows
and when i click submit to return to windows list form and refresh it
the problem is that the edit asp file post the data to him self
and after all the data insert in to the database it response.redirect to asp list
file
i try this
in the list file
<form name=”popcal1″>
…. asp and html kod…..
<a href=”javascript:popcaltest1(‘tst’,’document.popcal1′,document.popcal1);”>Edit</a>
<script language=”javascript”>
function popcaltest1(vCaption, vField, vDate){
var nW = window.open(“”, “tst”, “resizable=no,scrollbars=no,width=500,height=520”);
nW.location.href = “incotermedit1.asp?key=<%=Server.URLEncode(rs(“id”)&””)%>&caption=” + escape(vCaption) + “&field=” + vField + “&date=” + vDate; nW = null;
}
</script>
it open the coreckt edit asp file
in the edit file i put this line
<% sField = “document.popcal1” %>
<html>
<script LANGUAGE=”JavaScript”><!–
function returndat(vDate, vField)
{eval(“window.opener.” + vField + “.value='” + vDate + “‘;”); self.close(); }
//–></script>
<body >
<form onsubmit=” returndat(”,'<%=sField%>’);” action=”incotermedit1.asp” method=”post”>
bat sum in this consept is not work…
is ther any way to solv this ??
tanks a lot
erez