...

View Full Version : can't seem to get this link to work



canadianjameson
07-06-2005, 07:08 PM
hey. I'm embarrased to be asking this but i cant seem to figure out why this wont work.

okay, here's the file online:
w ww.enviromark.ca/english/prodInfo/Intempco/humidity/HTX.htm

here's where the js file i cant seem to access is located:
w ww.enviromark.ca/english/js/floatPrintOneLower.js

so here's the code i have on the HTX page:

<div id="watermarklogo" class="notPrinted" style="position:absolute;"></div>
<script src="../../../../js/floatPrintOneLower.js"></script>

now this should be working but it isn't....

i also tried <script src="../../../js/floatPrintOneLower.js"></script> with no luck

any ideas?

jscheuer1
07-06-2005, 08:03 PM
Absolute path:

<script src="http://www.enviromark.ca/english/js/floatPrintOneLower.js" type="text/javascript"></script>If my math skills are working, ../../../ should work. Also, including the type attribute wouldn't be a bad idea. Maybe the file isn't really there or has a slightly different name/pathname than you think on the server. Maybe the script itself is invalid.

Kurashu
07-06-2005, 08:18 PM
Some browsers don't like relative paths too.

canadianjameson
07-06-2005, 09:18 PM
k this is really weird. even with the absolute link it still wont show up. its supposed to show a little print icon in the top righthand corner (just like here)
www.enviromark.ca/english/prodInfo/Scaletron/Crane_Scales/Crane_Scales.htm

here's the code i have for the page that it wont work on... i've put in the absolute link here but the ../... thing is the same as the link above, so it should be
<div id="watermarklogo" class="notPrinted" style="position:absolute;"></div>
<script src="../../../js/floatPrint.js"></script> (when not absolute)

here's the code, try it out for yourselves :/


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content=Isometriq name=AUTHOR>
<META content="Intempco aims to develop and manufacture innovative industrial instrumentation products which meet the special needs of its customers."
name=DESCRIPTION>
<META content="intempco controls ltd,icl,intempco,sensor,controllers,rtd,thermocouple,humidity sensor,temperature sensor,level sensor,tmr,hvac,quality,instrumentation,qualite,sonde,controlleur,mist,canada,transmitter,transmette ur,level switch,fuji"
name=KEYWORDS>
<META http-equiv=Pragma content=no-cache>
<META http-equiv=expires content=0>
<LINK href="../images/intempco.css" type=text/css rel=stylesheet>

<script type=text/javascript>
function newWinPDF(urlLoc) {
_winName = "PDFview";
_info = "toolbar=yes"; // yes|no
_info += ",location=no"; // yes|no
_info += ",directories=no";// yes|no
_info += ",status=no"; // yes|no
_info += ",menubar=no"; // yes|no
_info += ",scrollbars=yes";// yes|no
_info += ",resizable=yes"; // yes|no
_info += ",dependent"; // close the parent, close the popup, omit if you want otherwise
DispWin=window.open(urlLoc,_winName,_info);
DispWin.focus()
}
</script>

