How to stop a procedure in a html page

cherrydan

New Member
Hello,

I'm creating a webspeed application.
I've got procedure test.p who call a html page, like that:

------ Test.p ----------
run tst.html.
------------------------

This procedure is ok but in my navigator( IE 6), I've got this adress:
http://localhost/scripts/cgiip.exe/WService=wsbroker1/Test.p
And when I submit the html page(tst.html), it's running Test.p, and i lost my data.

How can I do to have:
http://localhost/scripts/cgiip.exe/WService=wsbroker1/tst.html in the navigator or How can I stop Test.p for submit my page.

Thanks a lot for your response
 
I don't think I understand you correctly.

What do you want to achieve. You say you loose data. What data?
I normally would write some dispatch procedure which handles the requests and makes sure that depending on the context the right page is being run.
for instance:
Code:
valid session?
--> no
--> login/password entered?
      --> yes --> check --> correct --> run nextpage.p (which runs nextpage.html)
                            wrong --> run index.html
      -->no run index.html
--> yes --> run pageasneeded.
etc. etc...

This way you can control the flow of pages by constantly running the same procedure.

You can use get-value('name') to query fields from the submitted form.
You can use default session/context mangement by Progress or make your own. There are functions like getSession and SetSession to store/retrieve the necessary session information.

Hope this somehow makes sense to you.

Casper
 
Back
Top