PDA

View Full Version : js problem number 101


ragtek
12-02-2007, 10:03 AM
i'm trying now to teach me the js-oop stuff

so this is my site: http://www.ragtek.org/forum/todo.php
here i want to click on the button and to get an editor


without oop its working fine but with i'm having some problems

i see in firebug that the connection is working and i'm getting my template back <?xml version="1.0" encoding="windows-1252"?>

<template><![CDATA[<input type="text">]]></template>
but my save method isn't called
vB_todo_Factory.prototype.presave = function()
{
YAHOO.util.Connect.asyncRequest("GET", "ajax.php?do=updatetodo"), {
success: this.save,
failure: this.fehler,
timeout: 5000,
scope: this
};
}

vB_todo_Factory.prototype.save=function(ajax){
alert("test");
this.response.innerHTML = ajax.responseXML.getElementsByTagName("template")[0].firstChild.nodeValue;
}

can somebody help pls?

--------------- Added 1196675783 at 1196675783 ---------------

anybody?:(



sorry for bumping

ragtek
12-03-2007, 04:40 PM
Here a crossposting http://tech.groups.yahoo.com/group/ydn-javascript/message/21731 but this answer also don't bring anything