SSE example

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
User avatar
ssbbs
Posts: 104
Joined: Mon Oct 17, 2005 3:03 am
Location: Taiwan

Re: SSE example

Post 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
line ID: ssbbstw
WeChat ID: ssbbstw
User avatar
Otto
Posts: 6378
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: SSE example

Post 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


https://forums.fivetechsupport.com/view ... 82#p251070
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
ssbbs
Posts: 104
Joined: Mon Oct 17, 2005 3:03 am
Location: Taiwan

Re: SSE example

Post 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

<?prg
:
:
?>
<html>
:
:
</html>
<?prg
:
:
?>
 
you must modify to:

Code: Select all | Expand

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

 
line ID: ssbbstw
WeChat ID: ssbbstw
User avatar
Otto
Posts: 6378
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: SSE example

Post by Otto »

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
ssbbs
Posts: 104
Joined: Mon Oct 17, 2005 3:03 am
Location: Taiwan

Re: SSE example

Post by ssbbs »

What aspect do you mean?
line ID: ssbbstw
WeChat ID: ssbbstw
Post Reply