Hi all
I have a problem about setting cookie data.
If you set to cookie data with only value, like name=value, you can
success it,
but if you set to it with some parameter, like following, you can not.
name=value; secure;
This is my test program as you can try it.
<canvas>
<simplelayout spacing="5"/>
<text>Enter cookie value below:</text>
<edittext name="cookieValue"/>
<button>Set Cookie
<method event="onclick">
var s = 'document.cookie="' + cookieValue.getText() + '"';
LzBrowser.loadJS( escape(s) );
</method>
</button>
<button>Get Cookie
<method event="onclick">
LzBrowser.loadJS('javascript:alert(unescape(document.cookie))');
</method>
</button>
</canvas>
I know LzBrowser.loadJS is described with ActionScript ( _root.getURL() ).
Does anyone know how to set to cookie value with some attribute?
Thanks advance.
mt1
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user