how to change the icon of an application

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

how to change the icon of an application

Nicolas Petton
Hi,

Does anyone know how to change the icon of a seaside application ?
I mean something like this in html :

<link rel="SHORTCUT ICON" href="img/favicon.ico" />

Thanks,
Nicolas Petton

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

Re: how to change the icon of an application

Lukas Renggli
> Does anyone know how to change the icon of a seaside application ?
> I mean something like this in html :
>
> <link rel="SHORTCUT ICON" href="img/favicon.ico" />

Override #updateRoot: in your root component with something along:

updateRoot: aHtmlRoot
   super updateRoot: aHtmlRoot.
   aHtmlRoot link
      url: 'img/favicon.ico';
      beShortcutIcon

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: how to change the icon of an application

Nicolas Petton
Thank you Lukas, it works fine :)

2007/7/6, Lukas Renggli <[hidden email]>:
> Does anyone know how to change the icon of a seaside application ?
> I mean something like this in html :
>
> <link rel="SHORTCUT ICON" href="img/favicon.ico" />

Override #updateRoot: in your root component with something along:

updateRoot: aHtmlRoot
   super updateRoot: aHtmlRoot.
   aHtmlRoot link
      url: 'img/favicon.ico';
      beShortcutIcon

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
Reply | Threaded
Open this post in threaded view
|

[vw]Image map revisited

Carl Gundel
When I asked about how to use image maps with Seaside and VW last year, the
answer was effectively as I understood it that it was broken as delivered.
Now I am currently using Seaside 2.6 for my current work, and will be for at
least a few more months.  So I put off this work, but now I really do need
an image map.  I saw that there is a new image map API for 2.7.  I figured
that I may be able to backport the new stuff to v2.6.  The trouble is I
don't see how to use the new image map API.  I see only two methods in the
WAImageMapTag:

  callback:
  parseImageMap:

How do I use these?  Is a backport feasible?  :-)

-Carl Gundel
http://www.runbasic.com 


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

Re: [vw]Image map revisited

Michel Bany
You may want to try the parcel at
ftp://ftp.bany.fr/seaside/ImageMap.zip

See also http://tinyurl.com/yuta4w

HTH,
Michel

On 06 Jul 2007, at 17:42 , Carl Gundel wrote:

> When I asked about how to use image maps with Seaside and VW last  
> year, the answer was effectively as I understood it that it was  
> broken as delivered. Now I am currently using Seaside 2.6 for my  
> current work, and will be for at least a few more months.  So I put  
> off this work, but now I really do need an image map.  I saw that  
> there is a new image map API for 2.7.  I figured that I may be able  
> to backport the new stuff to v2.6.  The trouble is I don't see how  
> to use the new image map API.  I see only two methods in the  
> WAImageMapTag:
>
>  callback:
>  parseImageMap:
>
> How do I use these?  Is a backport feasible?  :-)
>
> -Carl Gundel
> http://www.runbasic.com
>
> _______________________________________________
> 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
Reply | Threaded
Open this post in threaded view
|

Re: [vw]Image map revisited

Philippe Marschall
In reply to this post by Carl Gundel
2007/7/6, Carl Gundel <[hidden email]>:

> When I asked about how to use image maps with Seaside and VW last year, the
> answer was effectively as I understood it that it was broken as delivered.
> Now I am currently using Seaside 2.6 for my current work, and will be for at
> least a few more months.  So I put off this work, but now I really do need
> an image map.  I saw that there is a new image map API for 2.7.  I figured
> that I may be able to backport the new stuff to v2.6.  The trouble is I
> don't see how to use the new image map API.  I see only two methods in the
> WAImageMapTag:
>
>   callback:
>   parseImageMap:
>
> How do I use these?

The class comment says:
A WAImageMapTag is supposed to be used like this:

        html map
                id: #pictureMap;
                title: 'Click here';
                callback: [ :point | self click: point + self offset];
                with: [
                        html image
                                form: self form ]
                       
Examples can be found in WAScreenshot

Which part is unclear?

Philippe

> Is a backport feasible?  :-)
>
> -Carl Gundel
> http://www.runbasic.com
>
>
> _______________________________________________
> 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
Reply | Threaded
Open this post in threaded view
|

Re: [vw]Image map revisited

Carl Gundel
In reply to this post by Michel Bany
> You may want to try the parcel at
> ftp://ftp.bany.fr/seaside/ImageMap.zip

Thanks.  The examples render okay but the callbacks don't get invoked when I
click on the images.

I loaded this on top of vw 7.4.1 and Seaside2.6b1-mb.108.mcz

-Carl Gundel
http://www.runbasic.com 


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

Re: [vw]Image map revisited

Michel Bany

On 06 Jul 2007, at 22:51 , Carl Gundel wrote:

>> You may want to try the parcel at
>> ftp://ftp.bany.fr/seaside/ImageMap.zip
>
> Thanks.  The examples render okay but the callbacks don't get  
> invoked when I click on the images.
>
> I loaded this on top of vw 7.4.1 and Seaside2.6b1-mb.108.mcz

I tried with the same combination and had everything working fine on  
Windows.

Did you try with the supplied example application or with your own code?
Let me know.

The images do not display on MacOS because backslashes rather than  
forward slashes in urls.
Therefore I pushed a corrected version of the parcel.

ftp://ftp.bany.fr/seaside/ImageMap.zip

Works only with Seaside 2.6.

This zipped archive also contains some screenshots from the example  
application.

Cheers,
Michel.






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