Connecting Tech Pros Worldwide Help | Site Map

javascipt .js inclueds in a php html echo

Chris Dean
Guest
 
Posts: n/a
#1: Jul 16 '05
Hi I'm useing the php NUKE CMS and am designing a theme
for it. this basically consists of the the main html structure of the page
being produced line by line from php echo commands

I have a javascript menu system I want to use which is held in an external
..js file
so I try to echo out the relevent <script></script> startements to load up
this file
however it's not showing up on the page - however the static html version of
the
page works fine

Any ideas???

If you need more explaination please ask

TIA

Chris

--
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=

Chris Dean, Schools Outreach Project, Vega Science Trust
University of Sussex, Falmer, Brighton. East Sussex. BN1 9QJ. UK.

Tel.: +44 (0) 1273 87 72 93
Email: kaur1@sussex.ac.uk
Web: www.vega.org.uk

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=


Chris Dean
Guest
 
Posts: n/a
#2: Jul 16 '05

re: javascipt .js inclueds in a php html echo


Look at the source of this page

http://vega-movie.central.sussex.ac.uk/~nuke/

the first thing after the opening body tag is the javascipt I want to load
up
it should produce a menu as is at the top of
http://vega-movie.central.sussex.ac.uk/

BTW: I didn't choose the colourscheme I just have to work with it

If this is no help the relevent part of the php is as follows:

function themeheader() {

echo "<body bgcolor=\"FF0000\" text=\"ffffff\" link=\"0000ff\"
vlink=\"0000ff\">"

.."<script type=\"text/javascript\" src=\"themes/vega/menu.js\"></script>";

if ($banners) {
include("banners.php");
}

echo"<table border=\"0 cellpadding=\"4\" cellspacing=\"0\" width=\"100%\"
align=\"center\"><tr><td bgcolor=\"FF0000\">"

.."<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\"
bgcolor=\"FF0000\"><tr><td>"

.."<a href=\"index.php\"><img src=\"themes/ExtraLite/images/logo.gif\"
alt=\"Welcome to $sitename\" title=\"Welcome to $sitename\"
border=\"0\"></a>"

.."</td><td align=\"right\">"

.."<form action=\"modules.php?name=Search\" method=\"post\">"

.."<font class=\"content\">Search"

.."<input type=\"text\" name=\"query\">"

.."</font></form>"

.."</td></tr></table></td></tr><tr><td valign=\"top\" width=\"100%\"
bgcolor=\"FF0000\">";


"Juha Suni" <juha.suni@ilmiantajat.fi> wrote in message
news:bg8dkn$48c$1@news1.songnet.fi...[color=blue]
>
> "Chris Dean" <me@[remove this]christopher-dean.fsnet.co.uk> wrote in[/color]
message[color=blue]
> news:bg83m4$l2q$1@ames.central.susx.ac.uk...[color=green]
> > Hi I'm useing the php NUKE CMS and am designing a theme
> > for it. this basically consists of the the main html structure of the[/color][/color]
page[color=blue][color=green]
> > being produced line by line from php echo commands
> >
> > I have a javascript menu system I want to use which is held in an[/color][/color]
external[color=blue][color=green]
> > .js file
> > so I try to echo out the relevent <script></script> startements to load[/color][/color]
up[color=blue][color=green]
> > this file
> > however it's not showing up on the page - however the static html[/color][/color]
version[color=blue]
> of[color=green]
> > the
> > page works fine[/color]
>
> Are these <script> lines showing up in the html source of the php-page[/color]
when[color=blue]
> you view it in your browser. If they are, they possibly have typos[/color]
somewhere[color=blue]
> there, which you should be able to catch this way.
>
> Otherwise you better show us the php-code (the lines that echo the
> javascript) if you want help.
>
> --
> Suni
>
>[/color]


Closed Thread