If you don’t know what it is then I’ll try explain. It allows you to edit content inline, for example:
<div class="edit" id="one">Content</div>
If I used that code then I could click on “Content” and then it would change to a text input field then I could change it and hit Enter and it would change.
When you hit enter the id of the div and the content of the div is sent to a file called save.php.
The documentation/example for jEditable uses SQL Lite / Pear DB or something, but I want to use MYSQL.
I’d like it so for every unique id I have there is a new row in a table in the database. Say if I have one with the id of “blah” and the content is “wee” then I change the content to “woo” would it update the row instead of adding a new one?
Having had a quick look I think you are in for a hard time.
jEditable looks really neat, but its a plugin for jQuery. The samples are built with as you point out dependencies on other classes to manage database access etc.
If you don’t already know this jQuery package, you should first become very familiar with it. My advice is to write some simple test stuff using jQuery before launching off trying to hack around other plugins. Make sure you get into your head how Ajax works.
If you are totally sold on jQuery then get comfortable using that package, and I am sure you will work out how to write your own application that does pretty much what jEditable does.
If you are after an “editinplace” as it is sometimes termed then try this search
If you are determined to see this through with jEditable then you likely need to edit the dns here:
Thanks a lot for your reply, I’m using quite a few other things from jQuery so I think I want to stick with it…I’ll try some of your advise but I really don’t know all that much about coding at all…
Does anyone have any more information/ can help me get it working? Thanks for your help though Cups.
To be honest I couldn’t really give what library is used or anything as long as the EIP comes with php files that save the changes to a database…I like the one with Moo FX though, very pretty.
You should ask your host, the package is probably already installed.
PEAR DB is an object oriented data base access package that comes from the Php Extension and Application Repository. You can access many different Data bases, including MySQL by changing parameters in the dsn.
I just found this which to me looks amazing…but it has no saving routines…if anyone could help me out to get it so it can save to a mysql database then I would probably donate via paypal or something and would be eternally grateful…
I’ve been trying JEditable as well and if you’re using the same version as me you don’t actually have to use that save.php script, you can tell the JS to use any php page and put your own code in it. That way you can just do a basic mysql update.
I know you can use your own PHP script but I don’t know how to make it otherwise I would do that but now that I have found this I would much prefer to use it…over anything - it’s amazing.