On 9 Mar 2007, at 02:44, Rick Faircloth wrote:
> I don’t see how to hook the “Editable” plug-in to *any* datasource
> right now.
>
You mean you want to save the text you edit to the database? For
jEditable first and only mandatory parameter is the URL where edited
content is POST:ed to. For example:
$(document).ready(function() {
$(".editable").editable("http://www.example.com/save.php", {
type : 'textarea',
submit : 'OK'
});
});
With whis example when you edit stuff and click ok stuff gets POST:ed
to http://www.example.com/save.php. This script should then save
content to database. You can check examples at:
http://www.appelsiini.net/~tuupola/javascript/jEditable/
or browse example source code at:
http://svn.appelsiini.net/viewvc/jQuery_jEditable/trunk/examples/
JavaScript itself does not connect to database. You need to use some
serverside language such as PHP, Ruby or Perl for that.
--
Mika Tuupola http://www.appelsiini.net/~tuupola/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/