velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Byron Foster <by...@base2.cc>
Subject Re: Using jQuery with Velocity
Date Mon, 13 Jul 2009 14:10:20 GMT

On Jul 13, 2009, at 5:57 , ChadDavis wrote:

>> Without it, the following code was trying to have "datepicker"  
>> turned into a
>> velocity variable.   Not sure if it should have, but...
>>        $.datepicker.setDefaults({
>>            dateFormat: 'mm/dd/yy',
>>            showOn: 'focus',
>>            changeMonth: true,
>>            changeYear: true
>>        });
>
> I'd like to understand why this is interpreted as a Velocity reference
> though.  "." is not a legal reference name character.  Is this a bug?

Yes, this is a bug.  In my test the following:

$.x

renders as:

.x

So it simply eats the dollar sign, which isn't correct.  But the  
following:

$..x
$("foo")

renders correctly as:

$..x
$("foo")



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


Mime
View raw message