473,661 Members | 2,465 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2908
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=\"FF000 0\" text=\"ffffff\" link=\"0000ff\"
vlink=\"0000ff\ ">"

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

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

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

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

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

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

.."<form action=\"module s.php?name=Sear ch\" 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=\"FF000 0\">";
"Juha Suni" <ju*******@ilmi antajat.fi> wrote in message
news:bg******** **@news1.songne t.fi...

"Chris Dean" <me@[remove this]christopher-dean.fsnet.co.u k> 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
13067
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 - ImageName - for processing, or the return data which is done (or not as the case may be) by imagejpeg($img) in the script, after header("Content-type: image/jpeg"). Any insights would be most welcome, especially debugging techniques and a pointer to...
3
2927
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
3415
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
1905
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 is, how do run the windows search program from a web page. Any help will be appreciated.
26
25604
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 idea? Thanks you very much
4
1659
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 inputs don't work, anyway here is the php code that prints the html $result = mysql_query("SELECT * FROM costs"); while ($row = mysql_fetch_row($result)) { $final = $row + $row; $savings = $row - $final; echo '<tr>'; echo...
1
2531
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 the syntax for appending the element of the array into the path to the file. Here is the code I have: <?php include 'c:\inetpub\webroot\sheel\template\navbar.html';
1
1481
by: joe | last post by:
I often would like see the HTML output produces by my Javascipt code for debugging. Is this possible?
32
2629
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 use a php session cookie to stop the repeating of an embedded video file on a per session basis; i amended the php code to display a still pic if the session cookie value
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8754
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8542
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7362
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4343
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2760
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1984
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1740
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.