<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Re: [Seaside] Tooltip in Seaside 2.8 Not Working</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Yes, #with: should always be last as it closes the tag.<BR>
<BR>
Cheers!<BR>
<BR>
-Boris<BR>
(Sent from a BlackBerry)<BR>
<BR>
----- Original Message -----<BR>
From: seaside-bounces@lists.squeakfoundation.org <seaside-bounces@lists.squeakfoundation.org><BR>
To: Seaside - general discussion <seaside@lists.squeakfoundation.org><BR>
Sent: Sun Aug 26 16:47:35 2007<BR>
Subject: Re: [Seaside] Tooltip in Seaside 2.8 Not Working<BR>
<BR>
Thanks Conrad,<BR>
I tried the following, but couldn't succeed.<BR>
<BR>
MyWebApp>>renderContentOn: html<BR>
<BR>
html paragraph: [<BR>
(html anchor)<BR>
id: 'link';<BR>
url: '#';<BR>
with: 'Activator';<BR>
title: 'ToolTip content' ].<BR>
<BR>
<BR>
<BR>
The tooltip is not shown.<BR>
<BR>
<BR>
Then I tried putting title: before with:, it works now.<BR>
<BR>
MyWebApp>>renderContentOn: html<BR>
<BR>
html paragraph: [<BR>
(html anchor)<BR>
id: 'link';<BR>
url: '#';<BR>
title: 'ToolTip content' ;<BR>
with: 'Activator' ].<BR>
<BR>
<BR>
Thanks for the hint.<BR>
Rajeev<BR>
<BR>
<BR>
<BR>
<BR>
On 8/27/07, Conrad Taylor < conradwt@gmail.com <<A HREF="mailto:conradwt@gmail.com">mailto:conradwt@gmail.com</A>> > wrote:<BR>
<BR>
Hi Rajeev, you should try using the 'title' attribute on the anchor tag. Please see the following reference:<BR>
<BR>
<A HREF="http://www.w3schools.com/xhtml/xhtml_standardattributes.asp">http://www.w3schools.com/xhtml/xhtml_standardattributes.asp</A> <<A HREF="http://www.w3schools.com/xhtml/xhtml_standardattributes.asp">http://www.w3schools.com/xhtml/xhtml_standardattributes.asp</A>><BR>
<BR>
Good luck,<BR>
<BR>
-Conrad<BR>
<BR>
<BR>
<BR>
<BR>
On 8/26/07, Rajeev Lochan <lochan94@gmail.com <<A HREF="mailto:lochan94@gmail.com">mailto:lochan94@gmail.com</A>> > wrote:<BR>
<BR>
Hi,<BR>
I went through Ramon's screencast to rectify the mistake I had committed yesterday while uploading. Now I have uploaded version 11.<BR>
<BR>
In the tooltip package, you need to click on the paragraph or anchor for the tooltip to be displayed. I am now tweaking around to have tooltip on any element, when the mouse is hovered on it.<BR>
<BR>
I figured out you have 2 ways of doing it.<BR>
<BR>
a) Using CSS :<BR>
<BR>
<A HREF="http://www.communitymx.com/content/article.cfm?page=1&cid=4E2C0">http://www.communitymx.com/content/article.cfm?page=1&cid=4E2C0</A> <<A HREF="http://www.communitymx.com/content/article.cfm?page=1&cid=4E2C0">http://www.communitymx.com/content/article.cfm?page=1&cid=4E2C0</A>><BR>
<BR>
But, I couldn't achieve this as this is done in pure html and I am not aware of equivalent smalltalk/seaside code for this. What is the equivalent of the following html<BR>
<BR>
<p><BR>
Some filler text...<BR>
<a href="#">Link text<span>Tooltip text!</span></a><BR>
...Some more filler text...<BR>
</p><BR>
<BR>
<BR>
b) Using Javascripts.<BR>
<BR>
one of the best google result is <A HREF="http://www.nickstakenburg.com">http://www.nickstakenburg.com</A> <<A HREF="http://www.nickstakenburg.com/projects/prototip/">http://www.nickstakenburg.com/projects/prototip/</A>> /projects/prototip/ <<A HREF="http://www.nickstakenburg.com/projects/prototip/">http://www.nickstakenburg.com/projects/prototip/</A>><BR>
<BR>
I tried to explore it. Since, my javascript background isn't that strong, I couldn't figure out on what would be equivalent seaside code.<BR>
<BR>
<BR>
Well, as a matter of fact, there is already tooltip used in one place. In inPlaceEditor, we have "clickAndEdit". I am presently going through controlsJs, but not much progress either.<BR>
<BR>
<BR>
Nowadays, almost all frameworks have a default tooltip attribute, cant we have one in Seaside. I can help out in this. Either using CSS or Javascript. Though Seaside website ( www.seaside.st <<A HREF="http://www.seaside.st">http://www.seaside.st</A>> ) has tooltips on almost all anchors which display the anchor name itself which I think is mere redundancy.<BR>
<BR>
<BR>
Regards,<BR>
Rajeev<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
On 8/27/07, Philippe Marschall <philippe.marschall@gmail.com> wrote:<BR>
<BR>
2007/8/26, Rajeev Lochan <lochan94@gmail.com>:<BR>
> Thanks Philippe,<BR>
><BR>
> I tweaked around and changed the mentioned methods. Now I have a working<BR>
> model. I have attached Reflection-raj.0.mcz with this mail. I tried to<BR>
> upload on Seachart, but couldn't as probably, I dont have permission to do<BR>
> so.<BR>
<BR>
That's strange. The repository has public write access. Anyway I added<BR>
you as a developer. Contact me if you have any further problems.<BR>
<BR>
> Anyways, you please upload it.<BR>
<BR>
Done. I made some small changes.<BR>
<BR>
> Why is it that IE behaves so different from Firefox. I am almost done with<BR>
> my new web app using Seaside. Now, CSS looks good with Firefox, but when I<BR>
> open in IE, everything is in a poor state. Can you suggest any reference<BR>
> material from where I can pick up hints on what changes I have to make in<BR>
> CSS for IE. I am thinking of using userAgent method to find out which<BR>
> browser it is and render the CSS accordingly.<BR>
<BR>
Welcome to the real world. IE is the scourge of web development. It is<BR>
the browser with the worst standards support. With IE 7 things are a<BR>
bit less bad than in IE 6 but still worse than anywhere else. If you<BR>
consider doing specif stuff for IE consider conditional comments. They<BR>
work really reliably.<BR>
<BR>
Cheers<BR>
Philippe<BR>
<BR>
> Thanks again.<BR>
><BR>
><BR>
> On 8/26/07, Philippe Marschall < philippe.marschall@gmail.com> wrote:<BR>
> > 2007/8/26, Rajeev Lochan < lochan94@gmail.com <<A HREF="mailto:lochan94@gmail.com">mailto:lochan94@gmail.com</A>> >:<BR>
> > > Thanks Philippe,<BR>
> > > I downloaded and checked it out. It works fine now. If my observations<BR>
> go<BR>
> > > right, you have made the following changes.<BR>
> > ><BR>
> > > TTLibrary >> selectorsToInclude<BR>
> > > ^#(tooltipJs)<BR>
> > ><BR>
> > > Has been added.<BR>
> ><BR>
> > Makes that tooltipJs is automatically added to the html head.<BR>
> ><BR>
> > > TTLibrary >> aTooltip has been renamed TTLibrary >> tooltipJs<BR>
> ><BR>
> > Method name convention for file libraries is filenameExtension<BR>
> ><BR>
> > > TTLibrary class >> initialize<BR>
> > > self register<BR>
> ><BR>
> > This registers the file library under /seaside/files<BR>
> ><BR>
> > > Has been added.<BR>
> > ><BR>
> > ><BR>
> > > If we want to port any other javascript, should we follow the above<BR>
> steps.<BR>
> ><BR>
> > Yes, the process is more or less the same.<BR>
> ><BR>
> > > I was wondering if Reflection-mb.8.mcz is also not portable to 2.8 . If<BR>
> I<BR>
> > > follow the above steps to reflection, is it possible to make it work<BR>
> with<BR>
> > > 2.8<BR>
> ><BR>
> > Sure, you'd have to change RFReflectionLibrary in the same way. Also<BR>
> > RFReflectionDemo looks unneccesarily complex. Eg. RFDemoFileLibrary /<BR>
> > #attentionPng should be enough to create a link to the attention.png<BR>
> > image. You can also remove rendererClass and SeasidePlatformsupport >><BR>
> > #seasideBanner is gone.<BR>
> > Note that the reflection stuff probably will never work on IE.<BR>
> ><BR>
> > Cheers<BR>
> > Philippe<BR>
> ><BR>
> > > Thanks again for timely help.<BR>
> > ><BR>
> > ><BR>
> > ><BR>
> > ><BR>
> > ><BR>
> > ><BR>
> > > Apart from changing superclass of TTLibrary from WAScriptLibrary to<BR>
> > > WAFileLibrary.<BR>
> > ><BR>
> > ><BR>
> > > On 8/26/07, Philippe Marschall < philippe.marschall@gmail.com <<A HREF="mailto:philippe.marschall@gmail.com">mailto:philippe.marschall@gmail.com</A>> > wrote:<BR>
> > > > 2007/8/24, Rajeev Lochan <lochan94@gmail.com <<A HREF="mailto:lochan94@gmail.com">mailto:lochan94@gmail.com</A>> >:<BR>
> > > > > Dear Seasiders,<BR>
> > > > > I am in need of Tooltip functionality. I went through the mailing<BR>
> list<BR>
> > > > ><BR>
> > > > ><BR>
> > ><BR>
> <A HREF="http://lists.squeakfoundation.org/pipermail/seaside/2006-June/007867.html">http://lists.squeakfoundation.org/pipermail/seaside/2006-June/007867.html</A> <<A HREF="http://lists.squeakfoundation.org/pipermail/seaside/2006-June/007867.html">http://lists.squeakfoundation.org/pipermail/seaside/2006-June/007867.html</A>><BR>
> > > > ><BR>
> > > > > and loaded tooltip demo made by Philippe Marschall.<BR>
> > > > > <A HREF="http://squeaksource.com">http://squeaksource.com</A> <<A HREF="http://squeaksource.com/seachart/Tooltip-pmm.1.mcz">http://squeaksource.com/seachart/Tooltip-pmm.1.mcz</A>> /seachart/Tooltip-pmm.1.mcz <<A HREF="http://squeaksource.com/seachart/Tooltip-pmm.1.mcz">http://squeaksource.com/seachart/Tooltip-pmm.1.mcz</A>><BR>
> > > > ><BR>
> > > > > This works well in Seaside 2.7. When I loaded the same demo in<BR>
> Seaside<BR>
> > > 2.8<BR>
> > > > > (Damien's image), I changed the superclass of TTScriptLibrary from<BR>
> > > > > WAScriptLibrary to WAFileLibrary as mentioned in Migration rules.<BR>
> Now it<BR>
> > > is<BR>
> > > > > not working in Seaside 2.8. Am I missing on anything.<BR>
> > > ><BR>
> > > > Yes, migration from script to file library also means adopting the<BR>
> > > > method name conventions. Can you give Tooltip-pmm.2 a shot?<BR>
> > > ><BR>
> > > > Cheers<BR>
> > > > Philippe<BR>
> > > ><BR>
> > > > > In general, is there any blog or tutorial of integrating javascript<BR>
> with<BR>
> > > > > Seaside.<BR>
> > > > ><BR>
> > > > > Thanks in advance & anticipating help,<BR>
> > > > ><BR>
> > > > > --<BR>
> > > > > Rajeev Lochan<BR>
> > > > ><BR>
> > > > > Co-founder, AR-CAD.com<BR>
> > > > ><BR>
> > > > > <A HREF="http://www.ar-cad.com">http://www.ar-cad.com</A><BR>
> > > > > +91 9243468076 (Bangalore)<BR>
> > > > > 080 65355873<BR>
> > > > > _______________________________________________<BR>
> > > > > Seaside mailing list<BR>
> > > > > Seaside@lists.squeakfoundation <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>> .org <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>><BR>
> > > > ><BR>
> > ><BR>
> <A HREF="http://lists.squeakfoundation">http://lists.squeakfoundation</A> <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>> .org/cgi-bin/mailman/listinfo/seaside <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>><BR>
> > > > ><BR>
> > > > ><BR>
> > > > _______________________________________________<BR>
> > > > Seaside mailing list<BR>
> > > > Seaside@lists.squeakfoundation <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>> .org <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>><BR>
> > > ><BR>
> > ><BR>
> <A HREF="http://lists.squeakfoundation">http://lists.squeakfoundation</A> <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>> .org/cgi-bin/mailman/listinfo/seaside <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>><BR>
> > > ><BR>
> > ><BR>
> > ><BR>
> > ><BR>
> > > --<BR>
> > ><BR>
> > > Rajeev Lochan<BR>
> > ><BR>
> > > Co-founder, AR-CAD.com<BR>
> > ><BR>
> > > <A HREF="http://www.ar-cad.com">http://www.ar-cad.com</A><BR>
> > > +91 9243468076 (Bangalore)<BR>
> > > 080 65355873<BR>
> > > ______________________________ _________________<BR>
> > > Seaside mailing list<BR>
> > > Seaside@lists.squeakfoundation <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>> .org <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>><BR>
> > ><BR>
> <A HREF="http://lists.squeakfoundation">http://lists.squeakfoundation</A> <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>> .org/cgi-bin/mailman/listinfo/seaside <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>><BR>
> > ><BR>
> > ><BR>
> > _______________________________________________<BR>
> > Seaside mailing list<BR>
> > Seaside@lists.squeakfoundation <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>> .org <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>><BR>
> ><BR>
> <A HREF="http://lists.squeakfoundation">http://lists.squeakfoundation</A> <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>> .org/cgi-bin/mailman/listinfo/seaside <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>><BR>
> ><BR>
><BR>
><BR>
><BR>
> --<BR>
> Rajeev Lochan<BR>
><BR>
> Co-founder, AR-CAD.com<BR>
><BR>
> <A HREF="http://www.ar-cad.com">http://www.ar-cad.com</A><BR>
> +91 9243468076 (Bangalore)<BR>
> 080 65355873<BR>
> _______________________________________________<BR>
> Seaside mailing list<BR>
> Seaside@lists.squeakfoundation <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>> .org <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>><BR>
> <A HREF="http://lists.squeakfoundation">http://lists.squeakfoundation</A> <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>> .org/cgi-bin/mailman/listinfo/seaside <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>><BR>
><BR>
><BR>
_______________________________________________<BR>
Seaside mailing list<BR>
Seaside@lists.squeakfoundation <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>> .org <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>><BR>
<A HREF="http://lists.squeakfoundation">http://lists.squeakfoundation</A> <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>> .org/cgi-bin/mailman/listinfo/seaside <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>> <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
--<BR>
<BR>
Rajeev Lochan<BR>
<BR>
Co-founder, AR-CAD.com<BR>
<BR>
<A HREF="http://www.ar-cad.com">http://www.ar-cad.com</A> <<A HREF="http://www.ar-cad.com">http://www.ar-cad.com</A>><BR>
+91 9243468076 (Bangalore)<BR>
080 65355873<BR>
<BR>
_______________________________________________<BR>
Seaside mailing list<BR>
Seaside@lists.squeakfoundation <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>> .org <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>><BR>
<A HREF="http://lists.squeakfoundation">http://lists.squeakfoundation</A> <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>> .org/cgi-bin/mailman/listinfo/seaside <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>> <BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
_______________________________________________<BR>
Seaside mailing list<BR>
Seaside@lists.squeakfoundation.org <<A HREF="mailto:Seaside@lists.squeakfoundation.org">mailto:Seaside@lists.squeakfoundation.org</A>><BR>
<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A> <<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A>><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
--<BR>
Rajeev Lochan<BR>
<BR>
Co-founder, AR-CAD.com<BR>
<BR>
<A HREF="http://www.ar-cad.com">http://www.ar-cad.com</A><BR>
+91 9243468076 (Bangalore)<BR>
080 65355873<BR>
</FONT>
</P>
</BODY>
</HTML>