Hi,
I currently trying to make my seaside application css compatible for firefox and IE. I just want that IE render the website as Firefox does. Everybody knows that that IE is ok with w3c standards and consequently that is an easy task... grrrr. I'am used to add a csshover.htc or a png.htc file in a behavior propriety of my body in the css file. The problem is that I am using a WAFileLibrary which includes all mys css stylesheets and I don't know how to use this behavior command Have I to add the htc files into my library ? How do I call them after in my CSS method ? I tried to add an absolute URL (http:.../csshover.htc) but it does not change anything at the end. here is my css : globalCss ^' * {margin:0; padding: 0;} body { background-color:#fff; ...; behavior: url(',self cssHoverHTC,');} img { behavior: url(',self pngHTC,'); } ... where methods returns a URL Thanks Sylvain _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2007/9/6, Sylvain Pralon <[hidden email]>:
> Hi, > > I currently trying to make my seaside application css compatible for > firefox and IE. I just want that IE render the website as Firefox does. > Everybody knows that that IE is ok with w3c standards and consequently > that is an easy task... grrrr. > I'am used to add a csshover.htc or a png.htc file in a behavior > propriety of my body in the css file. > The problem is that I am using a WAFileLibrary which includes all mys > css stylesheets and I don't know how to use this behavior command > Have I to add the htc files into my library ? How do I call them after > in my CSS method ? > I tried to add an absolute URL (http:.../csshover.htc) but it does not > change anything at the end. The methods should be named csshoverHtc and pngHtc. The rule is the same for all files: - take the file name without the suffix - add the capitalized suffix > here is my css : > globalCss > > ^' > * {margin:0; padding: 0;} > body { background-color:#fff; ...; behavior: url(',self cssHoverHTC,');} > img { behavior: url(',self pngHTC,'); } > ... > > where methods returns a URL Sending the messages directly returns the contents of the files. That is not what you want. You want the urls. Luckily you already know the urls.So it should read: ^' * {margin:0; padding: 0;} body { background-color:#fff; ...; behavior: url(csshover.htc);} img { behavior: url(png.htc); }' if you want to use the selectors so that senders and implementors work you can use: ^' * {margin:0; padding: 0;} body { background-color:#fff; ...; behavior: url(', (self urlOf: #csshoverHtc), ');} img { behavior: url(', (self urlOf: #pngHtc), '); }' Now there is an additional issue. Your version of Seaise doesn't know htc files and serves them as application/octet-stream. Seaside2.8a1-pmm.474 fixes this. Cheers Philippe > Thanks > > Sylvain > _______________________________________________ > 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 |
In reply to this post by Sylvain pralon
> -----Mensaje original----- > De: [hidden email] > [mailto:[hidden email]] En nombre > de Sylvain Pralon > Enviado el: Jueves, 06 de Septiembre de 2007 04:21 > Para: Seaside - general discussion > Asunto: [Seaside] css and HTC files issue > > Hi, > > I currently trying to make my seaside application css > compatible for firefox and IE. I just want that IE render the > website as Firefox does. > Everybody knows that that IE is ok with w3c standards and > consequently that is an easy task... grrrr. would be without it... Can you? > I'am used to add a csshover.htc or a png.htc file in a > behavior propriety of my body in the css file. > The problem is that I am using a WAFileLibrary which includes > all mys css stylesheets and I don't know how to use this > behavior command Have I to add the htc files into my library > ? How do I call them after in my CSS method ? > I tried to add an absolute URL (http:.../csshover.htc) but it > does not change anything at the end. > go to WAFileLibrary class side and look at #addAllFilesIn: addAllFilesIn: aPathString "adds all files in the directory specified by aPathString to the current file library" (SeasidePlatformSupport filesIn: aPathString) do: [ :each | self addFileAt: each ] that's does it, so call your library to execute that method on your path like: FooAppLibrary addAllFilesIn: 'c:\foo\bar' executing that line will make FooAppLibrary to have loaded the data of the files in that path as methods. Care should be taken to versions, as you may want keep your library fresh. If you change css or javascript in the plain text methods of the image, then you may be interested in execute #deployFilesOn: aFolderName in your modified library. See: deployFilesOn: aFolderName "Write to disk the files that the receiver use to serve as methods. The files are stored in a subfolder named like the classname of the receiver in a subfolder named aFolderName." I've added a little patch to the config of my apps so I can make that from a web interface regularily because I don't want comanche serving static files. Anyway I've made an apache rewrite rule to go ask for it to comanche in second place if it does not found where expected. hope that helps, Sebastian > here is my css : > globalCss > > ^' > * {margin:0; padding: 0;} > body { background-color:#fff; ...; behavior: url(',self > cssHoverHTC,');} > img { behavior: url(',self pngHTC,'); } > ... > where methods returns a URL > > Thanks > > Sylvain > _______________________________________________ > 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 |
In fact I added the 2 Htc files into my library. I wrote this in my css method : mycss ^' * {margin:0; padding: 0;} body { background-color:#fff; ...; behavior: url(',( self urlOf: #csshoverHtc ),');} img { behavior: url(',( self urlOf: #pngHtc ),'); } ...' after reloading my webpage, no change. I tried to look what was generated in the css file and what a surprise when I saw that all the behavior comportement in my css method were removed from the file : seaside/go/files/SUOSDocLibrary/mycss.css in the file it is written : body { background-color:#fff; color: black; font-family: arial narrow; font-size: 11px; width:800px;} Does seaside remove the behavior properties ? I also tried to write the library on my disk with the deployFilesOn: filename but apparently I missed to load a parcel for seaside because some methods are not available on SeasideSupportPlatform classAnother thing, you said that the last version of Seaside manage the htc files. How ? I am working with the last version of seaside on the last version of VisualWorks ? Thanks for your help Sylvain -----Mensaje original----- De: [hidden email] [[hidden email]] En nombre de Sylvain Pralon Enviado el: Jueves, 06 de Septiembre de 2007 04:21 Para: Seaside - general discussion Asunto: [Seaside] css and HTC files issue Hi, I currently trying to make my seaside application css compatible for firefox and IE. I just want that IE render the website as Firefox does. Everybody knows that that IE is ok with w3c standards and consequently that is an easy task... grrrr.LOL, developer's life is so "entretained" with IE. I can't imagine what life would be without it... Can you?I'am used to add a csshover.htc or a png.htc file in a behavior propriety of my body in the css file. The problem is that I am using a WAFileLibrary which includes all mys css stylesheets and I don't know how to use this behavior command Have I to add the htc files into my library ? How do I call them after in my CSS method ? I tried to add an absolute URL (http:.../csshover.htc) but it does not change anything at the end.go to WAFileLibrary class side and look at #addAllFilesIn: addAllFilesIn: aPathString "adds all files in the directory specified by aPathString to the current file library" (SeasidePlatformSupport filesIn: aPathString) do: [ :each | self addFileAt: each ] that's does it, so call your library to execute that method on your path like: FooAppLibrary addAllFilesIn: 'c:\foo\bar' executing that line will make FooAppLibrary to have loaded the data of the files in that path as methods. Care should be taken to versions, as you may want keep your library fresh. If you change css or javascript in the plain text methods of the image, then you may be interested in execute #deployFilesOn: aFolderName in your modified library. See: deployFilesOn: aFolderName "Write to disk the files that the receiver use to serve as methods. The files are stored in a subfolder named like the classname of the receiver in a subfolder named aFolderName." I've added a little patch to the config of my apps so I can make that from a web interface regularily because I don't want comanche serving static files. Anyway I've made an apache rewrite rule to go ask for it to comanche in second place if it does not found where expected. hope that helps, Sebastianhere is my css : globalCss ^' * {margin:0; padding: 0;} body { background-color:#fff; ...; behavior: url(',self cssHoverHTC,');} img { behavior: url(',self pngHTC,'); } ... where methods returns a URL Thanks Sylvain _______________________________________________ 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 _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2007/9/7, Sylvain Pralon <[hidden email]>:
> > Thanks for your answer but it still doesn't work. > In fact I added the 2 Htc files into my library. > I wrote this in my css method : > > mycss > ^' > * {margin:0; padding: 0;} > body { background-color:#fff; ...; behavior: url(',( self urlOf: > #csshoverHtc ),');} > img { behavior: url(',( self urlOf: #pngHtc ),'); } > ...' > > > after reloading my webpage, no change. > I tried to look what was generated in the css file and what a surprise when > I saw that > all the behavior comportement in my css method were removed from the file : > > seaside/go/files/SUOSDocLibrary/mycss.css > > in the file it is written : > > body { background-color:#fff; color: black; font-family: arial narrow; > font-size: 11px; width:800px;} Can you post the method mycssCss of the class SUOSDocLibrary? Are you sure you cleared the cache of your browser? Cheers Philippe > Does seaside remove the behavior properties ? > > I also tried to write the library on my disk with the deployFilesOn: > filename but apparently > I missed to load a parcel for seaside because some methods are not available > on SeasideSupportPlatform class > > Another thing, you said that the last version of Seaside manage the htc > files. How ? I am working with the last version of seaside on the last > version of VisualWorks ? > > Thanks for your help > > Sylvain > > > > > > -----Mensaje original----- > De: [hidden email] > [mailto:[hidden email]] En > nombre > de Sylvain Pralon > Enviado el: Jueves, 06 de Septiembre de 2007 04:21 > Para: Seaside - general discussion > Asunto: [Seaside] css and HTC files issue > > Hi, > > I currently trying to make my seaside application css > compatible for firefox and IE. I just want that IE render the > website as Firefox does. > Everybody knows that that IE is ok with w3c standards and > consequently that is an easy task... grrrr. > > LOL, developer's life is so "entretained" with IE. I can't imagine what > life > would be without it... Can you? > > > > I'am used to add a csshover.htc or a png.htc file in a > behavior propriety of my body in the css file. > The problem is that I am using a WAFileLibrary which includes > all mys css stylesheets and I don't know how to use this > behavior command Have I to add the htc files into my library > ? How do I call them after in my CSS method ? > I tried to add an absolute URL (http:.../csshover.htc) but it > does not change anything at the end. > > > go to WAFileLibrary class side and look at #addAllFilesIn: > > addAllFilesIn: aPathString > "adds all files in the directory specified by aPathString to the > current file library" > (SeasidePlatformSupport filesIn: aPathString) > do: [ :each | self addFileAt: each ] > > that's does it, so call your library to execute that method on your > path like: > > FooAppLibrary addAllFilesIn: 'c:\foo\bar' > > executing that line will make FooAppLibrary to have loaded the data > of the files in that path as methods. Care should be taken to versions, as > you may want keep your library fresh. > > If you change css or javascript in the plain text methods of the > image, then you may be interested in execute #deployFilesOn: aFolderName in > your modified library. See: > > deployFilesOn: aFolderName > "Write to disk the files that the receiver use to serve as methods. > The files are stored in a subfolder named like the classname > of the receiver in a subfolder named aFolderName." > > I've added a little patch to the config of my apps so I can make > that from a web interface regularily because I don't want comanche serving > static files. Anyway I've made an apache rewrite rule to go ask for it to > comanche in second place if it does not found where expected. > > hope that helps, > > Sebastian > > > > here is my css : > globalCss > > ^' > * {margin:0; padding: 0;} > body { background-color:#fff; ...; behavior: url(',self > cssHoverHTC,');} > img { behavior: url(',self pngHTC,'); } > ... > where methods returns a URL > > Thanks > > Sylvain > _______________________________________________ > 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 > > > > > _______________________________________________ > 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 |
Yes I am sure I have cleaned up my navigator cache
Here is my ccs method globalCss ^' * {margin:0; padding: 0;} body { background-color:red; color: black; font-family: arial narrow; font-size: 11px; width:800px; behavior: url(',( self urlOf: #csshoverHtc ),');} img { border:none; behavior: url(',( self urlOf: #csshoverHtc ),');} div#head { position: relative; height:50px; width:800px; text-align:right; padding-top:10px; } ' the fact is that the content of the generated file is not the same, it is like there is a problem of refreshment. Maybe my library class is corrupt... I think i will pass by an external link to a physical css file. Maybe it will fix the problem. Thanks anyway. Sylvain Philippe Marschall a écrit : 2007/9/7, Sylvain Pralon [hidden email]:Thanks for your answer but it still doesn't work. In fact I added the 2 Htc files into my library. I wrote this in my css method : mycss ^' * {margin:0; padding: 0;} body { background-color:#fff; ...; behavior: url(',( self urlOf: #csshoverHtc ),');} img { behavior: url(',( self urlOf: #pngHtc ),'); } ...' after reloading my webpage, no change. I tried to look what was generated in the css file and what a surprise when I saw that all the behavior comportement in my css method were removed from the file : seaside/go/files/SUOSDocLibrary/mycss.css in the file it is written : body { background-color:#fff; color: black; font-family: arial narrow; font-size: 11px; width:800px;}Can you post the method mycssCss of the class SUOSDocLibrary? Are you sure you cleared the cache of your browser? Cheers PhilippeDoes seaside remove the behavior properties ? I also tried to write the library on my disk with the deployFilesOn: filename but apparently I missed to load a parcel for seaside because some methods are not available on SeasideSupportPlatform class Another thing, you said that the last version of Seaside manage the htc files. How ? I am working with the last version of seaside on the last version of VisualWorks ? Thanks for your help Sylvain -----Mensaje original----- De: [hidden email] [[hidden email]] En nombre de Sylvain Pralon Enviado el: Jueves, 06 de Septiembre de 2007 04:21 Para: Seaside - general discussion Asunto: [Seaside] css and HTC files issue Hi, I currently trying to make my seaside application css compatible for firefox and IE. I just want that IE render the website as Firefox does. Everybody knows that that IE is ok with w3c standards and consequently that is an easy task... grrrr. LOL, developer's life is so "entretained" with IE. I can't imagine what life would be without it... Can you? I'am used to add a csshover.htc or a png.htc file in a behavior propriety of my body in the css file. The problem is that I am using a WAFileLibrary which includes all mys css stylesheets and I don't know how to use this behavior command Have I to add the htc files into my library ? How do I call them after in my CSS method ? I tried to add an absolute URL (http:.../csshover.htc) but it does not change anything at the end. go to WAFileLibrary class side and look at #addAllFilesIn: addAllFilesIn: aPathString "adds all files in the directory specified by aPathString to the current file library" (SeasidePlatformSupport filesIn: aPathString) do: [ :each | self addFileAt: each ] that's does it, so call your library to execute that method on your path like: FooAppLibrary addAllFilesIn: 'c:\foo\bar' executing that line will make FooAppLibrary to have loaded the data of the files in that path as methods. Care should be taken to versions, as you may want keep your library fresh. If you change css or javascript in the plain text methods of the image, then you may be interested in execute #deployFilesOn: aFolderName in your modified library. See: deployFilesOn: aFolderName "Write to disk the files that the receiver use to serve as methods. The files are stored in a subfolder named like the classname of the receiver in a subfolder named aFolderName." I've added a little patch to the config of my apps so I can make that from a web interface regularily because I don't want comanche serving static files. Anyway I've made an apache rewrite rule to go ask for it to comanche in second place if it does not found where expected. hope that helps, Sebastian here is my css : globalCss ^' * {margin:0; padding: 0;} body { background-color:#fff; ...; behavior: url(',self cssHoverHTC,');} img { behavior: url(',self pngHTC,'); } ... where methods returns a URL Thanks Sylvain _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |