Re: [flexcoders] Re: passing variables between two consecutive flex applications

2008-02-20 Thread yigit
here is my implemented solution, may be useful for some others;
i have written an top page which include an iframe (width height 100%)
the first view calls javascript via external interface and it calls it's 
parent,
saves the xml data;
then the parent navigates iframe to the other page, then the new page 
requests
the xml via javascript.

i work fineefficientno server side scripting.

i anyone request, i can send the codes.
thanks to helpers.

Ralf Bokelberg wrote On 02/18/2008 05:28 PM:

  Those are your only options.
 Beside SharedObjects, which is the easiest option i guess.

 -- 
 Ralf Bokelberg [EMAIL PROTECTED] 
 mailto:ralf.bokelberg%40gmail.com
 Flex  Flash Consultant based in Cologne/Germany

  



Re: [flexcoders] Re: passing variables between two consecutive flex applications

2008-02-18 Thread yiğit boyar
i tried shared objects but i could not make it work between two
applications,
any example ? extre thing to do ?

On Feb 18, 2008 5:28 PM, Ralf Bokelberg [EMAIL PROTECTED] wrote:

Those are your only options.
 Beside SharedObjects, which is the easiest option i guess.

 --
 Ralf Bokelberg [EMAIL PROTECTED] ralf.bokelberg%40gmail.com
 Flex  Flash Consultant based in Cologne/Germany
  



[flexcoders] Re: passing variables between two consecutive flex applications

2008-02-15 Thread aduston1976
1. Use LocalConnection -- see the API doc at
http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html

2. Use ExternalInterface to write your xml string to a variable
attached to javascript window -- see
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html
and http://developer.mozilla.org/en/docs/DOM:window , or read a book
about javascript.

--- In flexcoders@yahoogroups.com, yigit [EMAIL PROTECTED] wrote:

 hi all,
 i have 2 sperate flex applications (say A B),
 the user first uses A, then B; and A has to pass an XML file to B.
 
 i just could not find a way to pass the xml. it is long so i can not
use 
 GET method (so Application.application.parameters) and i do not want to 
 use a server side script to pass xml using flashvars. (i do not want to 
 code any server side! )
 i tried SharedObject.getLocal method, but although i serve them from
the 
 same domain, they can not reach each others data. (in the help it says 
 they can, but i could not make it work)
 
 so, any other solutions ?





Re: [flexcoders] Re: passing variables between two consecutive flex applications

2008-02-15 Thread yigit

sorry, i need to be more clear;
the user navigates from application A to application B. so all js object 
are cleared, and two applications can not talk via localconnection 
because they are not running at the same time.

by the way, an idea came to my mind right now, i can use external 
interface, set cookies via javascript then navigate to the other page 
and read values again with external interface; but actually i did not 
like it (wish it works)

but any other solution?

by the way, aduston, thanks.

aduston1976 wrote On 02/15/2008 04:22 PM:

 1. Use LocalConnection -- see the API doc at
 http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html 
 http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html

 2. Use ExternalInterface to write your xml string to a variable
 attached to javascript window -- see
 http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html
  
 http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html
 and http://developer.mozilla.org/en/docs/DOM:window 
 http://developer.mozilla.org/en/docs/DOM:window , or read a book
 about javascript.

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, yigit [EMAIL PROTECTED] wrote:
 
  hi all,
  i have 2 sperate flex applications (say A B),
  the user first uses A, then B; and A has to pass an XML file to B.
 
  i just could not find a way to pass the xml. it is long so i can not
 use
  GET method (so Application.application.parameters) and i do not want to
  use a server side script to pass xml using flashvars. (i do not want to
  code any server side! )
  i tried SharedObject.getLocal method, but although i serve them from
 the
  same domain, they can not reach each others data. (in the help it says
  they can, but i could not make it work)
 
  so, any other solutions ?
 

  



Re: [flexcoders] Re: passing variables between two consecutive flex applications

