FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour SSE example
Posts: 129
Joined: Mon Oct 17, 2005 03:03 AM
Re: SSE example
Posted: Fri May 26, 2023 06:58 AM
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
line ID: ssbbstw

WeChat ID: ssbbstw
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: SSE example
Posted: Fri May 26, 2023 12:27 PM
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


https://forums.fivetechsupport.com/viewtopic.php?f=45&t=41883&p=251070&hilit=html&sid=803baefa45914aa3e822398600af6982#p251070
Posts: 129
Joined: Mon Oct 17, 2005 03:03 AM
Re: SSE example
Posted: Fri May 26, 2023 01:58 PM
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 (fw): Select all Collapse
<?prg
:
:
?>
<html>
:
:
</html>
<?prg
:
:
?>
you must modify to:
Code (fw): Select all Collapse
function main()
local .....
:
   TEMPLATE
<html> 
:
:
</html>
   ENDTEXT
:
:
:
return
line ID: ssbbstw

WeChat ID: ssbbstw
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: SSE example
Posted: Fri May 26, 2023 05:36 PM

Hello sbbs,

Thank you. I will try.

What advantages do you have if HTML is the default setup?

Best regards,

Otto

Posts: 129
Joined: Mon Oct 17, 2005 03:03 AM
Re: SSE example
Posted: Sat May 27, 2023 02:18 AM

What aspect do you mean?

line ID: ssbbstw

WeChat ID: ssbbstw

Continue the discussion