PDA

View Full Version : problem of using resource and source


yang_dx
10-07-2005, 03:10 AM
I recently met some problem about the resource and source of a view.

If I use the <resource name=”n” src=”path”>, is it means that this resource must be compiled in my lps app

Which means it will make the app size much bigger?

When I tried to use the view.setSource(url), it works well, but there is no getSource() method to get the current url of source.

What should I do if I want to get the source url set by setSource()?

wereldmuis
03-24-2006, 06:50 AM
In my experience getAttribute("resource") does the trick. Check out the reference for LzView here:
http://www.openlaszlo.org/lps-latest/docs/reference/view.html