aaaaaaand ..... yes! it works. Thanks for the help alexander. one question though: the height and width of the html widget is kind of arbitrary. I use an "<img src=".."> for the html content but the size of the widget is not adapted to the size of the image. How can I force it to the same size?
Farid On Fri, Dec 12, 2008 at 5:06 PM, Alexander Back <[email protected]> wrote: > Hi Farid, > > Farid Elyahyaoui wrote: >> Hi people, >> >> First some compliments to the qooxdoo team: >> I migrated my project (which is not released yet) to 0.8 and I must >> say: it looks really "Modern" now ;-) >> As a programmer qooxdoo has almost everything I need to develop a web >> application. I don't need >> Flash, AIR or Silverlight because I have qooxdoo! >> Thanks for all the work. It's really appreciated. > Thanks for all the kudos. Really appreciated ;-) > >> Now the question: >> One question regarding qx.ui.basic.Image.setSource() >> if I try to specify an image using a http URL it doesn' work: >> >> var photo0= new qx.ui.basic.Image; >> //photo0.setSource("myapp/test.png"); >> photo0.setSource("http://www.top10.hier.nu/img/Computer-50x50.jpg"); >> >> I get a message in the debug window: >> >> 1861ms qx.ui.basic.Image[5n]: Unknown image: >> http://www.top10.hier.nu/img/Computer-50x50.jpg > The image widget internally uses the "qx.util.ResourceManager" when it > sets the image source. The ResourceManager however only manages the > images which are "known" by qooxdoo (located inside the "resource" > folder(s) ). So if an image is not present (= the ResourceManager does > not manage it) the image widget uses the "qx.io2.ImageLoader" class to > load the image and shows the warning you mentioned (happens only once > per image in the source version). > >> obviously it doesn't like the fully qualified URL because if I replace >> it with "myapp/test.png" it works fine. > Yes, because you are accessing a managed resource. > >> In 0.7 the full URL however worked fine. How can I set an image to an >> url with "http://..." in it? > The mechanism of resource management was changed with 0.8. Only > resources managed by the framework can be used without warnings. This > has technical reasons. > > To solve your problem you can either > > add the images you need to your resources > or > use a "qx.ui.embed.Html" widget and embed the image as HTML. > > I hope this answers your question. Maybe the documentation > > http://qooxdoo.org/documentation/0.8/ui_resources > > could also help. > > cheers, > Alex > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
