Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

PHP + IE + JS (with Smarty)
I am not sure where to begin. I have a site in Perl/TT that I am converting
to PHP/Smarty. I have a menuing system that is built using a chained
javascript. Using Perl/TT it works in both IE6 and Firebird 1.0 but the
PHP/Smarty version only works in Firebird.

If I look at the source of the page in IE everything is "loading" just not
displaying:

<html>
<head>
<title>Ellipse Reports » Home</title>
<link rel="shortcut icon" href="images/favicon.ico" />
<!--[if IE]>
<link href="css/ie_main.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="styles/main.css"
title="Default" /
<script language="javascript" src="js/chainedmenu.js"></script>
<script language="javascript" src="js/config.js"></script>
</head>

This is the form that the menu system resides in:

<div id="menu">
<form name="listmenu0">
<select name="firstlevel" style="width:195px;"></select>
<select name="secondlevel" style="width:195px;"></select>
<select name="thirdlevel" style="width:195px;"></select>
<input type="button" value="Go"
onclick="goListGroup(document.listmenu0.firstlevel,
document.listmenu0.secondlevel, document.listmenu0.thirdlevel)">
<input type="button" value="Reset"
onclick="resetListGroup('chainedmenu')">
</form>
</div>

I am pulling both of the sections in with the following:

{include file="header.tpl}
{include file="menu.tpl"}

Any suggestions as to why the Perl side works but the PHP side doesn't?

Robert

Report this thread to moderator Post Follow-up to this message
Old Post
Robert
12-17-04 08:59 PM


Re: PHP + IE + JS (with Smarty)
* Robert <sigzero@gmail.com>:
> I am not sure where to begin. I have a site in Perl/TT that I am convertin
g
> to PHP/Smarty. I have a menuing system that is built using a chained
> javascript. Using Perl/TT it works in both IE6 and Firebird 1.0 but the
> PHP/Smarty version only works in Firebird.

You mean Firefox, right? (Silly project kept changing names!)

> If I look at the source of the page in IE everything is "loading" just not
> displaying:
>
> <html>
> <head>
> <title>Ellipse Reports » Home</title>
> <link rel="shortcut icon" href="images/favicon.ico" />
> <!--[if IE]>
> <link href="css/ie_main.css" rel="stylesheet" type="text/css" />
> <![endif]-->
> <link rel="stylesheet" type="text/css" href="styles/main.css"
> title="Default" /

I think your culprit is this link tag directly above -- it's not closed.

--
Matthew Weier O'Phinney           | mailto:matthew@garden.org
Webmaster and IT Specialist       | http://www.garden.org
National Gardening Association    | http://www.kidsgardening.com
802-863-5251 x156                 | http://nationalgardenmonth.org

Report this thread to moderator Post Follow-up to this message
Old Post
Matthew Weier O'Phinney
12-17-04 08:59 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:51 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.