I am trying to pass two parameters to the function named “monkey”. It is not working. What am I doing wrong?
[code]
function processTextOnEnterKeyPressed(Source)
{
var src = Source;
var val = document.getElementById(Source).value;
myRequest = new Request({
url: “/snake/monkey/”+val+” “+setting_id
}).send();
}
This is the function “monkey” that is updating the Sequel database. I am sure this is wrong also as it is not specific to the Sequel database ‘id’ i wish to change. I don’t know how to set the id.
[code]
def monkey( source_value, setting_id)
DataBase[:settings].update(:name => source_value).where( :id => setting_id )
end