Yes. Move all JavaScript to external files. If you use jQuery in your
template in order to make script responses, that's a different
problem. Then you must use the hack you have there, or use $$ instead
of $. Double-dollar translates to a single dollar character when the
templates are rendered.

On Thu, May 19, 2011 at 4:28 PM, Andre Smit <[email protected]> wrote:
> jQuery uses the $ sign as a shortcut for jQuery. This conflicts with the $
> in web.py templates. I can get around this using:
>
> [code]
> var jq=jQuery.noConflict();
> [/code]
>
> which means finding/replacing all the $s with jq in the js scripts. This is
> painful for large github scripts updated regularly. Any solution to this.
> Not sure if web.py has a noConflict type function.
>
> tia
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to