Well, 'foo' would be a view.
You can do foo.setResource(resourcename), and it sort of works -- see the
post I just sent out. Of course, your XML file would need to have the
names of the resources, not the image files.
You can also do foo.setSource() and not define resources at all, but the
images won't be compiled in then.
gse
On Thu, 16 Mar 2006, Michael Gregor wrote:
> a <resource> needs a src attribute to compile...
>
>
>
>
> On Thu, Mar 16, 2006 at 10:09 AM, P T Withington wrote:
>
> > does foo.setAttribute('src', ...) not work?
> >
> > On 2006-03-16 08:24 PST, Michael Gregor wrote:
> >
> >>
> >> How would one load resources based on information in a dataset?
> >>
> >> or in other words.
> >>
> >> I have a set of 6 jpegs which are specified in an XML document. I
> >> want
> >> to have those jpegs included as resources in my app at compile time.
> >> I want the src attribute of a <resource> tag to be programatically
> >> specified. Is this possible? If not, what is the best way to
> >> 'preload'
> >> these jpegs so that the app has access to them on the client upon
> >> startup?
> >>
> >> thanks,
> >>
> >> MG
> >>
> >> _______________________________________________
> >> Laszlo-user mailing list
> >> [email protected]
> >> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> >
>
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user