Edit in place

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
fabby
Forum Commoner
Posts: 62
Joined: Tue Feb 15, 2005 1:06 am
Location: Romania
Contact:

Edit in place

Post by fabby »

Hello.
I use this script: http://code.google.com/p/jquery-in-place-editor/ and i have a problem that i don't know how to edit to forms (a textinput and a selectbox)
I tried somethink like this:
<div class="rc_keywords_locations">
<span class="rc_keyword">seo77</span>,
location <span class="rc_location0">Berlin</span>
</div>
<div class="rc_keywords_locations">
<span class="rc_keyword">aaa</span>,
location <span class="rc_location1">Berching</span>
</div>
and the javascript:
$(".rc_keyword").editInPlace({

callback: function(unused, enteredText) {
return enteredText;
},
// url: './server.php',
show_buttons: true,
preinit: function(unused, enteredText) {
console.log('da');
$(".rc_location0").editInPlace({
callback: function(unused, enteredText) { return enteredText; },
});
}
});
and don't work.
can you help me please where is the problem?
thanks
Post Reply