1 (edited by dih 2010-01-25 07:25:50)

Topic: cgi access

Hi,
I'm getting upset with a rather easy task. I am running a swf locally (stop_control_panel followed by chumbyflashplayer -i mywidget.swf).
I am loading a xml file and want to report changes back to the xml. I am trying to accomplish this by using a cgi bash script which i put in

/www/cgi-bin/custom/ called xml.

When I try the swf on my computer the chumby actually starts the cgi (I am touching a file for testing purposes) but running the widget on the chumby doesn't.
I can't figure out why.
The flashcode calling the cgi is:

myXML.send("http://my-chumbys-ip/cgi-bin/custom/xml", "_blank");

I have also tried putting localhost instead of the ip, or using the relative path to the cgi folder - all with no success.
Any ideas are more than welcome! Thanks!

Re: cgi access

don't use XML.send, use XML.sendAndLoad instead.  The "send" method is used to send XML to a server and then load a new webpage based on the results.  This works in a browser, but usually doesn't do anything useful in a standalone FlashLite instance, since there's no containing web server.