Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts')
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/.cvsignore2
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/browserdetect.js15
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/calendarbrowser.jsp69
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/formsubmit.jsp34
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/formutils.jsp41
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/panes.jsp39
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/resumeproxyloadpage.js17
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/switchperspective.jsp28
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/tables.jsp159
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/toolbar.js30
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/treeview.js50
-rw-r--r--bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/wsdlbrowser.jsp48
12 files changed, 0 insertions, 532 deletions
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/.cvsignore b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/.cvsignore
deleted file mode 100644
index 5738ffe94..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*.java
-*.class
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/browserdetect.js b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/browserdetect.js
deleted file mode 100644
index 6b8135867..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/browserdetect.js
+++ /dev/null
@@ -1,15 +0,0 @@
-//
-// Copyright (c) 2002, 2004 IBM Corporation and others.
-// All rights reserved. This program and the accompanying materials
-// are made available under the terms of the Eclipse Public License v1.0
-// which accompanies this distribution, and is available at
-// http://www.eclipse.org/legal/epl-v10.html
-//
-// Contributors:
-// IBM Corporation - initial API and implementation
-//
-
-function isMicrosoftInternetExplorer()
-{
- return navigator.appName == "Microsoft Internet Explorer";
-}
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/calendarbrowser.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/calendarbrowser.jsp
deleted file mode 100644
index 79b9ca265..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/calendarbrowser.jsp
+++ /dev/null
@@ -1,69 +0,0 @@
-<%
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-%>
-<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*,
- org.eclipse.wst.ws.internal.explorer.platform.actions.*" %>
-
-<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/>
-<%
- String sessionId = session.getId();
-%>
-<script language="javascript">
- var calendarBrowser;
- var calendarBrowserClosed = true;
- var calendarTargetRow = -1;
- var calendarTarget;
-
- function openCalendarBrowser(type,formContainerId,elementName,index)
- {
- var form = document.getElementById(formContainerId).getElementsByTagName("form").item(0);
- var elements = form.elements[elementName];
- if (index == 0 && elements.length == undefined)
-<%
- // Only one element.
-%>
- calendarTarget = elements;
- else
- {
- calendarTargetRow = index;
- calendarTarget = elements.item(index);
- }
- var link;
- switch (type)
- {
- case <%=ActionInputs.CALENDAR_TYPE_DATE%>:
- link = "<%=response.encodeURL(controller.getPathWithContext(OpenCalendarBrowserAction.getActionLinkForDate(sessionId)))%>";
- break;
- case <%=ActionInputs.CALENDAR_TYPE_DATETIME%>:
- link = "<%=response.encodeURL(controller.getPathWithContext(OpenCalendarBrowserAction.getActionLinkForDateTime(sessionId)))%>";
- break;
- case <%=ActionInputs.CALENDAR_TYPE_GYEARMONTH%>:
- link = "<%=response.encodeURL(controller.getPathWithContext(OpenCalendarBrowserAction.getActionLinkForGYearMonth(sessionId)))%>";
- break;
- case <%=ActionInputs.CALENDAR_TYPE_GDAY%>:
- link = "<%=response.encodeURL(controller.getPathWithContext(OpenCalendarBrowserAction.getActionLinkForGDay(sessionId)))%>";
- break;
- case <%=ActionInputs.CALENDAR_TYPE_GMONTHDAY%>:
- link = "<%=response.encodeURL(controller.getPathWithContext(OpenCalendarBrowserAction.getActionLinkForGMonthDay(sessionId)))%>";
- break;
- }
- calendarBrowser = window.open(link,"calendarBrowser","height=350,width=264,status=yes,scrollbars=yes,resizable=yes");
- if (calendarBrowser.focus)
- calendarBrowser.focus();
- }
-
- function closeCalendarBrowser()
- {
- if (!calendarBrowserClosed)
- calendarBrowser.close();
- }
-</script>
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/formsubmit.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/formsubmit.jsp
deleted file mode 100644
index 3b3b4f36a..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/formsubmit.jsp
+++ /dev/null
@@ -1,34 +0,0 @@
-<%
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-%>
-<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.util.*" %>
-
-<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/>
-<script language="javascript">
- var requestSubmitted = false;
-
- function handleSubmit(form)
- {
- if (requestSubmitted)
- {
- alert("<%=HTMLUtils.JSMangle(controller.getMessage("MSG_SUBMIT_IN_PROGRESS"))%>");
- return false;
- }
- requestSubmitted = true;
- return true;
- }
-
- function resetSubmission()
- {
- requestSubmitted = false;
- }
-</script>
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/formutils.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/formutils.jsp
deleted file mode 100644
index 2dec80569..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/formutils.jsp
+++ /dev/null
@@ -1,41 +0,0 @@
-<%
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-%>
-<%@ page contentType="text/html; charset=UTF-8" %>
-
-<script language="javascript">
- <%// Requires browserdetect.js%>
- function createHiddenElement(elementName,value)
- {
- var hiddenInput;
- if (elementName.length > 0)
- {
- if (isMicrosoftInternetExplorer())
- hiddenInput = document.createElement("<input name='"+elementName+"'>");
- else
- {
- hiddenInput = document.createElement("input");
- hiddenInput.setAttribute("name",elementName);
- }
- }
- else
- hiddenInput = document.createElement("input");
- hiddenInput.type = "hidden";
- hiddenInput.value = value;
- return hiddenInput;
- }
-
- function resetFormInputs()
- {
- document.location.reload();
- }
-</script>
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/panes.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/panes.jsp
deleted file mode 100644
index aa69c2ca7..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/panes.jsp
+++ /dev/null
@@ -1,39 +0,0 @@
-<%
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-%>
-<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*,
- org.eclipse.wst.ws.internal.explorer.platform.util.*" %>
-<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/>
-<script language="javascript">
- var perspectiveWorkArea = top.frames["<%=FrameNames.PERSPECTIVE_WORKAREA%>"];
- var perspectiveToolbar = top.frames["<%=FrameNames.PERSPECTIVE_TOOLBAR%>"];
- var perspectiveContent = top.frames["<%=FrameNames.PERSPECTIVE_CONTENT%>"];
-
- function getPerspectiveContentFrameset()
- {
- return perspectiveContent.document.getElementsByTagName("frameset").item(0);
- }
-
- function toggleDoubleClickColumnTitle()
- {
- var doubleClickColumn = document.getElementById("doubleclickcolumn");
- if (doubleClickColumn == null)
- return;
-<%
- String jsAltRestore = HTMLUtils.JSMangle(controller.getMessage("ALT_DOUBLE_CLICK_TO_RESTORE"));
-%>
- if (doubleClickColumn.title == "<%=jsAltRestore%>")
- doubleClickColumn.title = "<%=HTMLUtils.JSMangle(controller.getMessage("ALT_DOUBLE_CLICK_TO_MAXIMIZE"))%>";
- else
- doubleClickColumn.title = "<%=jsAltRestore%>";
- }
-</script>
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/resumeproxyloadpage.js b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/resumeproxyloadpage.js
deleted file mode 100644
index d5e1549fa..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/resumeproxyloadpage.js
+++ /dev/null
@@ -1,17 +0,0 @@
-//
-// Copyright (c) 2002, 2004 IBM Corporation and others.
-// All rights reserved. This program and the accompanying materials
-// are made available under the terms of the Eclipse Public License v1.0
-// which accompanies this distribution, and is available at
-// http://www.eclipse.org/legal/epl-v10.html
-//
-// Contributors:
-// IBM Corporation - initial API and implementation
-//
-
-function resumeProxyLoadPage()
-{
- var proxyPage = parent.document.getElementById("proxyPage");
- proxyPage.setAttribute("rows", "0,100%");
- parent.frames[0].handleCompletion();
-}
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/switchperspective.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/switchperspective.jsp
deleted file mode 100644
index 2a0fc3814..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/switchperspective.jsp
+++ /dev/null
@@ -1,28 +0,0 @@
-<%
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-%>
-
-<%@ page contentType="text/html; charset=UTF-8" %>
-
-<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/>
-
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<jsp:include page="/scripts/panes.jsp" flush="true"/>
-</head>
-<body dir="<%=org.eclipse.wst.ws.internal.explorer.platform.util.DirUtils.getDir()%>">
-<script language="javascript">
- perspectiveContent.location = "<%=response.encodeURL(controller.getPathWithContext(controller.getCurrentPerspective().getPerspectiveContentPage()))%>";
-</script>
-</body>
-</html>
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/tables.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/tables.jsp
deleted file mode 100644
index 99a24eefe..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/tables.jsp
+++ /dev/null
@@ -1,159 +0,0 @@
-<%
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-%>
-<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.util.*" %>
-
-<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/>
-<script language="javascript">
- var numberOfHeaderRows = 1;
- function getTable(tableContainerId)
- {
- var container = document.getElementById(tableContainerId);
- return container.getElementsByTagName("table").item(0);
- }
-
- function setSelect(select,value)
- {
- for (var i=0;i<select.options.length;i++)
- {
- if (select.options[i].value == value)
- {
- select.selectedIndex = i;
- return select.options[i].text;
- }
- }
- }
-
- function removeSelectedRows(tableContainerId)
- {
- var table = getTable(tableContainerId);
- for (var i=numberOfHeaderRows;i<table.rows.length;i++)
- {
- var rowCheckbox = table.rows[i].getElementsByTagName("input").item(0);
- if (rowCheckbox.checked)
- {
- table.deleteRow(i);
- i--;
- }
- }
- var checkAllCheckboxRow = table.rows[0];
- var checkAllCheckbox = checkAllCheckboxRow.getElementsByTagName("input").item(0);
- if (checkAllCheckbox.checked)
- checkAllCheckbox.checked = false;
- }
-
- function handleRowCheckboxClick(e)
- {
- var checkbox;
- if (isMicrosoftInternetExplorer())
- checkbox = event.srcElement;
- else
- checkbox = e.target;
- var cell = checkbox.parentNode;
- var row = cell.parentNode;
- if (checkbox.checked)
- highlightRow(row,"rowcolor");
- else
- highlightRow(row,"tablecells");
-
- var tbody = row.parentNode;
- var table = tbody.parentNode;
- var checkAllCheckbox = table.rows[0].getElementsByTagName("input").item(0);
- if (checkAllCheckbox.checked)
- checkAllCheckbox.checked = false;
- }
-
- function createRowCheckbox()
- {
- var rowCheckbox = document.createElement("input");
- rowCheckbox.setAttribute("name",rowCheckboxName);
- rowCheckbox.type = "checkbox";
- rowCheckbox.title = "<%=HTMLUtils.JSMangle(controller.getMessage("FORM_CONTROL_TITLE_SELECT_ROW_CHECK_BOX"))%>";
- rowCheckbox.onclick = handleRowCheckboxClick;
- return rowCheckbox;
- }
-
- function handleCheckAllClick(tableContainerId,checkAllCheckbox)
- {
- var table = getTable(tableContainerId);
- for (var i=numberOfHeaderRows;i<table.rows.length;i++)
- {
- var rowCheckboxCell = table.rows[i].getElementsByTagName("td").item(0);
- var rowCheckbox = rowCheckboxCell.childNodes[0];
- rowCheckbox.checked = checkAllCheckbox.checked;
- if (rowCheckbox.checked)
- highlightRow(table.rows[i],"rowcolor");
- else
- highlightRow(table.rows[i],"tablecells");
- }
- }
-
- function highlightRow(row,className)
- {
- var rowColumns = row.getElementsByTagName("td");
- for (var i=1;i<rowColumns.length;i++)
- rowColumns.item(i).className = className;
- }
-
- function highlightErrantRow(row,className)
- {
- var rowColumns = row.getElementsByTagName("td");
- var column0 = rowColumns.item(0);
- var column0Control = column0.childNodes[0];
- var start;
- if (column0Control.type == "checkbox")
- {
- column0Control.checked = true;
- rowColumns.item(1).className = "firstcolumnerrantrowcolor";
- start = 2;
- }
- else
- {
- column0.className = "firstcolumnerrantrowcolor";
- start = 1;
- }
- rowColumns.item(rowColumns.length-1).className = "lastcolumnerrantrowcolor";
- for (var i=start;i<rowColumns.length-1;i++)
- rowColumns.item(i).className = "middleerrantrowcolor";
- }
-
- function twist(tableContainerId,twistImageName)
- {
- var tableContainer = document.getElementById(tableContainerId);
- var twistImage = document.images[twistImageName];
- if (tableContainer.style.display == "none")
- {
- tableContainer.style.display = "";
- twistImage.src = "<%=response.encodeURL(controller.getPathWithContext("images/twistopened.gif"))%>";
- twistImage.alt = "<%=HTMLUtils.JSMangle(controller.getMessage("ALT_TWIST_OPENED"))%>";
- }
- else
- {
- tableContainer.style.display = "none";
- twistImage.src = "<%=response.encodeURL(controller.getPathWithContext("images/twistclosed.gif"))%>";
- twistImage.alt = "<%=HTMLUtils.JSMangle(controller.getMessage("ALT_TWIST_CLOSED"))%>";
- }
- }
-
- function twistOpen(tableContainerId)
- {
- if (document.getElementById(tableContainerId).style.display == "none")
- twist(tableContainerId,"x"+tableContainerId);
- }
-
- function getDefaultDisplayString(inputValue)
- {
- if (inputValue == null || inputValue.length < 1)
- return "<%=HTMLUtils.JSMangle(controller.getMessage("TABLE_BLANK_PLACEHOLDER"))%>";
- return inputValue;
- }
-</script>
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/toolbar.js b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/toolbar.js
deleted file mode 100644
index bab1b2dbb..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/toolbar.js
+++ /dev/null
@@ -1,30 +0,0 @@
-//
-// Copyright (c) 2002, 2004 IBM Corporation and others.
-// All rights reserved. This program and the accompanying materials
-// are made available under the terms of the Eclipse Public License v1.0
-// which accompanies this distribution, and is available at
-// http://www.eclipse.org/legal/epl-v10.html
-//
-// Contributors:
-// IBM Corporation - initial API and implementation
-//
-
-function mouseover(img)
-{
- img.className = "hover";
-}
-
-function mouseout(img)
-{
- img.className = "normal";
-}
-
-function mousedown(img)
-{
- img.className = "down";
-}
-
-function mouseup(img)
-{
- return mouseout(img);
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/treeview.js b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/treeview.js
deleted file mode 100644
index 0e843fb42..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/treeview.js
+++ /dev/null
@@ -1,50 +0,0 @@
-//
-// Copyright (c) 2002, 2004 IBM Corporation and others.
-// All rights reserved. This program and the accompanying materials
-// are made available under the terms of the Eclipse Public License v1.0
-// which accompanies this distribution, and is available at
-// http://www.eclipse.org/legal/epl-v10.html
-//
-// Contributors:
-// IBM Corporation - initial API and implementation
-//
-
-// Requires browserdetect.js
-
-var selectedAnchorName = "";
-
-function setSelectedAnchorName(anchorName)
-{
- selectedAnchorName = anchorName;
-}
-
-function selectNode(anchorName,openImagePath)
-{
- var isIE = isMicrosoftInternetExplorer();
- if (selectedAnchorName.length > 0)
- {
- var selectedAnchor;
- if (isIE)
- selectedAnchor = document.anchors(selectedAnchorName);
- else
- selectedAnchor = document.anchors[selectedAnchorName];
- if (selectedAnchor)
- selectedAnchor.className = "unselectedTextAnchor";
- }
- if (anchorName.indexOf("-1") == -1)
- {
- if (isIE)
- document.anchors(anchorName).className = "selectedTextAnchor";
- else
- document.anchors[anchorName].className = "selectedTextAnchor";
- setSelectedAnchorName(anchorName);
- alterImage(anchorName,openImagePath);
- }
- else
- setSelectedAnchorName("");
-}
-
-function alterImage(imageName,imagePath)
-{
- document.images[imageName].src = imagePath;
-}
diff --git a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/wsdlbrowser.jsp b/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/wsdlbrowser.jsp
deleted file mode 100644
index 4e45a7fbd..000000000
--- a/bundles/org.eclipse.wst.ws.explorer/wsexplorer/scripts/wsdlbrowser.jsp
+++ /dev/null
@@ -1,48 +0,0 @@
-<%
-/*******************************************************************************
- * Copyright (c) 2001, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-%>
-<%@ page contentType="text/html; charset=UTF-8" import="org.eclipse.wst.ws.internal.explorer.platform.constants.*,
- org.eclipse.wst.ws.internal.explorer.platform.actions.*" %>
-
-<jsp:useBean id="controller" class="org.eclipse.wst.ws.internal.explorer.platform.perspective.Controller" scope="session"/>
-<%
- String sessionId = session.getId();
-%>
-<script language="javascript">
- var wsdlWindow;
- var wsdlWindowClosed = true;
- var targetWSDLURLElement;
- function openWSDLBrowser(formContainerId,type)
- {
- var form = document.getElementById(formContainerId).getElementsByTagName("form").item(0);
- targetWSDLURLElement = form.<%=ActionInputs.QUERY_INPUT_WSDL_URL%>;
- var link;
- switch (type)
- {
- case <%=ActionInputs.WSDL_TYPE_SERVICE%>:
- link = "<%=response.encodeURL(controller.getPathWithContext(OpenWSDLBrowserAction.getActionLinkForService(sessionId)))%>";
- break;
- case <%=ActionInputs.WSDL_TYPE_SERVICE_INTERFACE%>:
- default:
- link = "<%=response.encodeURL(controller.getPathWithContext(OpenWSDLBrowserAction.getActionLinkForServiceInterface(sessionId)))%>";
- }
- wsdlWindow = window.open(link,"wsdlWindow","height=300,width=450,status=yes,scrollbars=yes,resizable=yes");
- if (wsdlWindow.focus)
- wsdlWindow.focus();
- }
-
- function closeWSDLBrowser()
- {
- if (!wsdlWindowClosed)
- wsdlWindow.close();
- }
-</script>

Back to the top