I created a tiny TurboGears app with a single button that invokes a Javascript function to change the text of a paragraph.
You can see for yourself by using app at http://seberino.org/chat . You can even see all source code at http://seberino.org/tiny . I tried to bolt onto the this little Javascript function a loadJSONDoc MochiKit call that never seems to work and I don't know why. Here is all the Javascript code for this function... ====================================== var editItem = function() { var item = document.getElementById("test_paragraph"); item.innerHTML = "This is the new text after JS function called."; var d = loadJSONDoc('http://seberino.org/chat/test'); d.addCallback(doNothing); } var doNothing = function(obj) { return true; } ====================================== The way I know if loadJSONDoc was successful is that I created a counter at http://seberino.org/chat/test that gets incremented whenever accessed/reloaded. I never see the counter increment when I invoke that Javascript function. WHY??? Any help greatly appreciated. Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