2008-02-15 Thread yiğit boyar
actually it does no work :(
i can store value to a cookie vie external interface and read in the other
application;
but when i try to save xml data, since the way to keep cookies via
javascript is really weak, it does not work :(
i need to make too many escape character control and to make it robust will
be diffucult; so I better find another way.

i think i will have to add server side help :(

any hope?

On Fri, Feb 15, 2008 at 4:38 PM, yigit [EMAIL PROTECTED] wrote:


 sorry, i need to be more clear;
 the user navigates from application A to application B. so all js object
 are cleared, and two applications can not talk via localconnection
 because they are not running at the same time.

 by the way, an idea came to my mind right now, i can use external
 interface, set cookies via javascript then navigate to the other page
 and read values again with external interface; but actually i did not
 like it (wish it works)

 but any other solution?

 by the way, aduston, thanks.

 aduston1976 wrote On 02/15/2008 04:22 PM:
 
  1. Use LocalConnection -- see the API doc at
  http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html
  http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html
 
 
  2. Use ExternalInterface to write your xml string to a variable
  attached to javascript window -- see
 
 http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html
  
 http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html
 
  and http://developer.mozilla.org/en/docs/DOM:window
  http://developer.mozilla.org/en/docs/DOM:window , or read a book
  about javascript.
 
  --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com, yigit [EMAIL PROTECTED] wrote:
  
   hi all,
   i have 2 sperate flex applications (say A B),
   the user first uses A, then B; and A has to pass an XML file to B.
  
   i just could not find a way to pass the xml. it is long so i can not
  use
   GET method (so Application.application.parameters) and i do not want
 to
   use a server side script to pass xml using flashvars. (i do not want
 to
   code any server side! )
   i tried SharedObject.getLocal method, but although i serve them from
  the
   same domain, they can not reach each others data. (in the help it says
   they can, but i could not make it work)
  
   so, any other solutions ?
  
 
  




Re: [flexcoders] Re: passing variables between two consecutive flex applications

2008-02-15 Thread Paul Andrews
Shared objects?
  - Original Message - 
  From: yiğit boyar 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, February 15, 2008 3:41 PM
  Subject: Re: [flexcoders] Re: passing variables between two consecutive flex 
applications


  actually it does no work :(
  i can store value to a cookie vie external interface and read in the other 
application;
  but when i try to save xml data, since the way to keep cookies via javascript 
is really weak, it does not work :(
  i need to make too many escape character control and to make it robust will 
be diffucult; so I better find another way.

  i think i will have to add server side help :(

  any hope?


  On Fri, Feb 15, 2008 at 4:38 PM, yigit [EMAIL PROTECTED] wrote:


sorry, i need to be more clear;
the user navigates from application A to application B. so all js object
are cleared, and two applications can not talk via localconnection
because they are not running at the same time.

by the way, an idea came to my mind right now, i can use external
interface, set cookies via javascript then navigate to the other page
and read values again with external interface; but actually i did not
like it (wish it works)

but any other solution?

by the way, aduston, thanks.

aduston1976 wrote On 02/15/2008 04:22 PM:


 1. Use LocalConnection -- see the API doc at
 http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html
 http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html

 2. Use ExternalInterface to write your xml string to a variable
 attached to javascript window -- see
 
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html
 
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html
 and http://developer.mozilla.org/en/docs/DOM:window
 http://developer.mozilla.org/en/docs/DOM:window , or read a book
 about javascript.

 --- In flexcoders@yahoogroups.com

 mailto:flexcoders%40yahoogroups.com, yigit [EMAIL PROTECTED] wrote:
 
  hi all,
  i have 2 sperate flex applications (say A B),
  the user first uses A, then B; and A has to pass an XML file to B.
 
  i just could not find a way to pass the xml. it is long so i can not
 use
  GET method (so Application.application.parameters) and i do not want to
  use a server side script to pass xml using flashvars. (i do not want to
  code any server side! )
  i tried SharedObject.getLocal method, but although i serve them from
 the
  same domain, they can not reach each others data. (in the help it says
  they can, but i could not make it work)
 
  so, any other solutions ?
 

 



   

Re: [flexcoders] Re: passing variables between two consecutive flex applications

2008-02-15 Thread Joe
Id try a shared object.

http://learn.adobe.com/wiki/display/Flex/Shared+Objects

I have gotten it to communicate with a second browser before.

-Joe

On Fri, Feb 15, 2008 at 10:41 AM, yiğit boyar [EMAIL PROTECTED] wrote:

   actually it does no work :(
 i can store value to a cookie vie external interface and read in the other
 application;
 but when i try to save xml data, since the way to keep cookies via
 javascript is really weak, it does not work :(
 i need to make too many escape character control and to make it robust
 will be diffucult; so I better find another way.

 i think i will have to add server side help :(

 any hope?


 On Fri, Feb 15, 2008 at 4:38 PM, yigit [EMAIL PROTECTED] wrote:

 
  sorry, i need to be more clear;
  the user navigates from application A to application B. so all js object
  are cleared, and two applications can not talk via localconnection
  because they are not running at the same time.
 
  by the way, an idea came to my mind right now, i can use external
  interface, set cookies via javascript then navigate to the other page
  and read values again with external interface; but actually i did not
  like it (wish it works)
 
  but any other solution?
 
  by the way, aduston, thanks.
 
  aduston1976 wrote On 02/15/2008 04:22 PM:
  
   1. Use LocalConnection -- see the API doc at
  
  http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html
   
  http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html
  
   2. Use ExternalInterface to write your xml string to a variable
   attached to javascript window -- see
  
  http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html
   
  http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html
  
   and http://developer.mozilla.org/en/docs/DOM:window
   http://developer.mozilla.org/en/docs/DOM:window , or read a book
   about javascript.
  
   --- In flexcoders@yahoogroups.com
   mailto:flexcoders%40yahoogroups.com, yigit [EMAIL PROTECTED] wrote:
   
hi all,
i have 2 sperate flex applications (say A B),
the user first uses A, then B; and A has to pass an XML file to B.
   
i just could not find a way to pass the xml. it is long so i can not
   use
GET method (so Application.application.parameters) and i do not want
  to
use a server side script to pass xml using flashvars. (i do not want
  to
code any server side! )
i tried SharedObject.getLocal method, but although i serve them from
   the
same domain, they can not reach each others data. (in the help it
  says
they can, but i could not make it work)
   
so, any other solutions ?
   
  
  
 
 
  




-- 
-Joe


[flexcoders] Re: passing variables between two consecutive flex applications

2008-02-15 Thread aduston1976
  i think i will have to add server side help :(
  any hope?

1. Make the user navigate from one app to the other using javascript
rather than by requesting a new html page. You can use swfobject or
whatever for this. Then you can still use the ExternalInterface solution.
2. Use the server.

Those are your only options.

Adam

--- In flexcoders@yahoogroups.com, Joe [EMAIL PROTECTED] wrote:

 Id try a shared object.
 
 http://learn.adobe.com/wiki/display/Flex/Shared+Objects
 
 I have gotten it to communicate with a second browser before.
 
 -Joe
 
 On Fri, Feb 15, 2008 at 10:41 AM, yiðit boyar [EMAIL PROTECTED] wrote:
 
actually it does no work :(
  i can store value to a cookie vie external interface and read in
the other
  application;
  but when i try to save xml data, since the way to keep cookies via
  javascript is really weak, it does not work :(
  i need to make too many escape character control and to make it robust
  will be diffucult; so I better find another way.
 
  i think i will have to add server side help :(
 
  any hope?
 
 
  On Fri, Feb 15, 2008 at 4:38 PM, yigit [EMAIL PROTECTED] wrote:
 
  
   sorry, i need to be more clear;
   the user navigates from application A to application B. so all
js object
   are cleared, and two applications can not talk via localconnection
   because they are not running at the same time.
  
   by the way, an idea came to my mind right now, i can use external
   interface, set cookies via javascript then navigate to the other
page
   and read values again with external interface; but actually i
did not
   like it (wish it works)
  
   but any other solution?
  
   by the way, aduston, thanks.
  
   aduston1976 wrote On 02/15/2008 04:22 PM:
   
1. Use LocalConnection -- see the API doc at
   
  
http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html

  
http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html
   
2. Use ExternalInterface to write your xml string to a variable
attached to javascript window -- see
   
  
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html

  
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html
   
and http://developer.mozilla.org/en/docs/DOM:window
http://developer.mozilla.org/en/docs/DOM:window , or read a book
about javascript.
   
--- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com, yigit yboyar@ wrote:

 hi all,
 i have 2 sperate flex applications (say A B),
 the user first uses A, then B; and A has to pass an XML file
to B.

 i just could not find a way to pass the xml. it is long so i
can not
use
 GET method (so Application.application.parameters) and i do
not want
   to
 use a server side script to pass xml using flashvars. (i do
not want
   to
 code any server side! )
 i tried SharedObject.getLocal method, but although i serve
them from
the
 same domain, they can not reach each others data. (in the
help it
   says
 they can, but i could not make it work)

 so, any other solutions ?

   
   
  
  
   
 
 
 
 
 -- 
 -Joe