So, first elements of a visual interface ar draggable/resizable interface elements.
I decided to extend Prototype Element’s properties so that it can become really easy to add resize handlers to a given element. The code is fully working, thoug some extra features still need some tweaking. you can have 1 to 8 handlers, a callback fired [...]
I know everyone, at least once in his blogging life, installed WP Cumulus, the worldwide known plugin showing a shiny 3D tag cloud. In fact, nearly no one has eve used dimple javascript to create somethin like this, mostly because it seems to be quite useles, but also because, beside this, ther’s really near no [...]
just like my previous script, but with a neat support for <form> tags.
As previous script did, just add TARGET attribute with the ID of your AJAX target.
window.onload=function(){
Event.observe(document.body, ‘click’, function(event) {
var element = Event.element(event);
if (’A’ == element.tagName){
if ($(element.target) != undefined){
new Ajax.Updater(element.target,element.href,
{method:”post”,evalscripts:true})
Event.stop(event);
}
}
});
formz=document.getElementsByTagName(”form”);
for (i=0;i<formz.length;i++){
if ( formz[i].target!=undefined && formz[i].id!= “”){
el=formz[i].id
tar=formz[i].target
Event.observe(formz[i].id, ’submit’, function(event) {
$(el).request({
onSuccess: function(t) {
$(tar).update(t.responseText);
}
})
});
}
}
}
