Not able to preview javascript results in browser

Posted: 05-03-2005, 05:32 PM
i have inherited a web site with several -- <script language="Javascript"
src="../scripts/xxxx.js"></script> -- statements in each page, and i cannot see
the images or navigation bars these scripts are building when i preview in any
browser. not having much experience with javascript, i assume this means they
are "server side" and i need to set up a test server with some sort of
interpreter installed on my laptop to see their results in preview mode? ...
please help

thank you ... wynne

Reply With Quote

Responses to "Not able to preview javascript results in browser"

Nancy Gill
Guest
Posts: n/a
 
Re: Not able to preview javascript results in browser
Posted: 05-03-2005, 06:01 PM
Actually .. JavaScript is usually client side .. at least navigational type
scripts. You should be able to see them .. is JavaScript turned on in your
browser? I also notice that you are going up a level to find the script ..
do you have the site set up correctly so the script is being found?

The kind of JavaScript that is server side is ASP/JS.


--
Nancy Gill
Team Macromedia Volunteer for Dreamweaver MX/UltraDev
http://www.macromedia.com/go/team/
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

"Wynnefield" <webforumsuser@macromedia.com> wrote in message
news:d5892e$6fg$1@forums.macromedia.com...
> i have inherited a web site with several -- <script language="Javascript"
> src="../scripts/xxxx.js"></script> -- statements in each page, and i
cannot see
> the images or navigation bars these scripts are building when i preview in
any
> browser. not having much experience with javascript, i assume this means
they
> are "server side" and i need to set up a test server with some sort of
> interpreter installed on my laptop to see their results in preview mode?
....
> please help
>
> thank you ... wynne
>

Reply With Quote
Wynnefield
Guest
Posts: n/a
 
Re: Not able to preview javascript results in browser
Posted: 05-03-2005, 08:23 PM
hi nancy ... thank you for the rapid response.

the scripts are being "found", as the browser preview is formatted correctly;
however, the images the scripts build on the navigation bar only show the alt
text, instead of the images, and none of the text links show on the left menu
structure built by the javascript below. the strange thing is this exact same
code works just fine on our test and production web servers ... my preview
results are the same in IE, Firefox and Netscape ... missing images and text
links described by the javascripts. perhaps if i showed you some code??

