Form/Event PHP Method

My Php Method Coding:

$str = {Order4no};
$len2 = count( explode(’,’,$str ));
// sc_alert(" Order4no ON-BLUR event ( $len2 ) ");
echo “<font style=‘color=red;font-size=14pt;’> Order4no ON-BLUR event ( [$len2] )</font>” ;

Questions:

  1. The echo output via SC with give a title Output as message heading. How to Change the SC std title (Output) with my defined title?
  2. I cant use (error)
    sc_alert(" Order4no ON-BLUR event ( [$len2] ) ");
    in my Php coding. What’s wrong- may be it cant accept $len2? How to do it?

TQ for help in advance.

Re: Form/Event PHP Method

The events and methods are execute using ajax.

This mean that if you use echo to output something … this output wont come to the interface, is executed on the server side. ScriptCase capture that and show as a Output.

If you are trying to execute a javascript action on the client side, see the macro sc_ajax_javascript
If you are trying to show a message to the user(echo somemessage), see the macro sc_ajax_message

Re: Form/Event PHP Method

Thks Diogo Toscano for the explantion. I will will do that.

Tested: sc_ajax_message works fine.