diff options
author | Konrad Kolosowski | 2002-10-30 03:28:29 +0000 |
---|---|---|
committer | Konrad Kolosowski | 2002-10-30 03:28:29 +0000 |
commit | 297850001bf49c1c8c4879a352e86fcade208b39 (patch) | |
tree | f0b0b30e1c38324d9c12b77768bdae74e0eff30b /org.eclipse.help.webapp/advanced/livehelp.js.jsp | |
parent | 18cad8a6dc786b25fa4e7c6f956b80b4d6a842b0 (diff) | |
download | eclipse.platform.ua-297850001bf49c1c8c4879a352e86fcade208b39.tar.gz eclipse.platform.ua-297850001bf49c1c8c4879a352e86fcade208b39.tar.xz eclipse.platform.ua-297850001bf49c1c8c4879a352e86fcade208b39.zip |
*** keyword substitution change ***
Diffstat (limited to 'org.eclipse.help.webapp/advanced/livehelp.js.jsp')
-rw-r--r-- | org.eclipse.help.webapp/advanced/livehelp.js.jsp | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/org.eclipse.help.webapp/advanced/livehelp.js.jsp b/org.eclipse.help.webapp/advanced/livehelp.js.jsp index 535d4aceb..671e67ef0 100644 --- a/org.eclipse.help.webapp/advanced/livehelp.js.jsp +++ b/org.eclipse.help.webapp/advanced/livehelp.js.jsp @@ -1,57 +1,57 @@ -<%--
- (c) Copyright IBM Corp. 2000, 2002.
- All Rights Reserved.
---%>
-<%@ page import="java.util.*,org.eclipse.help.servlet.*,org.eclipse.help.servlet.data.*" errorPage="/advanced/err.jsp" contentType="text/html; charset=UTF-8"%>
-<%
- request.setCharacterEncoding("UTF-8");
-%>
-<script language="JavaScript">
-function liveActionInternal(topHelpWindow, pluginId, className, argument)
-{
-<%
- RequestData data = new RequestData(application,request);
- if(data.getMode() == data.MODE_INFOCENTER){
-%>
- alert("<%=UrlUtil.JavaScriptEncode(WebappResources.getString("noLiveHelpInInfocenter", request))%>");
- return;
-<%
- }else{
-%>
- // construct the proper url for communicating with the server
- var url= window.location.href;
- var i = url.indexOf("content/help:");
- if(i < 0)
- i = url.lastIndexOf("/")+1;
-
- url=url.substring(0, i);
- var encodedArg;
- if(window.encodeURIComponent){
- encodedArg=encodeURIComponent(argument);
- }else{
- encodedArg=escape(argument);
- }
- url=url+"livehelp/?pluginID="+pluginId+"&class="+className+"&arg="+encodedArg+"&nocaching="+Math.random();
-
- // we need to find the toolbar frame.
- // to do: cleanup this, including the location of the hidden livehelp frame.
- var toolbarFrame = topHelpWindow.HelpFrame.ContentFrame.ToolbarFrame;
- if (!toolbarFrame){
- return;
- }
-
- if(toolbarFrame.liveHelpFrame){
- toolbarFrame.liveHelpFrame.location=url;
- }
-<%
- }
-%>
-}
-function showTopicInContentsInternal(topHelpWindow, topic) {
- try{
- topHelpWindow.HelpFrame.NavFrame.displayTocFor(topic);
- }catch(e){
- }
-}
-
-</script>
+<%-- + (c) Copyright IBM Corp. 2000, 2002. + All Rights Reserved. +--%> +<%@ page import="java.util.*,org.eclipse.help.servlet.*,org.eclipse.help.servlet.data.*" errorPage="/advanced/err.jsp" contentType="text/html; charset=UTF-8"%> +<% + request.setCharacterEncoding("UTF-8"); +%> +<script language="JavaScript"> +function liveActionInternal(topHelpWindow, pluginId, className, argument) +{ +<% + RequestData data = new RequestData(application,request); + if(data.getMode() == data.MODE_INFOCENTER){ +%> + alert("<%=UrlUtil.JavaScriptEncode(WebappResources.getString("noLiveHelpInInfocenter", request))%>"); + return; +<% + }else{ +%> + // construct the proper url for communicating with the server + var url= window.location.href; + var i = url.indexOf("content/help:"); + if(i < 0) + i = url.lastIndexOf("/")+1; + + url=url.substring(0, i); + var encodedArg; + if(window.encodeURIComponent){ + encodedArg=encodeURIComponent(argument); + }else{ + encodedArg=escape(argument); + } + url=url+"livehelp/?pluginID="+pluginId+"&class="+className+"&arg="+encodedArg+"&nocaching="+Math.random(); + + // we need to find the toolbar frame. + // to do: cleanup this, including the location of the hidden livehelp frame. + var toolbarFrame = topHelpWindow.HelpFrame.ContentFrame.ToolbarFrame; + if (!toolbarFrame){ + return; + } + + if(toolbarFrame.liveHelpFrame){ + toolbarFrame.liveHelpFrame.location=url; + } +<% + } +%> +} +function showTopicInContentsInternal(topHelpWindow, topic) { + try{ + topHelpWindow.HelpFrame.NavFrame.displayTocFor(topic); + }catch(e){ + } +} + +</script> |