|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 08/14/2009 at 12:21AM PDT, ID: 24652192 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: |
//Code for part 1:
function openChildWindowCustodian(input){
var myWidth = 0, myHeight = 0;
var NewWidth = 0, NewHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
NewWidth = Math.round(0.8*myWidth);
NewHeight = Math.round(0.8*myHeight);
window.showModalDialog('../../AccessControlASPX.aspx?myKey='+input,'','dialogHeight='+NewHeight+'px;dialogWidth='+NewWidth+'px;scroll=yes;center=yes;');
}
//Codes of the 2nd page. When the button is clicked, it will invoke this javascript.
function saveandclose(){
//var t=setTimeout("",2000); -> Does not work
//This is for the button to be clicked. Note that button2 is hosting all the backend codes to be executed.
var dd = document.getElementById("<%=Button2.ClientID%>");
if (dd){
dd.click();
}
//Attempt 2: Tried to set the textcheck textbox value to 1 under the button2. so that it can "stay" in here for a while... dont work...
var checktext = document.getElementById("<%=TextCheck.ClientID%>");
do{
checktext = document.getElementById("<%=TextCheck.ClientID%>");
} while(checktext == null);
//Currently using this, works about 50 percent of the time...
for(var i=0; i < 1000000; i++){
}
//Attempt to close the window and return to parent.
closeWindows();
}
|
Advertisement