onMouseOver: and SUStream problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

onMouseOver: and SUStream problem

Martin Polák
Hi there,
 I'm trying to insert some custom JS code into onMouseOver: of span, but I
have some troubles with it. My code actually looks like:

html span class: 'hotspot';
                onMouseOver: (SUStream on: 'tooltip.show(''<strong>Hello</strong>'');');
                onMouseOut: (SUStream on: 'tooltip.hide();');
                with: [html text: 'Hi']

 The result in generated HTML is like this:

<span class="hotspot"
onmouseover="tooltip.show('&lt;strong&gt;Hello&lt;/strong&gt;');"
onmouseout="tooltip.hide();">

 and this is the problem - both < and > characters are encoded, thus
"strong" does not act as tag and is ignored by a browser. Is there any
solution?

Thanks
Martin

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: onMouseOver: and SUStream problem

Lukas Renggli
>  and this is the problem - both < and > characters are encoded, thus
> "strong" does not act as tag and is ignored by a browser. Is there any
> solution?

The encoding is correct and it works well for me in Safari, FireFox
and Internet Explorer.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: onMouseOver: and SUStream problem

Martin Polák
Thanks,
  everything is ok. That was my stupidy, as I'm using CSS with  
<strong> having same look like normal text. So I thought, that  
<strong> had now effect.

Martin



On 9.12.2008, at 10:50, Lukas Renggli wrote:

The encoding is correct and it works well for me in Safari, FireFox

> and Internet Explorer.
>
> Cheers,
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside