For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > December 2004 > PHP + IE + JS (with Smarty)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP + IE + JS (with Smarty)
Robert

2004-12-17, 3:59 pm

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
Matthew Weier O'Phinney

2004-12-17, 3:59 pm

* Robert <sigzero@gmail.com>:
> 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.


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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com