///////////////////////////////////////////////////// call and back /call.and.back////////////////////
<%
if p_mode="E" then
response.write("parent.closeWindow();")
end if
%>
function newWindow(url) {
popupWindow = window.open(
url,
'popUpWindow','height=500,width=650,left=10,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
function closeWindow()
{
if(false == popupWindow.closed)
{
popupWindow.close ();
}
else
{
alert('That window is already closed. Open the window first and try again!');
}
}
//////////////////////////////////////////////// end of call and back //////////////////////////////////////////
function custDisplay3(pcustcode,sql_custcode){
$('.allcustcode').css('display','none');
$('.class_'+pcustcode).css('display','block');
sql_custcode=sql_custcode.replace(/__/g," ");
i=sql_custcode.indexOf("_");
if (i>1) sql_custcode=sql_custcode.substring(0,i);
<%
IF mode="C" THEN
response.write("url_='salesByMajorAndOtherList15.asp?prog='+sql_custcode+'&p_fileName="&fileName&"&p_mode=E';")
else
response.write("url_='salesByMajorAndOtherList15.asp?buyg='+sql_custcode+'&p_fileName="&fileName&"&p_mode=E';")
end if
%>
//url_='salesByMajorAndOtherList15.asp?buyg='+sql_custcode+'&p_fileName=<%=fileName%>&p_mode=E';
newWindow(url_);
}
沒有留言:
張貼留言