[Proto-Scripty] Create a movable Window like jQuery UI Dialog

2011-12-23 Thread Manfred Rebentisch
Hello, I need some help for creating a simple dialog window with prototype and scriptaculous. This dialog http://docs.jquery.com/UI/Dialog is good for me, but how can I create that without jquery? My problem is the dragging method with the title bar only. Thank you in advance Manfred --

Re: [Proto-Scripty] Create a movable Window like jQuery UI Dialog

2011-12-23 Thread Walter Lee Davis
If you define a handle area in your HTML and give it a classname, you pass that classname as a string to the Draggable method in the parameters hash. Then only elements with that class will be draggable. This also lets you set the cursor:move through your CSS so it looks moveable, too! div

Re: [Proto-Scripty] Create a movable Window like jQuery UI Dialog

2011-12-23 Thread Manfred Rebentisch
Hi, wow! A good and very fast answer! I will test it now... Thank you! -- COMPARAT Software-Entwicklungs-GmbH Prießstraße 16 23558 Lübeck Telefon: 0451/479 56 60 Geschf: Manfred Rebentisch AG Lübeck, HRB 3559 Web: www.comparat.de Web, Businessplattform: www.athesios.de Lübeck:

[Proto-Scripty] Re: Event.on bound to element only

2011-12-23 Thread Victor
Don't worry - use Function#bind(): Event.on($(id), click, function (event, element) { // this === element === $(id) }); var object = {}; Event.on($(id), click, function (event, element) { // this === object // element === $(id) }.bind(object)); -- You received this message because you

[Proto-Scripty] Trying to solve a error using $$

2011-12-23 Thread Marty Amberg
maybe some one could point me in the right direction. I use this code to extract the values from a table and if the table entry is blank it removes the tr element. The first time thru it works great. Updates the db and returns all to normal. The next time I get this error Thanks again.

Re: [Proto-Scripty] Trying to solve a error using $$

2011-12-23 Thread Walter Lee Davis
The problem here is that you're clobbering Prototype's $A() function, which is used to initialize and extend an array. Choose a different name for your variable in line 7 of your example -- anything that isn't also used in Prototype -- and you should be all set. $A is used all over the place