On 31 Mar 2006 at 7:24, Matt Hubbard wrote:

> My problem is that I want to cause the external document to load into
> DENG automatically (without the user clicking the "load doc" button).  I
> have tried it this way:
> 
> <view id="deng_view" width="600" height="560" resource="denglaszlo.swf"
> oninit="loadDoc()">
> 
> But the debugger says:  reference to undefined property 'deng'
> 
> How can I cause the loadDoc method to run immediately without user
> action?


(a) Have you read (and added to) the forum thread ..

http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=5641&perpage=15&highlight=deng&pagenumber=3

easier to test code over there ..

...

(b) Are you passing a uri as argument in your oninit="loadDoc()"

...

(c) Is your PHP proxy running on port 80, and your lzx app on port 8080.. or is 
lzx app 
running in SOLO mode?

         deng.setProxyScript("http://localhost/php/proxy.php?url=";);

I substituted my line to my proxy.php which works ..

         deng.setProxyScript("/phpservlet/my-apps/proxy.php?url=");


(c) reference to undefined property .. ?? might be some case sensitive issue

have you tried Debug.inspect(deng);


DL


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to