You can use noConflict() mode for jQuery so it doesn't use the $ symbol.

http://docs.jquery.com/Using_jQuery_with_Other_Libraries 

On Wed, 2007-12-26 at 19:25 +1000, Arnold Somogyi wrote:
> Hi,
> 
> I have been using Velocity Engine 1.5 to render html pages. It is very
> good and robostus engine. I have been building a lots of web pages
> width i18n (internationalization and localization) and Velocity engine
> help for me to switch in run time the labels on web page from
> database. It is working very good (I made a good and easy web
> developing framework).
> 
> 
> Now, I need to write some internationalized java script files. I want
> to use Velocity engine for simple assignment in my JavaScript code:
>     var msgLoading = "$msgLoading";
>     var msgDone = "$msgDone";
> 
> I made a servlet which catch the all http/https *.js request and
> replace all velocity tokens with real value from database. It is
> working but I have a little and important problem:
> My favorite JavaScript prototype is jQuery. This prototype use very
> often the $ symbol. I try to use Velocity engine with jQuery but
> sometimes it is not working good because there are some character
> combination in jQuery source code which begin with $ character. Of
> course I do not assign value to these velocity tokens.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to