<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE>@font-face {
        font-family: Verdana;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-GB vLink=purple link=blue>
<DIV><SPAN class=730273516-20122004><FONT face=Arial color=#800000 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=730273516-20122004>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
color=#800000 size=2>I'm not exactly sure what a Jvar is, but why don't you just 
declare the value in your js and assign it in your aspx?&nbsp; I usually do this 
by embedding an asp:Literal in&nbsp;a small&nbsp;Javascript inside my aspx file, 
although you could also just build a string and then call 
RegisterClientScript.</FONT></SPAN></DIV>
<DIV><SPAN class=730273516-20122004><FONT face=Arial color=#800000 
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  javascript-bounces@LaTech.edu <B>On Behalf Of </B>Jessica<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Hi,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Im calling a js file from my 
  aspx pages.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">In the aspx page I set a 
  Jvar.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">In the js file, I read the Jvar 
  field.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Some aspx page does not have the 
  Jvar set.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">This returns an object not found 
  error, cos it&#8217;s looking 4 the Jvar in the aspx 
  file.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">How do I code in my js file to 
  bypass this error if there&#8217;s no Jvar in my aspx 
  file.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">js file 
  contents:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">var TrackValue = 
  Jvar;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Verdana size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">document.write('&lt;IMG id=test 
  name=test src=https://test.gif?x=' + (TrackValue)&nbsp;&nbsp; + ' 
  /&gt;&lt;br&gt;' ); <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">thanks<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">jess</SPAN><o:p></o:p></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>