[Proto-Scripty] Re: determine if dom:onload has happened yet?

2009-06-30 Thread disccomp
In any case; If an event can only happen once, shouldn't prototype throw some error that you can no longer register such an event after it has been called? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype &

[Proto-Scripty] Re: Events in own Class

2009-06-30 Thread Matt Foster
This will work, but remember that the instance isn't going to actually fire an event, its just really acting as liaison to the document object to fire off events via document. You've somewhat namespaced the event with your reference ID which is going to make things difficult for anything attempti

[Proto-Scripty] Re: Drag and Drop problems

2009-06-30 Thread Alex McAuley
Seriously ? ... lol It needs everything to be in a "container" div with width and height set to the viewport but it works perfectly i wrote one for resizzables too to stop someone resizing something outside of a given container!. - Original Message - From: Rick Waldron To: p

[Proto-Scripty] Re: Drag and Drop problems

2009-06-30 Thread Mike
Thank you all for the fast responses. That really helps my project along :) On Jun 30, 9:10 am, Rick Waldron wrote: > Alex, > > Thats super rad. > > Rick > > On Tue, Jun 30, 2009 at 7:16 AM, Alex McAuley < > > > > webmas...@thecarmarketplace.com> wrote: > > > For the second question you have to

[Proto-Scripty] Re: Drag and Drop problems

2009-06-30 Thread Rick Waldron
Alex, Thats super rad. Rick On Tue, Jun 30, 2009 at 7:16 AM, Alex McAuley < webmas...@thecarmarketplace.com> wrote: > > For the second question you have to work out its positioning on the page > and > relative to its parent... enclosing is not easy but its also not difficult > ... > > Here is

[Proto-Scripty] Re: MySQL - order ID

2009-06-30 Thread Walter Lee Davis
Originals is a table in the database, it contains one of each type of thing you wish to be able to clone into the clones table. MyActiveRecord creates a PHP class for each table you "wrap" it around, and each row of the table becomes an object of that class when you request it through MAR.

[Proto-Scripty] Ajax.Updater - relative positioning - a footer - and IE7

2009-06-30 Thread mtm81
In IE7, the following page loads some content in two areas of the page using an AJAX.Updater call. All very simple. However, at the bottom of the page a footer with a negative margin to get it into position. On all the other "non ajax" pages of the site, this CSS layout works without issue, how

[Proto-Scripty] Re: Effect.Move position 'relative' problem in IE

2009-06-30 Thread david
Hi Mike, first you need to write unit in CSS: left:8 is not defined. btw, I think this is a funny bug. Whille positionning the element, IE find it's good position, as other browser. When using the Move effect, scriptaculous force the definition of the top/left CSS properties (even if in your effe

[Proto-Scripty] Re: Drag and Drop problems

2009-06-30 Thread Alex McAuley
For the second question you have to work out its positioning on the page and relative to its parent... enclosing is not easy but its also not difficult ... Here is some code i wrote to enclose draggable windows in my windowing system to make sure they dont go outsode the page... http://pastie

[Proto-Scripty] Re: How to call custom action in Ajax.Updater() ?

2009-06-30 Thread david
Hi Nataka, I did not see any Updater in your question :)) btw, have a look to the event API: http://prototypejs.org/api/event and OBSERVE the SELECT tag to get called when a change ocuurs. You juust need to verify that you update the select and not delete/define a new one. -- david On 30 juin,

[Proto-Scripty] Re: Drag and Drop problems

2009-06-30 Thread david
Hi Mike, for the first question, I think that you should style the inserted element or use a SPAN tagb instead of a DIV tag: the DIV expand its width by default to it's contener width, the SPAN just enclose inside content. for the second question, there is no siimple way, scriptaculous don't han

[Proto-Scripty] Re: IE bug with effect.move and left:50%

2009-06-30 Thread david
Hi Robert, Yes, modify positionning for IE by a pixel value instead of percent value, and it work as expected. have a look to document.viewport API : http://prototypejs.org/api/document/viewport -- david On 29 juin, 17:32, Robert Drake wrote: > I have a potential bug or possibly just a miscon

[Proto-Scripty] Re: What is function(transport) means ?

2009-06-30 Thread david
Hi Nakata, when you send an AJAX request, you want to return something from the server. This is what is TRANSPORT:It is the result of the request, it could be JSON, text/HTML, XML ... Have more detailled in http://prototypejs.org/api/ajax/request and the complete AJAX API: http://prototypejs.org

[Proto-Scripty] Re: What is function(transport) means ?

2009-06-30 Thread Richard Quadling
2009/6/30 Nakata Kokuyo > > Good day All, > > I normally found prototype sample like following :- > > [code] > onComplete: function(transport) { >console.log('done'); >console.log > (transport); >

[Proto-Scripty] How to call custom action in Ajax.Updater() ?

2009-06-30 Thread Nakata Kokuyo
Good day All, I would like to know how we can call the custom controller action in java or asp.net (i'm using salesforce environment in fact)? what i intend to do is to have one dropdown list , when the value get change, it will fire a custom action to return string and it able to give me update

[Proto-Scripty] What is function(transport) means ?

2009-06-30 Thread Nakata Kokuyo
Good day All, I normally found prototype sample like following :- [code] onComplete: function(transport) { console.log('done'); console.log (transport); } [

[Proto-Scripty] Drag and Drop problems

2009-06-30 Thread Mike
I am making a drag-and-drop editor thing using scriptaculous. However, when I dynamically add an element, it takes the size of the div it is being placed into. Then, when I drag it, I don't have access to any other elements that are already in the div. Here is the javascript functions I created: