frankfenghua / monarch-flex

Automatically exported from code.google.com/p/monarch-flex
1 stars 0 forks source link

Need way of communicating regular expressions between server and client #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
See
http://code.google.com/p/monarch-flex/source/browse/trunk/monarch-server/Client/
getRegex.php.
If '<' is not escaped, XML comes back as ill-formed. There also may be
issues with other characters. 

Another problem comes with translation between PHP and ActionScript regular
expression syntaxes. This will be a secondary concern right now.

Proposed approach: escape all characters problematic for XML within regular
expressions, transmit them as XML, un-escape characters on reception.

The XMLEscape function in 'detailStats.php' (called 'xml') should be moved
to a common location and augmented as needed.

Original issue reported on code.google.com by andrewps...@gmail.com on 17 Apr 2009 at 5:36

GoogleCodeExporter commented 8 years ago
XML too problematic; I'm going to try to use 'flashvars' format instead.

Original comment by andrewps...@gmail.com on 17 Apr 2009 at 11:33

GoogleCodeExporter commented 8 years ago
'flashvars' doesn't work either. Now to resort to just 'text' and to parse on 
our own.

Original comment by andrewps...@gmail.com on 19 Apr 2009 at 9:57

GoogleCodeExporter commented 8 years ago
This ad hoc approach has worked and Server -> GUI communication seems to be 
stable. 
This has allowed for population of the Regex Editor for already existing 
websites.

Original comment by andrewps...@gmail.com on 19 Apr 2009 at 9:19

GoogleCodeExporter commented 8 years ago
Communication to server is now working. All we need to do is store info in 
database...

Original comment by andrewps...@gmail.com on 21 Apr 2009 at 2:24

GoogleCodeExporter commented 8 years ago
Settled on:
1) Server -> Flex : transmit message as text and parse on client end. See
documentation for format.
2) Flex -> Server : send all values via HTTPService GET method.

Original comment by andrewps...@gmail.com on 21 Apr 2009 at 6:28