press.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META http-equiv=imagetoolbar content=no>
<META content=J.C. name=author>
<STYLE type=text/css>
BODY {
FONT-SIZE: 12px;
COLOR: black;
FONT-FAMILY: verdana;
background-image: url(../images/bg_steel.jpg);
}
TD {
FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana
}
INPUT {
FONT-SIZE: 12px; COLOR: black; FONT-FAMILY: verdana
}
.style1 {color: #0000FF}
</STYLE>

<script language="JavaScript" src="../scripts/menuStructure.js"></script>
<script language="JavaScript" src="../scripts/dncpIncludes.js"></script>
<script language="JavaScript"></script>

<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
</HEAD>
<BODY bgColor=#e2e2e2 leftMargin=0 topMargin=0 marginheight="0"
marginwidth="0">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle>
<SCRIPT language=JavaScript>
setTopNavigation();
frameTopPortion();
</SCRIPT>
</TD>
<TD vAlign=top width=500><!-- document content begin -->
<TABLE cellSpacing=0 cellPadding=0 width=495 border=0>
<TBODY>
<TR>
<TD colSpan=3><IMG src="../images/s.gif" width="45" height=45></TD>
</TR>
<TR>
<TD width=6 background=../images/border/inner_top_left.gif><IMG
height=38 src="../images/s.gif" width=6></TD>
<TD width=483 background=../images/border/inner_top.gif><IMG
src="../images/press/pr_inq_blbl.gif" alt=Press width=390
height=10 hspace=26
title=Company></TD>
<TD width=6 background=../images/border/inner_top_right.gif><IMG
height=38 src="../images/s.gif" width=6></TD>
</TR>
<TR>
<TD colSpan=3><TABLE height=500 cellSpacing=0 cellPadding=0
width=495 border=0>
<TBODY>
<TR>
<TD width=1 bgColor=#596a84></TD>
<TD vAlign=top align=middle><!-- inner content begin -->
<TABLE cellSpacing=0 cellPadding=0 width=389 border=0>
<TBODY>
<TR>
<TD><IMG height=15 src="../images/s.gif"
width=1><IMG height=177
src="../images/customers/cust_map.jpg" width=428
vspace=7><BR>
<BR>
<p><a href="nigeria_airport.htm"><strong>DynCorp Begins Work on West
Africa?s Most Advanced Airport</strong></a><br>
<strong>IRVING, TEXAS</strong> &ndash; <strong>May 2, 2005</strong> &ndash;
DynCorp International, a major provider of aviation services worldwide, is
designing and building the most modern and comprehensive airport facility in
West Africa.</p>

<p><a href="veritas.htm"><strong>Veritas Capital Acquires DynCorp
International</strong></a><br>
<strong>NEW YORK</strong> &ndash; <strong>December 12, 2004</strong> &ndash;
Veritas Capital, a leading private equity firm based in New York, announced
today it has reached a definitive agreement with Computer Sciences Corporation
(NYSE: CSC) to purchase its DynCorp International LLC (&ldquo;DynCorp
International&rdquo; or the &ldquo;Company&rdquo;) subsidiary for $850 million.
The acquisition is expected to be completed in the first quarter of
2005.</p></TD>
</TR>
</TBODY>
</TABLE>
<!-- inner content end --></TD>
<TD width=1 bgColor=#596a84></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD background=../images/border/inner_bottom_left.gif><IMG
height=5
src="../images/s.gif" width=6></TD>
<TD background=../images/border/inner_bottom.gif></TD>
<TD background=../images/border/inner_bottom_right.gif><IMG
height=5
src="../images/s.gif" width=6></TD>
</TR>
</TBODY>
</TABLE>
<!-- document content end -->
<SCRIPT language=JavaScript>
frameBottomPortion();
dncpfooter();
initPage();
</SCRIPT>
</TR></TBODY></TABLE></BODY></HTML>


menuStructure.js:

titleAddon=function(t){
var ta="<br><div
style=\"font-size:10px;margin-left:24px;color:#ababab;margin-bottom:5px;\">";
ta+=t+"</div>";
return ta;
}
var siteMenu=[
{text:"Home",url:"",pid:"0.0.0.0.0",width:71},
{text:"Overview",url:"dyncorp/",pid:"1.0.1.0.0",width:89,
sub:[


{text:"Standards of Conduct",url:"standards.htm",pid:"1.1.3.0.0"},
{text:"Chronology of Events",url:"events.htm",pid:"1.1.4.0.0"},
{text:"Contact Us",url:"contact.htm",pid:"1.1.5.0.0"}

]
},
{text:"Overview",url:"capabilities/",pid:"2.0.2.0.0",width:104,
sub:[
{text:"Aviation Services",url:"as.htm",pid:"2.2.29.0.0"},
{text:"Aviation Engineering",url:"ae.htm",pid:"2.2.30.0.0"},
{text:"Facilities Operations ",url:"fos.htm",pid:"2.2.31.0.0"},
{text:"Contingency Support",url:"cs.htm",pid:"2.2.32.0.0"},
{text:"Program Management",url:"ipm.htm",pid:"2.2.33.0.0"},
{text:"Information Technology",url:"ict.htm",pid:"2.2.34.0.0"},
{text:"Logistics Support ",url:"lss.htm",pid:"2.2.35.0.0"},
{text:"Range Technical Services",url:"rts.htm",pid:"2.2.36.0.0"},
{text:"Personal Physical Security",url:"pps.htm",pid:"2.2.37.0.0"},
{text:"Marine Services",url:"ms.htm",pid:"2.2.38.0.0"}


]
},
{text:"Customers",url:"customers/",pid:"3.0.3.0.0",width:105},
{text:"Careers",url:"jobs/",pid:"4.0.4.0.0",width:88},
{text:"Overview",url:"press/",pid:"5.0.5.0.0",width:71,
sub:[

{text:"Press Releases",url:"veritas.htm",pid:"5.5.9.0.0",
sub:[
{text:"Veritas Capital",url:"veritas.htm",pid:"5.9.10.0.0"}

]
},


{text:"Events",url:"dihad2005.htm",pid:"5.5.12.0.0 ",
sub:[
{text:"IDEX 2005",url:"idex2005.htm",pid:"5.12.13.0.0"}

]

}

]

}


];

... thank you for your assistance ... wynne

Reply With Quote
Wynnefield
Guest
Posts: n/a
 
Re: Not able to preview javascript results in browser
Posted: 05-03-2005, 08:35 PM
after looking at some of the "Cannot find" messages, i.e.
file:///c:/document.htm, file:///c:/termsofuse/htm, i am thinking i might have
mucked up the linking structure by moving the web site files to my standard
site format, i.e. c:/company/website/, and these javascripts are expecting
things in the c: root directory?? what do ya think??

Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF Preview in Browser Dan_Ryerson@adobeforums.com Adobe Acrobat SDK 3 01-02-2007 07:38 PM
Preview in browser non publishers fredo the frog Macromedia Contribute General Discussion 1 07-07-2005 08:52 AM
Preview in Browser not working Jill_Ballou Macromedia Contribute General Discussion 1 06-16-2005 03:48 AM
Preview in Browser Error on Mac OS 10.2.8 hypamw Dreamweaver AppDev 3 03-26-2005 11:26 AM
Browser preview bennettian Coldfusion - Getting Started 3 02-23-2005 04:40 PM