On Wed, Feb 3, 2010 at 11:43 AM, alecwh <[email protected]> wrote:

> Hello list,
>
> I'm trying to run several javascript (specifically jQuery)  files
> through the the web.py filtering system, but I'm encountering an
> obvious problem: jQuery uses the '$' sign a lot. And that also the
> sign that the web.py templator system uses... which means I would need
> to escape all the dollar signs, like in this example:
>
>                        $(document).load(function(){
>                                $(".add_content_here form").hide();
>                                });
>                        $(document).ready(function(){
>                                $(".add_content_here
> .expand").click(function(event){
>                                        event.preventDefault();
>                                        $(".add_content_here
> form").toggle("slow");
>                                        $(".add_content_here
> span.label").toggleClass("activated");
>                                });
>
> Is there any solution to this problem? I really don't want to escape
> all the dollar signs as I'm sure there is a better way to do it. Any
> help is greatly appreciated!
>

Sorry, there is no other way. There are two ways to escape it: \$ and $$.
Pick the one that you like.

Anand

-- 
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