CINXE.COM
externalcall.jsp
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>externalcall.jsp</title> <link rel="stylesheet" href="./client_workspace/basicresources/weboffice_modern.css" type="text/css"> <link rel="stylesheet" href="./client_workspace/basicresources/weboffice_modern_user.css" type="text/css"> <script type="text/javascript"> function checkAppExists() { var rgbColorStr = '0,0,0'; if (rgbColorStr != "") { var rgb = rgbColorStr.split(","); document.body.style.backgroundColor = "rgb(" + rgb[0] + "," + rgb[1] + "," + rgb[2] + ")"; } var bgImgURL = './client_workspace//WebGIS/pub/images/transparent.gif'; if (bgImgURL != "" && bgImgURL.length > 0) document.body.style.backgroundImage = "url('" + bgImgURL + "')"; // logo image var logoURL = './client_workspace/'; var imgElement = document.getElementsByClassName("logo")[0]; if(imgElement){ imgElement.style.backgroundImage = "url('" + logoURL + "')"; } var callerURL = "synserver"; var callParam = "project=GeoDaten&x=-6968208&y=6572353&scale=10000&rotation=0&view=standard_extern&basemapview=gk_strassenkarte_extern&user=guest&group_id=public&client=core&language=de"; if ( callParam.length > 0 ) ( callerURL.indexOf("?") != -1 ) ? callerURL += "&" : callerURL += "?"; callerURL += callParam; try { if ( !parent ) { //new application - no parent startNew(callParam, callerURL); } else { if (null != parent.document.getElementById("jsxmain")) { //TIBCO HTML client parent.client.checkExtCall( callParam ); } else if( null != parent.wo && null != parent.wo.externalcall ) { //core client parent.wo.externalcall.extCallIframe( callParam ); } else if(parent.dojoConfig && parent.dojoConfig.wo && parent.dojoConfig.wo.internals) { //flexjs client parent.dojoConfig.wo.internals.loadJsModule("ExternalCall").then( function( extCall ) { extCall.extCallIframe( callParam ); }); try { var display = document.createElement("div"); display.style.position = "absolute"; display.style.top = 0; display.style.left = 0; display.innerHTML = "call params: " + callParam; document.body.appendChild(display); } catch(ex) {} } else { startNew( callParam, callerURL ); } } } catch(e) { //problem, e.g. access denied on parent element console.warn("ExternalCall-Error: " + e.message); startNew( callParam, callerURL ); } } function startNew( callParam, callerURL ) { var aParams = callParam.split("&"); var callParamLC = callParam.toLowerCase(); if (callParamLC.indexOf('startmode=popup') != -1) { var sResizeAble = 'yes'; if ( callParamLC.indexOf('startmode=popupfixed') != -1 ) { sResizeAble = 'no'; } var winWidth = 1015; var winHeight = 750; if ((callParamLC.indexOf('winwidth') != -1) || (callParamLC.indexOf('winheight') != -1)) { for (var count=0; count<aParams.length; count++) { var aParam = aParams[count].split("="); if (aParam[0].toLowerCase() == "winwidth") winWidth = aParam[1]; if (aParam[0].toLowerCase() == "winheight") winHeight = aParam[1]; } } var winName = "WebOffice"; openWin (winName, callerURL, winWidth, winHeight, sResizeAble); } else { document.location = encodeURI(callerURL); } } function openWin (winName, sURL, winWidth, winHeight, sResizeAble) { try { var linkStr = "<a href='JavaScript:openWin(\"" + winName + "\",\"" + sURL+ "\",\"" + winWidth + "\",\"" + winHeight + "\");'>", linkStrDE = linkStr + "WebOffice Projekt starten</a>", linkStrEN = linkStr + "Start WebOffice Project</a>"; document.getElementById("link_en").innerHTML = linkStrEN; document.getElementById("link_de").innerHTML = linkStrDE; document.getElementById("info_default").style.display = "none"; document.getElementById("info_popup").style.display = ""; var WebOffice = window.open(sURL,winName,"width="+winWidth+",height="+winHeight+",scrollbars=auto,resizable=" + sResizeAble + ",location=no,menubar=no,status=yes,toolbar=no"); //resize the window again; problem is when there was already a window 'WebOffice' it is not newly opened and so not in the wanted size WebOffice.resizeTo(winWidth, winHeight); } catch (e) { //popup was not openend } } //# sourceURL=http://_mysynergis/_externalcall.jsp </script> </head> <body onload="checkAppExists();"> <table width="100%" height="100%"> <tr> <td align="center" height="100" valign="middle"> <img src="./client_workspace/basicresources/transparent.gif" class="logo"> </td> </tr> <tr> <td height="100%" valign="middle" align="center" id="info_default"> <div class="extcall"> Your WebOffice project gets initialized. You will be redirected soon. <br><br> Ihr WebOffice Projekt wird initialisiert und startet in einigen Augenblicken. </div> </td> </tr> <tr> <td height="100%" valign="middle" align="center" id="info_popup" style="display:none;"> <div> WebOffice was opened in a new window.<br/><br/>If you are using a popup blocker or the window didn't open for any other reasons click here:<br/> <div class="link" id="link_en"> </div> </div> <div class="splitter"></div> <div> WebOffice wurde in einem neuen Fenster geöffnet.<br/><br/>Wenn Sie einen Popupblocker verwenden oder das Fenster aus anderen Gründen nicht angezeigt wurde, klicken Sie bitte hier:<br/> <div class="link" id="link_de"> </div> </div> </td> </tr> </table> </body> </html>