Hi Henry,

I am using the LPS server to compile the app. I have been messing around with our custom wrapper today to try and produce a simple test case to show you. I managed to create a simple app that would load into our wrapper:

<canvas>
   <view height="200" width="200" source="resources/image.jpg" />
</canvas>

That would work on its own, when I compiled with the LPS server, but when I loaded it into our wrapper I needed to change the source path to:

<canvas>
<view height="200" width="200" source="/trunk/my-apps/resources/image.jpg" />
</canvas>

Is there something else we need to add to the wrapper that you know of?

I can send you the wrapper and app if you like so you can see the the issue. It is a little different then webtop. Webtop is showing broken image icons this doesn't... BTW the first example app I have posted in this e-mail runs in swf8 in our wrapper.

Thanks,
Lee


Henry Minsky wrote:
I need more information about the paths and environment you are
building your app in.

Can you send a small test case, with the actual pathnames used, maybe
make a little zip file or something,
an also tell me how you are compiling this, i.e., with lzc command
line, or from the LPS server? I an running
on OSX and would like to try to reproduce what you are seeing.

I feel like I've seen something similar to this issue before, and
recently, I will try to search my email to see if I can find
something similar. I vaguely recall it might have been someone using a
custom HTML wrapper. There is
a parameter in the DHTML wrapper that we generate which tells the LFC
runtime a pathname prefix to append
to resource paths; this is used to handle resources which are outside
of the application directory, such as resources that are part of the
components in lps/components.







On Wed, Jan 14, 2009 at 10:19 PM, Lee Lundrigan
<[email protected]> wrote:
Hi everyone,

I am having a problem with images when the code compiles to DHTML. When I am
in swf8 all my resources appear as expected but when I change over to dhtml
they are all broken. I took a look at the source for one of them:

<img class="lzdiv"
src="Users/Lee/src/diamond-dhtml42/client/framework/resources/webtop_dock_logo.png"/>

I am on a mac running 10.4 tiger in firefox 3.

I see that it is missing a forward slash in front of the path. However,
Maynard is running on windows xp in firefox 2 and doesn't appear to be
having this same problem.  Any ideas where this could be going wrong?

Thanks!
Lee





Reply via email to