Webserver component
Posted: Wed Apr 15, 2009 8:42 pm
I made a webserver with the Flowcode webserver component, this works fine.
In the help-files I see that I can add variables comming from the PIC.
I want to do a simple thing, and therefore I need two answers.
I want to add a counter to my page so I can see how many times the indexpage is viewed.
But, first off all, this counting should be done by keeping the times the socket gets called.
I have a "retval" for the return of the CheckSocketActivity, my guess was that it should be diffrent if there was a request on that socket? All I get are zero's when I call the indexpage. Nothing changes.
Is there a returncode for the CheckSocketActivity part of the macro???
Second: in the help files for the webserver macro it's mentioned that to use a variable in the HTML, I need to define it first?
Is this done with "AddDefine" macro?
If my variable in Flowcode is called "total", how can I get Flowcode to show this in the %total% in HTML?
How can I get Flowcode to know where to look for "total"?
Thanks
In the help-files I see that I can add variables comming from the PIC.
I want to do a simple thing, and therefore I need two answers.
I want to add a counter to my page so I can see how many times the indexpage is viewed.
But, first off all, this counting should be done by keeping the times the socket gets called.
I have a "retval" for the return of the CheckSocketActivity, my guess was that it should be diffrent if there was a request on that socket? All I get are zero's when I call the indexpage. Nothing changes.
Is there a returncode for the CheckSocketActivity part of the macro???
Second: in the help files for the webserver macro it's mentioned that to use a variable in the HTML, I need to define it first?
Is this done with "AddDefine" macro?
If my variable in Flowcode is called "total", how can I get Flowcode to show this in the %total% in HTML?
How can I get Flowcode to know where to look for "total"?
Thanks