Project

General

Profile

« Previous | Next » 

Revision 3729

use the servlet context path to construct absolute paths to the various file locations

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";
86 85

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

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

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

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

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

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

Also available in: Unified diff