Thank you Mark spot on!

Really appreciate it




On Wednesday, February 20, 2013 3:58:28 PM UTC, Mark wrote:
>
> Not sure if you need the json.large to be compiled or if that should be 
> part of the string. The biggest issue was you had a single-quote before 
> onmouseover. After that, you have to escape the single-quote before <img 
> src and either escape the + json.large + or leave it so that Type will 
> compile it. Give this a try, I think it is what you want:
>
> large = '<a onmouseout=\"UnTip\" onmouseover=\"Tip(\'<img 
> src="'+json.large+'"/>\',LEFT, true, OFFSETY, -250, OFFSETX, 0, WIDTH, 
> 800)\" target=\"_blank\">';
>
> FYI: if you use an IDE like Eclipse, it will show you what is and isn't 
> escaped to some degree, using colored text to denote quoted strings versus 
> compiled commands.
>
> Cheers,
>
> Mark
>
> On Wed, Feb 20, 2013 at 6:25 AM, MikeKJ <mike....@paston.co.uk<javascript:>
> > wrote:
>
>> large = '<a onmouseout=\"UnTip\" 'onmouseover=\"Tip('<img 
>> src='+json.large+'/>',LEFT, true, OFFSETY, -250, OFFSETX, 0, WIDTH, 800)\" 
>> target=\"_blank\">';
>>
>> so that is comes out of the jquery call as proper html, it needs more 
>> escaping somewhere but damned if I can see it.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com <javascript:>.
>> To post to this group, send email to django...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to