473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

javascipt .js inclueds in a php html echo

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: ka***@sussex.ac.uk
Web: www.vega.org.uk

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=
Jul 16 '05 #1
1 2896
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" <ju*******@ilmiantajat.fi> wrote in message
news:bg**********@news1.songnet.fi...

"Chris Dean" <me@[remove this]christopher-dean.fsnet.co.uk> wrote in message news:bg**********@ames.central.susx.ac.uk...
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
Are these <script> lines showing up in the html source of the php-page

when you view it in your browser. If they are, they possibly have typos somewhere 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

Jul 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Gregory | last post by:
Hello, I'm trying to do the above in order to process an image and return the result to an html image control. It fails and my key suspects are either the variable that I'm passing in -...
3
by: josh dismukes | last post by:
/// here is the code i'm getting a parse error on the last line of the code which /// is </html> any help will be much appreciated. <?php session_start ();
9
by: Domestos | last post by:
Here an unusual one... Say i am writing a few lines of code in php script as so... <?php echo '<table>'; echo '<tr>'; echo '<td> blah blah </td>'; echo '</tr>'; echo '</table>';
13
by: Ray Muforosky | last post by:
Hello all: Task: I want to do file search, using the "conatining text" option from a web page. How do I search for a file on my local drive containing a certain string, from a web page. That...
26
by: webrod | last post by:
Hi, I have some php pages with a lot of HTML code. I am looking for a HTML validator tool (like TIDY). TIDY is not good enough with PHP tags (it removes a lot of php code). Do you have any...
4
tolkienarda
by: tolkienarda | last post by:
hi all i am printing out a bunch of html code with a php script and i am not sure if my html syntax or my php syntax, everything works and displays the way i want but the width tags for the text...
1
by: sheel331 | last post by:
Hello, I am new to coding in PHP, and had a question about a simple thing: I am trying to echo out the elements of an array for a sidenav in one of my HTML pages, and I can't seem to figure out...
1
by: joe | last post by:
I often would like see the HTML output produces by my Javascipt code for debugging. Is this possible?
32
by: Request-1 | last post by:
hi folks, html coder here, new and terrified * of php!! aaaaaa! i'm trying to bury a JS script to rotate a photo, in a page i converted from html to php. the conversion went well, it was to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.