Page 1 of 1

How do I get the messages from the server?

Posted: Fri Apr 08, 2011 5:01 am
by chopper64
The swf file overlaid so the HTML version of the browser. So to speak.

Is being given to perform the functions of the communication between the swf and server (eg Load Configuration, load language) provide a possibility, notifications of PHP in a message window of the designer / viewer to spend?

For example, like this:

Code: Select all

index.php?stimulsoft_client_key=.....&stimulsoft_message_key =%message_text%....
This would allow the content of %message_text% coming from servers easily be passed to the client.

If one looks at the HTML output in Firebug, so you can see the messages but they are not passed by the swf.

For developers ok but for users....?

How do I get the messages from the server?

Posted: Mon Apr 11, 2011 1:44 am
by Vladimir
Hello,

Could you please describe in more detail: what messages, when and where you want to display them?

Thank you.

How do I get the messages from the server?

Posted: Tue Apr 12, 2011 1:56 pm
by chopper64
Problem:
If the SQL Server or Apache / PHP to generate an error, this is indeed the HTML of the page displayed, the user can not see this message, however, as the Flash application (Designer / Viewer), this issue is superimposed. The developer can still determine, however, users do not even

My suggestion:
Generate error messages in the scripts themselves or exceptions abfngen (try. .. catch) and forward the message text output to the Flash application and. The way which is in use with the data report made ​​at Sti_LoadReport ($...)

How do I get the messages from the server?

Posted: Wed Apr 13, 2011 1:58 am
by Vladimir
Hello,

A similar mechanism is already there. If an internal error occurred on the server, you can send the following line instead of the data:

Code: Select all

ServerError:Any error message
In this case, a dialog box with an error will be displayed.

Thank you.