velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Int64 <vineetbin...@gmail.com>
Subject Velocity Variables are accepted in JavaScript Array??
Date Wed, 10 Jun 2009 06:05:12 GMT

I am developing an Ajax AutoComplete using javascript.

I have an Array in which i am adding elements.

	var suggestions = new Array();

#foreach($show in $allShowList)

suggestions.push($show);

#end

when i do the above it does not add the variables to the list(it doesnt
display then in autosuggest)

but if i do
$show="someValue"
suggestions.push($show);

Then it adds this thing

Can some1 tell me why, is it a type compatibility issue?
-- 
View this message in context: http://www.nabble.com/Velocity-Variables-are-accepted-in-JavaScript-Array---tp23956244p23956244.html
Sent from the Velocity - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message