[Klone-users] Onclick-Events

Steven Dorigotti dorigotti at koanlogic.com
Mon Mar 10 10:08:58 EDT 2008


Hi,

   If you have a look at the definition of the onclick parameter (http://www.w3schools.com/jsref/jsref_onclick.asp 
), you'll see that it's javascript-specific.

   If you want to post parameters to C code you should be posting  
variables to a page and retrieving them from the taget page using  
request_get_arg()...

   Check out the tutorial for an example:
http://koanlogic.com/klone/tut.html

good luck!
sd


On 10/mar/08, at 14:43, diakat 2000 wrote:

> Hello,
>
> I've just another newbie question: How could I do event handling with
> C/C++ functions?
>
> I've a form with serveral input field. I' m able to access on a sqlite
> database and display some values in the fields. Now I want to save
> user changes back in database. But something goes wrong. My code looks
> like:
>
>
> // C method
> int dbSaveDescriptionAll ()
> {
> ... saving all Fields in database (sqlite)
> return 1;
> }
>
> // my form
>  <form action ="testpage.kl1" method ="post" enctype="multipart/form- 
> data">
> 	.... // some input-fields
>
> // my form button
>  <% io_printf (out, <input type= \"button\" name = \"bt_save"
> value=\"save\" onclick= \"dbSaveDescriptionAll()\"/>");
> %>	
>
> It seems that the function dbSaveDescriptionAll() is uncalled.
>
> I hope somebody could tell me what I'm doing wrong.
>
> Ciao
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20080310/453ffd70/attachment.html


More information about the klone-users mailing list