Hello,
I have a grid form that displays a html field.
I am trying to implement Jeditable:
http://www.appelsiini.net/projects/jeditable
If I’m understating it correctly I need to do three things:
#1 - Put this stuff somewhere:
[INDENT]<script src=“http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js” type=“text/javascript” charset=“utf-8”></script>
<script src=“jquery.jeditable.js” type=“text/javascript” charset=“utf-8”></script>
<script type=“text/javascript” charset=“utf-8”>[/INDENT]
#2 - Put this stuff somewhere:
[INDENT]$(function() {
$(".editable_textarea").editable(“http://www.appelsiini.net/projects/jeditable/php/save.php”, {
indicator : “<img src=‘img/indicator.gif’>”,
type : ‘textarea’,
submitdata: { _method: “put” },
select : true,
submit : ‘OK’,
cancel : ‘cancel’,
cssclass : “editable”
});
});
</script>[/INDENT]
#3 - Put this in the html filed I want the user to be able to edit:
[INDENT]<p class=“editable_textarea” id=“paragraph_1”>Put the editable content here</p>[/INDENT]
I think I’m doing number 3 right, but I can’t figure out how to get Scriptcase to put #1 and #2 in the <HEAD> </HEAD section.
I’ve tried onApplication, OnScriptinit, onHeader…???
I cant get it to work…
Any help you can provide is greatly appreciated.
Thanks…