For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > January 2005 > Re: [SMARTY] Popup's and array problem









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 Re: [SMARTY] Popup's and array problem
Messju Mohr

2005-01-05, 3:59 pm

On Wed, Jan 05, 2005 at 01:34:52PM +0100, Mattias Hallström wrote:
> Hi,
>
>
>
> I am experiencing a problem with the popup-function when I try to use a
> variable in an array as text.
>
>
>
> This is what my popup call looks like:
>
> {popup text="$task.priorityName"}


you want {popup text=$task.priorityName}
or something from http://smarty.php.net/manual/en/lan...ntax.quotes.php

HTH
messju

> This is what generates by smarty:
>
> onmouseover="return overlib('Array.priorityNumber prio');"
> onmouseout="nd();"
>
>
>
> $task.priorityName should be ok, because I can use it to write out it’s text
> as usual.
>
> This is what it looks like from the debug window:
>
> {$task}Array (7)
> id => 1
> name => adsfasdf
> description => asdf
> reportedWhen => 2004-12-29 12:15:00
> priorityName => Normal
> priorityNumber => 2
> taskStatusName => Ej påbörjad
>
>
>
> Anyone got a clue? It looks like a bug to me..
>
>
>
> Hope you all had a great new year :-)
>
>
>
> //Mattias Hallström
>
> Problem – Intelligent Web Solutions Sweden
>

Mattias Hallström

2005-01-05, 3:59 pm

> > I am experiencing a problem with the popup-function when I try to =
use a
>=20
> you want {popup text=3D$task.priorityName}
> or something from
> http://smarty.php.net/manual/en/lan...ntax.quotes.php


Ah, ofcourse :-)
Thanks a lot for helping out Massju!

//Mattias Hallstr=F6m
Problem - Intelligent Web Solutions Sweden
Sponsored Links







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

Copyright 2008 codecomments.com