RE: [SMARTY] Question - newbie

From: Date: Thu, 30 May 2002 18:07:37 +0000
Subject: RE: [SMARTY] Question - newbie
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4464@lists.php.net to get a copy of this message
{literal}{/literal} did the trick thanks MishY dan mccullough web technology garnethill.com 603.823.5545 x 1119 ________________________________ There is no such thing as a problem, unless the servers are on fire. Sometimes great opportunity comes brilliantly disguised as bad news. -----Original Message----- From: Dan McCullough Sent: Thursday, May 30, 2002 1:59 PM To: Dan McCullough; Smarty Subject: RE: [SMARTY] Question - newbie BTW this does work, its not the javascript itself. http://family.mccullough-net.com/menu.html thats an example of what I am putting in nav.tpl dan mccullough web technology garnethill.com 603.823.5545 x 1119 ________________________________ There is no such thing as a problem, unless the servers are on fire. Sometimes great opportunity comes brilliantly disguised as bad news. -----Original Message----- From: Dan McCullough [mailto:dmccullough@garnethill.com] Sent: Thursday, May 30, 2002 1:57 PM To: Smarty Subject: [SMARTY] Question - newbie Hello, Hopefully this is a quick question. I am including some client side js, and a js file. Now I get this error and where the error points to is line 10 in my nav.tpl file, which is all this client side javascript. Why? heres the snippet and the a few lines following. okay actually is the whole top area, I'll mark the line in question with an --> -------------------------------------------------------------------- <script language="javascript" src="ypSlideOutMenusC.js"></script> <script language="javascript"> var menus = [ new ypSlideOutMenu("menu1", "down", 5, 80, 170, 59), new ypSlideOutMenu("menu2", "down", 57, 80, 170, 40), new ypSlideOutMenu("menu3", "down", 147, 80, 170, 97), new ypSlideOutMenu("menu4", "down", 237, 80, 170, 21) ] --> for (var i = 0; i < menus.length; i++) { menus[i].onactivate = new Function("document.getElementById('act" + i + "').className='active';"); menus[i].ondeactivate = new Function("document.getElementById('act" + i + "').className='';"); } </script> --------------------------------------------------------------------- here is the error message I get. --------------------------------------------------------------------- Fatal error: Smarty: [in nav.tpl line 10]: syntax error: invalid attribute name - '=' in /home/httpd/vhosts/family.mccullough-net.com/httpdocs/Smarty_Compiler.class. php on line 1387 -------------------------------------------------------------------- thanks, dan mccullough web technology garnethill.com 603.823.5545 x 1119 ________________________________ There is no such thing as a problem, unless the servers are on fire. Sometimes great opportunity comes brilliantly disguised as bad news. -----Original Message----- From: LIMBOURG Arnaud [mailto:arnaud.limbourg@cegetel.fr] Sent: Thursday, May 30, 2002 10:47 AM To: Smarty Subject: RE: [SMARTY] Suggestion - track_globals off compatibility I know track_vars and register globals but certainly not track_globals ... > In smarty.class.php - replace: > > $GLOBALS['QUERY_STRING'] > > ...with... > > $GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'] > > > > This should make this class track_globals off compatibile > (and thus, PHP 4.2.0+ compatibile too). > > PS. Maybe this kind of fix should be also implemented for other > $GLOBALS calls - e.g. $GLOBALS['HTTP_IF_MODIFIED_SINCE'] ??? > > > > Greetings, > --- Michal > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#4464) next »