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
Webserver component
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Webserver component
Hello
There is a manual on the Webserver / TCP components in Flowcode that may provide some answers to the problems you are having.
The manual can be downloaded from here.
http://www.matrixmultimedia.com/Learnin ... ersion.pdf
There is a manual on the Webserver / TCP components in Flowcode that may provide some answers to the problems you are having.
The manual can be downloaded from here.
http://www.matrixmultimedia.com/Learnin ... ersion.pdf
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 502
- Joined: Wed Nov 07, 2007 6:51 pm
- Location: Antwerp Belgium
- Has thanked: 121 times
- Been thanked: 108 times
- Contact:
Re: Webserver component
Thank you BenJ, I have this teachers note.
But nowhere it speaks of the webserver component and doesn't mention any of my questions above.
It's a pity that the examples in this teachers note (EB921) aren't available.
Would have like to had it when I bought the Internet Board.
But nowhere it speaks of the webserver component and doesn't mention any of my questions above.
It's a pity that the examples in this teachers note (EB921) aren't available.
Would have like to had it when I bought the Internet Board.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Webserver component
Hello
The examples are all available from the solutions page next to the links for the manuals.
http://www.matrixmultimedia.com/abouteb ... ions-X.php
The examples are all available from the solutions page next to the links for the manuals.
http://www.matrixmultimedia.com/abouteb ... ions-X.php
Yes you can do this with the AddDefines component or by clicking on Edit -> Supplementary code.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?
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel