|
Loading...
|
mason-users@lists.sourceforge.net
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [Mason] M2: protect embedded javascript against DollarDot Plugin Bill Walz Mon Apr 02 11:05:16 2012
Maybe I am missing something but I always use jQuery.somefunction(...)
or jQuery("#div_id").append(...) instead of $. or $( ) in my Perl code.
In jQuery $ is the same as jQuery.
Yes it adds a few more characters but avoids confusion.
-Bill
On 03/31/2012 11:26 AM, Oliver Paukstadt wrote:
> Hello,
>
> I am using H::M for a long time and started to play with M2 now.
> While doing some experiments porting one of my sites I had to embed some
> jQuery code:
> <%class>
> method javascript {return $self->SUPER::javascript() . q{
> $.get("/news", {}, function(d) {
> $("#news").append(d);
> });
> }; };
> </%class>
> This results in
> $self->get ("/news", {}, function(d) {
> after processing.
> Any idea how to protect or preserve the jquery DollarDot inside single
> quotes?
> $}.q{.get("/news", ... is really ugly and octal encodings are only
> available in interpolating double quotes.
>
> Greetings
> Oliver
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Mason-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mason-users
- Re: [Mason] M2: protect embedded javascript against DollarDot Plugin Roman Daniel 2012/04/01
- Re: [Mason] M2: protect embedded javascript against DollarDot Plugin Jonathan Swartz 2012/04/05
- Re: [Mason] M2: protect embedded javascript against DollarDot Plugin Oliver Paukstadt 2012/04/11
- Re: [Mason] M2: protect embedded javascript against DollarDot Plugin Jonathan Swartz 2012/04/11
- Re: [Mason] M2: protect embedded javascript against DollarDot Plugin Oliver Paukstadt 2012/04/11
- Re: [Mason] M2: protect embedded javascript against DollarDot Plugin Bill Walz 2012/04/11
- Re: [Mason] M2: protect embedded javascript against DollarDot Plugin Bill Walz 2012/04/02 <=