Certo che hai scelto un bel programmati mostro un esempio in asp funzionante
pagina
pagina update.aspcodice:<html> <head> <title></title> <style type="text/css"> #TextArea1 { border:1px silver solid; height:300px; width:300px; padding:10px; } </style> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script> <script src="/tmp/jquery.jeditable.mini.js"></script> <script type="text/javascript"> // <![CDATA[ $(function() { $('.edit').editable('update.asp', { indicator : 'Saving...', tooltip : 'Click to edit...' }); $('.edit_area').editable('update.asp', { type : 'textarea', cancel : 'Cancel', submit : 'OK', indicator : '<img src="img/indicator.gif">', tooltip : 'Click to edit...' }); }); // ]]> </script> </head> <body> <div id="div1" class="edit">Scrivi qualcosa</div> <br /><br /> <p id="TextArea1" class="edit_area"></p> </body> </html>
in pratica, ho notato che quel programma spedisce due parametri:codice:<% id = trim(request("id")) value = trim(request("value")) response.Write "id: " & id & " value: " & value response.end %>
value => quello che si scrive
id => id del controllo su cui si scrive
perciò, la pagina update.asp, legge questi parametri ricevuti e li rispedisce al chiamante, che li vede
ps. il mio consiglio è di lasciare perdere questo plugin e di usare jquery![]()

ti mostro un esempio in asp funzionante
Rispondi quotando