Project

General

Profile

« Previous | Next » 

Revision 3726

Added by Jing Tao about 16 years ago

Change the relative path to use a function getServerName+getPortNumber+getContextPath. But there is still problem in default.js.

View differences:

default.js
82 82
//  exist unless it is resized smaller) . 
83 83
//  ( e.g. if you do not want a header to be included, set: HEADER_URL="";)
84 84
////////////////////////////////////////////////////////////////////////////////
85
var SERVER_URL_WITH_CONTEXT = "http://chico.dyndns.org/knb";
85 86

  
86

  
87 87
//  Location of the header that will be displayed at the top of the page
88 88
var HEADER_URL 
89
  = "./include_header.jsp";
89
  = SERVER_URL_WITH_CONTEXT+"/style/skins/default/include_header.jsp";
90 90

  
91 91
// Location of the search box that will be displayed above the  
92 92
//  results on the results page (optional)
93 93
var SEARCHBOX_URL 
94
  = "./include_searchbox.jsp";
94
  = SERVER_URL_WITH_CONTEXT+"/style/skins/default/include_searchbox.jsp";
95 95

  
96 96
// Location of the advanced search box
97 97
var ADVANCED_SEARCHBOX_URL 
98
  = "./include_advancedsearch.jsp";
98
  = SERVER_URL_WITH_CONTEXT+"/style/skins/default/include_advancedsearch.jsp";
99 99

  
100 100
var LOGINBOX_URL
101
  = "./include_login.jsp";
101
  = SERVER_URL_WITH_CONTEXT+"/style/skins/default/include_login.jsp";
102 102

  
103 103
var MAP_URL
104
  = "./include_map.jsp";
104
  = SERVER_URL_WITH_CONTEXT+"/style/skins/default/include_map.jsp";
105 105

  
106 106
//  Location of the header that will be displayed at the top of the page
107 107
var LEFTCOL_URL 

Also available in: Unified diff