Hi Farid
I found this post while i was searching for a solution to load previews from
the server. I'm also using a Image Widget to display the previews in a
window... I found a solution that works very well and might serve you as
well (it doesn't show the "Unknown image" errors).
I'm simply using qx.io2.ImageLoader. My "preview window" class has a "image"
property. Heres the apply method of said property:
_applyImage : function(val, oldval){
if(qx.io2.ImageLoader.isLoaded(val)){
// this._img is the Image Widget
this._img.setSource(val);
} else {
// myapp/loader.gif is a loader animation that's defined as
asset
this._img.setSource('myapp/loader.gif');
qx.io2.ImageLoader.load(val, function(src){
this.debug('Image "' + src + '" was successfully
loaded');
this._img.setSource(src);
}, this);
}
},
Works like a charm and makes me love qooxdoo even more. Hehe :)
Farid Elyahyaoui-2 wrote:
>
> Hi,
>
> Then maybe the htmlembed widget is not the right one for me because
> autosizing is needed.
> I am setting the image during runtime depending on the user input.
>
> I understand I can't use the basicImage widget because then I would
> have to specify the
> resource with an "#asset" statement during compile time. right?
>
> Is there a nicer way to display a (complete) image which is not known
> during application
> generation?
> in 0.7 it was so easy.
> Can I emulate this behaviour (from 0.7) someway?
>
> thanks for all the effort.
>
> Farid
>
> On Mon, Dec 15, 2008 at 11:15 AM, Alexander Back
> <[email protected]> wrote:
>> Hi Farid,
>>
>> Farid Elyahyaoui wrote:
>>> aaaaaaand ..... yes!
>>> it works. Thanks for the help alexander.
>> My pleasure ;-)
>>
>>> one question though:
>>> the height and width of the html widget is kind of arbitrary.
>>> I use an " .. 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?
>> The htmlEmbed widget does not support auto-sizing. You have to set the
>> height and width at the HtmlEmbed instance. So instead of setting the
>> width and height at the image you have to set it at the HtmlEmbed
>> instance.
>>
>> 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
>
>
--
View this message in context:
http://n2.nabble.com/qx.ui.basic.Image-setSource-does-not-work-with-full-URL-tp1647071p2145602.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel