SSE example

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

Re: SSE example

Postby ssbbs » Fri May 26, 2023 6: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
User avatar
ssbbs
 
Posts: 104
Joined: Mon Oct 17, 2005 3:03 am
Location: Taiwan

Re: SSE example

Postby Otto » 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


viewtopic.php?f=45&t=41883&p=251070&hilit=html&sid=803baefa45914aa3e822398600af6982#p251070
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: SSE example

Postby ssbbs » Fri May 26, 2023 1: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: 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

 
line ID: ssbbstw
WeChat ID: ssbbstw
User avatar
ssbbs
 
Posts: 104
Joined: Mon Oct 17, 2005 3:03 am
Location: Taiwan

Re: SSE example

Postby Otto » Fri May 26, 2023 5:36 pm

Hello sbbs,
Thank you. I will try.

What advantages do you have if HTML is the default setup?
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: SSE example

Postby ssbbs » Sat May 27, 2023 2:18 am

What aspect do you mean?
line ID: ssbbstw
WeChat ID: ssbbstw
User avatar
ssbbs
 
Posts: 104
Joined: Mon Oct 17, 2005 3:03 am
Location: Taiwan

Previous

Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 2 guests