Donnie,
I am not a NetTalk expert by any means, but this is what I found during my trial and error efforts.
EXECUTING CLARION CODE ON A PAGE
One thing to consider is that the Clarion code gets executed as the page loads; therfore, all decisions must be made before the page is created. What I have done with some success is to link back to the same page and pass the event in the URL that I am trying to execute. For instance, if I wanted to run the routine "Say Hello" then I would put the following on my button on the page (assuming that the button is on "indexpage"):
<form action="Indexpage" method="post"><input type="hidden" name="whatnow" value="sayhello" /><input type="submit" class="testbutton" name="Say Hello!" /></form>
Then on indexpage in the appropriate embed location, add the following:
IF CLIP(p_Web.GetValue('whatnow"))='sayhello' THEN
DO SayHello
END!IF
In procedure routines, add the following code:
SayHello ROUTINE
packet=CLIP(Packet) & '<br />Hello there!'
EXIT
If you need to retain the data longer than the first screen you must save it in the session queue because as soon as the page is delivered the thread ends and the value queue is deleted. Since forms are a two pass, two thread process, I recommend writing the data to the session queue as soon as you read it.
Please do not take any of the code above as properly working code - I usually get the syntax of the submit button wrong. It should, however, help you try to get your head wrapped around this web stuff. The BIGGEST difference between web and app development is that unless you do some javascript programming, you need to know what you are going to do when you get to the page and that any input your program requires needs to be passed to another page for processing, but that page you pass it to could be the same page and interpreted as the page is being built.
PLACEMENT ON THE SCREEN
Bruce is correct - CSS is required to tweak the actual placement of an object on the screen (in addition to the order in which the HTML is generated). However, this is not a real difficult task if you use the right CSS editor.
While some people like to use FireBug which is a free add-on tool to Firefox and works quite well, I prefer to use Stylizer from Skybound Software (
http://www.skybound.ca). It cleans your CSS code so every line is compliant, lets you easily create compliant CSS tags simply by pointing to the element you want to adjust, setting the specificity of the rule by clicking on the necessary parents and classes, and then clicking "add to rule". The presentation adjusts automatically as you change the CSS for the screen. It is pretty awesome and well worth the $89 cost of the software. I believe they have a 30 day test period of the full functionality before it cripples itself to basic functionality, but I was so impressed I ordered it the first day I had it.
Good luck!
Rob