Hello!
I'd like to change a MySQL filed when user clicks link.
My idea is to use javascript's onClick and loadJSONDoc in javascript
to pass all the relevant data. But at the end I am not even sure if I
use loadJSONDoc correctly since when I test it it doesn't work as
expected.
Here is what I have in kid template:
<a href="http://www.turbogears.org" onClick="yell()"
target="_blank">Official website</a>
and here is alert.js (which is included in master.kid:
function yell()
{
var d=MochiKit.Async.loadJSONDoc("http://www.google.com");
}
Can anybody point me to the right direction?
B.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---