Firstly my apologies if this question is answered elsewhere - please feel free to point me in the right direction if this is the case.
I'm struggling with what I think is basic understanding of how JQuery etc is put together. I'm very much a newbie with web development / intraweb etc.
I'm trying to write a little mobile app that has a number of edit controls and a signature component on it. The idea is that the technician enters a few details, captures the customer signature and then the result is emailed. Capturing the text data is not a problem, neither is emailing - all working beautifully and the signature is at least rendered on the screen
However, what I wanted to do then was export the signature in SVG format so that I could either store it in a db or reconstruct it as a file to send as an attachment. The problem is I can't see how the SVG data is generated - so loaded up the CGTools demo and had a look - and the way it works is confusing me. It seems that on selecting the data type (in the demo) that some parameters are hooked up to a button and then that button is re-rendered. My guess was that this causes the "BrowserScript" to be executed and when the button is pressed, the sigdata is available via the event handler.
To try to prove this, I ran the demo, selected the data type *before* drawing a signature to see if this fooled it. It didn't - this left me confused as the data is still available on pressing the export to memo button.
To try to make sense of my question, I'd like to know if it's possible to capture a signature in a known format with only 1 button that also collects the other data on my form at the same time ?
Any brief explanation of how the whole BrowserScript / Params model works would be a nice bonus.
I'm sure I am missing something blindingly obvious and I am happy to read anything suggested - so apologies in advance.
Tim