</HEAD>
<BODY bottomMargin=0 bgColor=#ffffff leftMargin=0 topMargin=0 rightMargin=0 marginheight="0" marginwidth="0">
<div id="watermarklogo" class="notPrinted" style="position:absolute;"></div>
<script src="http://www.enviromark.ca/english/js/floatPrint.js" type="text/javascript"></script>
<br>
<TABLE cellSpacing=0 cellPadding=0 width=640 align=center border=0>
<TBODY>
<TR>
<TD vAlign=center background="../images\bg(3).gif">
<TABLE height=31 cellSpacing=0 cellPadding=0 width=175 border=0>
<TBODY>
<TR>
<TD width=20><IMG src="../images/pixel.gif" width=20 heigth="1"></TD>
<TD class="Big White Bold"
vAlign=center>HTX</TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD class=BorderGray
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 1px"
noWrap align=right background=../images/head.gif>HVAC Humidity
Transmitters<IMG height=22 src="../images/pixel.gif" width=20
align=absMiddle><BR></TD></TR>
<TR> <TD class=BorderGray
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 1px"
align=middle>
<TABLE cellSpacing=0 cellPadding=0 width=600 border=0> <TBODY>
<TR><!-- LEFT COLUMN : IMAGE, DESCRIPTION -->
<TD vAlign=top align=left width=280><BR>
<DIV align=center><IMG height=200 alt=HTX src="../images/hsa.jpg"
width=200></DIV><BR><IMG height=28 alt=Description
src="../images/description.gif" width=280><BR>The INTEMPCO HTX
series humidity transmitters offer high accuracy, low cost humidity,
and temperature measurement that can withstand tough industrial and
HVAC applications. The rugged solid state sensor has high chemical
contamination resistance and handles extreme ventilation conditions,
like swimming pool environments, with ease. Even water immersion of
the sensor will not damage it!<BR><BR></TD><!-- GAP -->
<TD width=50><IMG height=1 src="../images/pixel.gif" width=50></TD><!-- RIGHT COLUMN : FEATURES, APPLICATION, DOWNLOADS -->
<TD vAlign=top width=270><BR>
<TABLE height=140 cellSpacing=0 cellPadding=0 width=270 border=0>
<TBODY>
<TR>
<TD vAlign=center align=middle><A class="Gray NoDecoration"
tabIndex=-1
href="javascript:newWinPDF('htx.pdf')"><IMG
height=49 src="../images/pdf_en.gif" width=63
border=0><BR><BR>Specsheet<BR></A><BR></TD></TR></TBODY></TABLE><BR>
<TABLE cellSpacing=0 cellPadding=0 width=270 border=0>
<TBODY>
<TR>
<TD class="BgGray BorderGrayDark"
style="BORDER-BOTTOM-WIDTH: 0px" colSpan=2><IMG height=22
src="../images/features_en.gif" width=270></TD></TR>
<TR>
<TD class=BorderGrayDark>
<OL
style="PADDING-RIGHT: 0px; LIST-STYLE: square url(images/content/assets/square_gray.gif) outside; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 15px 15px 20px 32px; PADDING-TOP: 0px">
<LI
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px 0px; PADDING-TOP: 0px">Low
Cost<BR>
<LI
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px 0px; PADDING-TOP: 0px">On-Board
Zero And Span Adjustments<BR>
<LI
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px 0px; PADDING-TOP: 0px">Rugged
design using Solid State Sensors<BR>
<LI
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px 0px; PADDING-TOP: 0px">High
Accuracy ( 3% over 0 to 90% RH Standard)<BR>
<LI
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px 0px; PADDING-TOP: 0px">2
Wire, Loop powered Operation (4-20 mA Output)<BR>
<LI
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px 0px; PADDING-TOP: 0px">Temperature
Compensated Humidity Measurement<BR>
<LI
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px 0px; PADDING-TOP: 0px">Factory
Calibrated ( 0 - 100% RH Standard, Custom Ranges Available
)<BR>
<LI
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px 0px; PADDING-TOP: 0px">Integrated
Loop powered Temperature Transmitter
Available<BR></LI></OL></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD><IMG height=18 src="../images/foot_left.gif" width=7><IMG height=18
src="../images/foot_bg.gif" width=619><IMG height=18
src="../images/foot_right.gif" width=14></TD></TR></TBODY></TABLE>
</BODY></HTML>


any ideas why it wont show up?

jscheuer1
07-06-2005, 11:14 PM
It is this line in the stylesheet for the page (http://www.enviromark.ca/english/prodInfo/Intempco/images/intempco.css):

.notPrinted { display: none; }Remove it and put this on the page itself (in the head):

<style type="text/css" media="print">
.notPrinted { display: none; }
</style>Then, as long as you have the path to the script right:

<script src="../../../js/floatPrint.js" type="text/javascript"></script>it will work. Also, you are missing:

<html><head>which, of course, should follow the doctype.

Willy Duitt
07-07-2005, 03:54 PM
Try starting at the root and travese back up the directory structure...

./english/js/floatPrintOneLower.js

canadianjameson
07-07-2005, 05:32 PM
see below

canadianjameson
07-07-2005, 06:08 PM
okay, i fixed it and i dont know how...

i'm going to take a nap :|

jscheuer1
07-07-2005, 10:36 PM
Unless you changed something since the links you gave out prior to my previous post in this thread, that post has the answer. It was rigorously tested.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum