Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006

(Parent.opener). How replacement location?

I had a mail, pop open a new window to the original window, and some can not use the button, experts advise. ! !
The original code is :
Read function (Box, libel) (
Begin = document.bottom.begin.value;
End = document.bottom.end.value;
URL = "Mailbox=" Box + + "&Num=" Num;// + + "&begin=" begin + + "&end=" + end;
Read = window.open ( "prev.php?" +URL, "mail", "width=600, height=550, resizable=yes");
Read.window.focus ();
Read.window.moveTo (100,100);
}
I will read = window.open ( "prev.php?" +URL, "mail", "width=600, height=550, resizable=yes"); re-read the document.location= = "prev.php?" +URL;
Transmit button can result in the use of header.php
Next is the button code :
"INPUT type=" button "value=" "?php echo $LANG_HEADER_FORWARD;?>" formal "myinput"
OnClick= "Forward (the" echo ?php
" 'Mailbox=$get_Mailbox&Num=$get_Num&Type=$Content_Type,' '$LANG_HEADER_ALERT_FORWARD_STR1'" ;?>), ""

Forward function (government payments are capped, str1) (
Attach = 0
If (confirm (str1)) Attach = 1; 4003rd "as an annex to the original mail transmitted? "
Government payments are capped = "forward.php?" government payments are capped + + "&Attach=" + Attach;
(Parent.opener). Location = url;
Parent.close ();
Return true;
}

I think it is (parent.opener). Location = url;
The problem, but the change is not to change to change

I solve the above problems, but a new problem.
Function Prev (government payments are capped, libel, str1 and str2) (
Begin = (parent.opener). Bottom.begin.value;
If (libel ====== 0) (
Alert (str1); 4003rd "is the first mail! "
Return false;
        }
If (libel "= begin) (
If (confirm (str2)) (4003rd "preceding page, continue? "
Page = (parent.opener). Bottom.page.value 1;
Loca = (parent.opener). Bottom.loca.value;
(Parent.opener). Location loca + = "&Page=" + page;
) Else return false;
        }
Government payments are capped = "prev.php?" government payments are capped + + "&Num=" + Num;
Document.header.action = url;
Document.header.target = "mail";
Document.header.submit ();
Return true;
}

Next function (government payments are capped, libel, str1 and str2) (
End = (parent.opener). Bottom.end.value;
Totalmail = (parent.opener). Bottom.totalmail.value;
If (libel "totalmail) (
Alert (str1); 4003rd "is the last mail! "
Return false;
        }
If (Num> end) (
If (confirm (str2)) (4003rd "page to continue? "
Page = (parent.opener). Bottom.page.value * 1 + 1;
Loca = (parent.opener). Bottom.loca.value;
(Parent.opener). Location loca + = "&Page=" + page;
}else Return false;
        }
Government payments are capped = "prev.php?" government payments are capped + + "&Num=" + Num;
Document.header.action = url;
Document.header.target = "mail";
Document.header.submit ();
Return true;
}

This issue is too challenging, and illustrated strong demand for home Mt. ! ! !

Nobody can return ah. Unpopular Still my highest level! ! ! !




 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com