[Proto-Scripty] drag/drop/resize in a liited area or in a panel area

2009-05-08 Thread mahi
hi I had seen too many examples of resizing and drag and drop of boxes but i wanna something like in which i made a outer box as we say main div and after that i will generate a inner box in it that can be movable in that main div area only and it can also be re-sized but it cannot cross that out

[Proto-Scripty] Re: Please Help With Code

2009-05-08 Thread T.J. Crowder
Hi Matt, I'm not a big fan of code handouts. Even if that is what he's doing, I'd much rather teach him to fish than give him a fish. (I'm not sure terms like "spaghetti" are necessarily in the spirit of cheerful helpfulness. ;-) He said he was new at this, and it may not have been A grade, bu

[Proto-Scripty] Solution for scriptaculous not loading problem

2009-05-08 Thread Fábio Gusmão
I recently heard people complaining about the latest version of scriptaculous not loading the required scripts and I found out this is a very simple issue with the Scriptaculous.load() function that maybe it has been resolved already but not yet released. The problem occurs when you place the scr

[Proto-Scripty] Re: Sortable lists

2009-05-08 Thread flamefo...@gmail.com
Yes, it says It is ported from Scriptaculous here: http://mochikit.com/doc/html/MochiKit/Sortable.html I am using this code in some portal so I can say its tested. The only bad thing I've found so far with this sortable lists (and is still giving me multiple headaches) is they way DND dont respe

[Proto-Scripty] Re: drag and drop problem

2009-05-08 Thread flamefo...@gmail.com
Looks to me they are ordered in a vertical pattern, try using some "float:left" css and see what happens. On 26 abr, 06:29, jojiju wrote: > Dear all, >      I have a problem in drag and drop in a code below. In two column > layout, when I want to sort between two li vertically then sorting > ac

[Proto-Scripty] Re: Displaying sortable List/Tabs

2009-05-08 Thread flamefo...@gmail.com
Not a pro here, and your message is not so clear either, but i think this might help, Make this div you want and attach some onmouseover trigger to your tabs selector, so it hides the later tab and shows the new one. while you are draggin something you can still trigger events with mouseover/mou

[Proto-Scripty] Re: Loading new sortable via AJAX

2009-05-08 Thread flamefo...@gmail.com
http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/2c213d1e74d6d646/e153079dd503312e?lnk=gst&q=mochikit#e153079dd503312e you need to use an array to update your containment groups, in the above example check the "sections" array. good luck there, bruno On 4 maio, 13:0

[Proto-Scripty] Re: destroy inplaceeditor/ inplaceselect

2009-05-08 Thread mtm81
thank you very much! On May 8, 4:31 pm, Walter Lee Davis wrote: > There's an example on the IPE Wiki page showing exactly how to do   > this. It's pretty simple -- you store a reference to the editor, then   > call its dispose() method when you're done with it. > > Here's a clip from a working i

[Proto-Scripty] Re: Please Help With Code

2009-05-08 Thread Matt Foster
I think he's looking for a snippet handout, by the looks of the spaghetti that he's pasted he's trying to highlight a single item in a menu. var activeElement = false; $$("ul.menu li").invoke("observe", "click", function(e){ var element = e.element(); if(activeElement)

[Proto-Scripty] Re: destroy inplaceeditor/ inplaceselect

2009-05-08 Thread Walter Lee Davis
There's an example on the IPE Wiki page showing exactly how to do this. It's pretty simple -- you store a reference to the editor, then call its dispose() method when you're done with it. Here's a clip from a working instance, although this is quite old and may have some 1.5 weirdness in it

[Proto-Scripty] destroy inplaceeditor/ inplaceselect

2009-05-08 Thread mtm81
Hi, I need several inplaceeditors on the screen, therefore I've included the inplaceeditor code into a function so that each instance is only generated when the user actually clicks the button to edit.. However if I click cancel on that instance and then click to edit again, the previous instance

[Proto-Scripty] Re: Please Help With Code

2009-05-08 Thread T.J. Crowder
Hi, There are lots of code examples in the resource I pointed you to, particularly the unofficial wiki. For instance, one aspect of what you're trying to do is hook events. That's very thoroughly covered with lots of examples in the API docs[1] and on the wiki[2][3]. So again, have a read thro

[Proto-Scripty] Re: Keypress event

2009-05-08 Thread Alex McAuley
After hours of investigating it seems i am correct, In firefox at least one cannot observe a keypress/keydown/keyup event on an element, it has to be done on the whole document for some bizzarre reason! HTH anyone who comes accross this problem in the future and saves them a headache Alex

[Proto-Scripty] Re: Please Help With Code

2009-05-08 Thread z...@zanepaul.com.au
Thanks for your reply, Im very new at this and was hoping more for some code to as a starting point? On May 8, 3:39 am, "T.J. Crowder" wrote: > Hi, > > Prototype can definitely help you with that.  Off the top of my head, > the Prototype methods you want are Element#observe[1] (which is a > con

[Proto-Scripty] Re: Please Help With Code

2009-05-08 Thread T.J. Crowder
Hi, Prototype can definitely help you with that. Off the top of my head, the Prototype methods you want are Element#observe[1] (which is a convenience wrapper for Event.observe[2]) and probably Element#addClassName[3] and Element#removeClassName[4]. [OT (e.g., not Prototype-related) you might w