Page 2 of 2

Re: SSE example

PostPosted: Fri May 26, 2023 6:58 am
by ssbbs
Otto wrote:Hello ssbbs,
With the prg version I get following error:
Error: Unterminated string ''
called from: __PP_PROCESS, line: 0
called from: ..\source\exec.prg, EXECUTE, line: 64

Source:
0062: a: 1
0063: ,b: 2
0064 => };
0065: let param=url+'?func=9&data='+JSON.stringify(data);
0066: alert('Go...');


This seems to be a javascript problem.

What about your execution environment?
PHP ?
Apache ?
Browser?

my environment is:
Apache/2.4.52 (Win32) OpenSSL/1.1.1m PHP/7.4.27
Chrome 113.0.5672.127

Re: SSE example

PostPosted: Fri May 26, 2023 12:27 pm
by Otto
Hello ssbbs,


I can't remember, do I have to change something in mod harbour setup that

<?prg

LOCAL cMethod := AP_Method()

?>

is working?

Thank you and best regards,
Otto


viewtopic.php?f=45&t=41883&p=251070&hilit=html&sid=803baefa45914aa3e822398600af6982#p251070

Re: SSE example

PostPosted: Fri May 26, 2023 1:58 pm
by ssbbs
you need to modify the code I mentioned in the previous letter.
Because the mod_harbour I used has been modified.
It is different from the version you are using.

my code style:
Code: Select all  Expand view

<?prg
:
:
?>
<html>
:
:
</html>
<?prg
:
:
?>
 


you must modify to:
Code: Select all  Expand view

function main()
local .....
:
   TEMPLATE
<html>
:
:
</html>
   ENDTEXT
:
:
:
return

 

Re: SSE example

PostPosted: Fri May 26, 2023 5:36 pm
by Otto
Hello sbbs,
Thank you. I will try.

What advantages do you have if HTML is the default setup?
Best regards,
Otto

Re: SSE example

PostPosted: Sat May 27, 2023 2:18 am
by ssbbs
What aspect do you mean?