table - url image cell render

View: New views
4 Messages — Rating Filter:   Alert me  

table - url image cell render

by shihcm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

How do I go about using an URL Image cell render in a table?  All table examples I have seen so far access their cell image via local file system.

thanks


     

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: table - url image cell render

by Martin Wittemann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

usually, the images are referenced relative. So if you deploy your
application on a web server, all images work like they used to in the
development version.
But if you need to access images via an URL, just put the URL in as source
and that should work.
Does that answer your question?

Best,
Martin


shihcm wrote:

>
>
> Hi,
>
> How do I go about using an URL Image cell render in a table?  All table
> examples I have seen so far access their cell image via local file system.
>
> thanks
>
>
>      
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

--
View this message in context: http://n2.nabble.com/table-url-image-cell-render-tp3918492p3918840.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: table - url image cell render

by shihcm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

Thanks for quick reply.  I did put in an URL as my source, however I am getting following errors "Not recognized format of external image".  Is there a specific type of image size/format that qx.ui.table.cellrenderer.Image will load?

Have tried png/gif, neither one loads.  However, if i use one of the icon provided by sdk it seem to load fine.  


--- On Fri, 10/30/09, MartinWittemann <martin.wittemann@...> wrote:

> From: MartinWittemann <martin.wittemann@...>
> Subject: Re: [qooxdoo-devel] table - url image cell render
> To: qooxdoo-devel@...
> Date: Friday, October 30, 2009, 6:20 AM
>
> Hello,
>
> usually, the images are referenced relative. So if you
> deploy your
> application on a web server, all images work like they used
> to in the
> development version.
> But if you need to access images via an URL, just put the
> URL in as source
> and that should work.
> Does that answer your question?
>
> Best,
> Martin
>
>
> shihcm wrote:
> >
> >
> > Hi,
> >
> > How do I go about using an URL Image cell render in a
> table?  All table
> > examples I have seen so far access their cell image
> via local file system.
> >
> > thanks
> >
> >
> >       
> >
> >
> ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry(R) Developer
> Conference in SF, CA
> > is the only developer event you need to attend this
> year. Jumpstart your
> > developing skills, take BlackBerry mobile applications
> to market and stay
> > ahead of the curve. Join us from November 9 - 12,
> 2009. Register now!
> > http://p.sf.net/sfu/devconference
> > _______________________________________________
> > qooxdoo-devel mailing list
> > qooxdoo-devel@...
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
> >
>
> --
> View this message in context: http://n2.nabble.com/table-url-image-cell-render-tp3918492p3918840.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference
> in SF, CA
> is the only developer event you need to attend this year.
> Jumpstart your
> developing skills, take BlackBerry mobile applications to
> market and stay
> ahead of the curve. Join us from November 9 - 12, 2009.
> Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>


     

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: table - url image cell render

by Martin Wittemann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hallo,

as far as I have seen in the qooxdoo source, the image loader checks the
format of the loaded images. If the format could not be determined, it posts
exactly the message you get.

The check is a simple RegExp:
this.__knownImageTypesRegExp = /\.(png|gif|jpg|jpeg|bmp)\b/i;

var result = this.__knownImageTypesRegExp.exec(source);
if (result != null) {
  entry.format = result[1];
}

So perhaps something is wrong with the file names of your images?

Best,
Martin



shihcm wrote:

>
>
> Hi,
>
> Thanks for quick reply.  I did put in an URL as my source, however I am
> getting following errors "Not recognized format of external image".  Is
> there a specific type of image size/format that
> qx.ui.table.cellrenderer.Image will load?
>
> Have tried png/gif, neither one loads.  However, if i use one of the icon
> provided by sdk it seem to load fine.  
>
>
> --- On Fri, 10/30/09, MartinWittemann <martin.wittemann@...> wrote:
>
>> From: MartinWittemann <martin.wittemann@...>
>> Subject: Re: [qooxdoo-devel] table - url image cell render
>> To: qooxdoo-devel@...
>> Date: Friday, October 30, 2009, 6:20 AM
>>
>> Hello,
>>
>> usually, the images are referenced relative. So if you
>> deploy your
>> application on a web server, all images work like they used
>> to in the
>> development version.
>> But if you need to access images via an URL, just put the
>> URL in as source
>> and that should work.
>> Does that answer your question?
>>
>> Best,
>> Martin
>>
>>
>> shihcm wrote:
>> >
>> >
>> > Hi,
>> >
>> > How do I go about using an URL Image cell render in a
>> table?  All table
>> > examples I have seen so far access their cell image
>> via local file system.
>> >
>> > thanks
>> >
>> >
>> >       
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Come build with us! The BlackBerry(R) Developer
>> Conference in SF, CA
>> > is the only developer event you need to attend this
>> year. Jumpstart your
>> > developing skills, take BlackBerry mobile applications
>> to market and stay
>> > ahead of the curve. Join us from November 9 - 12,
>> 2009. Register now!
>> > http://p.sf.net/sfu/devconference
>> > _______________________________________________
>> > qooxdoo-devel mailing list
>> > qooxdoo-devel@...
>> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> >
>> >
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/table-url-image-cell-render-tp3918492p3918840.html
>> Sent from the qooxdoo mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference
>> in SF, CA
>> is the only developer event you need to attend this year.
>> Jumpstart your
>> developing skills, take BlackBerry mobile applications to
>> market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009.
>> Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> qooxdoo-devel mailing list
>> qooxdoo-devel@...
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>
>
>      
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@...
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

--
View this message in context: http://n2.nabble.com/table-url-image-cell-render-tp3918492p3930437.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel