[Proto-Scripty] submiting form created by Ajax.inPlaceEditor

2008-09-17 Thread Tokeiito
Is there a way to triger submit by using object i get after: var editor = new Ajax.InPlaceEditor(...); ? Why i'm asking, i need to edit three elements in one time. So when user clicks on External Control button (all lements are set to the same button), i get three froms opened and now i need to s

[Proto-Scripty] Re: Possible bug in Sortable.create?

2008-09-17 Thread Condor
Hi Diodeus, Thanks for your reply. You're absolutely right, I had missed including the wrapping table elements in the snippet. I was able to find the problem however and it had to do with an error in the table elements themselves and had nothing to do with Sortable functionality. Sorry f

[Proto-Scripty] Event.stop(event) and IE7

2008-09-17 Thread kukipei
Hi to all, I want to stop propagation of alt keyup event. This is a part of the code: Event.observe(document, 'keyup', function(event) { Event.stop(event); if (event.keyCode == 18)//alt key { if($('temp_1_2').disabled == false) {

[Proto-Scripty] Ajax.PeriodicalUpdater in IE

2008-09-17 Thread voracious_reader
Hi, I'm having issues on IE. Mozilla seems to be fine. I have used it in a JSP. I am clearing cache in the JSP. I just want to display the same JSP. I don't know what's wrong. Can somebody help me? Thanks, Here is the function - new Ajax.PeriodicalUpdater('top', '/mypackage/list.jsp', {method:'

[Proto-Scripty] MemoryLeak vs Ajax.Autocomplete

2008-09-17 Thread Jean-Philippe Encausse
Hi, I have a little neebie "design" question (more than an issue) using this code: new Ajax.Autocompleter(elm,div, url, { ... }); - I do not have reference to created instance and there is no "destructor" on autocomplete. - I give a DOM element to the constructor that is referenced by autoco

[Proto-Scripty] Re: Apply an effect to every element _except_ one

2008-09-17 Thread Matt
On Sep 16, 5:29 pm, Diodeus <[EMAIL PROTECTED]> wrote: > One way would be to grab the nodes, use a loop, and skip over the > element that has the special class. > > Something like this: > > > X > X > don't hide me > X > > hide most > > function hideExcept(notMe)

[Proto-Scripty] Re: How to handle different forms

2008-09-17 Thread luftikus143
> You may need to add a tag (using new Element) then put the > contents of your form inside it. Alternately, you can have the > tag as part of your HTML to begin with. Thanks a lot! How does this "new Element" thing work? Do you have by chance a quick example? Thanks anyway, I'll see what I ca

[Proto-Scripty] Event listeners in Ajax.InPlaceEditor

2008-09-17 Thread Tokeiito
Hello, is there a way to disable keyboard listeners in Ajax.InPlaceEditor? at the moment the only way i found is edit scriptaculous controls.js and add new option: DisableListeners({listeners to disable here}); Respecfully, Darius Tumas (a.k. Tokeiito) mob.: +370 631 13666 www.tokeiito.eu --~-

[Proto-Scripty] Re: draggable item inside container w overflow:hidden , zindex issue ...

2008-09-17 Thread david
Hi prima, just one remark when using z-index: be sure to have the CSS property "position" set to absolute otherwhise the z-index does not work. -- david On 15 sep, 15:06, prima <[EMAIL PROTECTED]> wrote: > Hey, > > Even i am facing the same problem. > I tried to play with the zindex propert but

[Proto-Scripty] Re: Ajax.PeriodicalUpdater in IE

2008-09-17 Thread bluezehn
Hi, This is really difficult to help you with from the details you've given. Firstly not specifying the version of IE makes it very difficult to help at all. All I can do is suggest adding callbacks to the PeriodicalUpdater, such as an onComplete, just to alert hello world everytime a request fin

[Proto-Scripty] Re: IE6 odd behaviour while loading ajax

2008-09-17 Thread david
Hi Nelson, you could try the onComplete event for the ajax request, perhaps it handle more case than just onSuccess ? -- david On 17 sep, 03:07, "Diogo Neves" <[EMAIL PROTECTED]> wrote: > On Tue, Sep 16, 2008 at 10:26 AM, Nelson Lim <[EMAIL PROTECTED]> wrote: > > > Hi guys, > > > I'm new to pro

[Proto-Scripty] Re: Event.stop(event) and IE7

2008-09-17 Thread bluezehn
Does it stop propagation of other keys? If so I doubt there's much you can do about this. Maybe IE instantly fires two events - one on the specific element which bubbles up and another straight to IE itself. I'd say it would be confusing to users to alter the action of the alt key anyway. If I use

[Proto-Scripty] Re: Event listeners in Ajax.InPlaceEditor

2008-09-17 Thread bluezehn
What do you mean by keyboard listeners? Do you mean observers to the onkeyup action? Why would you want to do this? As a side note it's much better to extend the inPlaceEditor than edit the source code. You can extend classes like this (if you didn't know already!): Ajax.MyInPlaceEditor = Class

[Proto-Scripty] Re: MemoryLeak vs Ajax.Autocomplete

2008-09-17 Thread bluezehn
My understanding on this memory leak issue is as follows: IE deletes items from its memory when it has no references from anything else left If you have a class instance such as an autocompleter which has a reference to a dom element, and that dom element references back to the autocompleter, yo

[Proto-Scripty] Re: IE6 odd behaviour while loading ajax

2008-09-17 Thread bluezehn
I find onSuccess and actually onLoading to be quite unreliable. I stick exclusively to onCreate and onComplete (in which you can switch on the response.status - anything starting with 2 is good). I can guarantee you won't have any problems with this approach, and I know other people have reported

[Proto-Scripty] Re: Event listeners in Ajax.InPlaceEditor

2008-09-17 Thread Tokeiito
I need that cause with one External Control button, user opens three edit boxes and if user hits enter or esc submits/cancels only that fields where user worked at the moment. Will try to extend that class. Thank you. Respectfully, Darius Tumas (a.k. Tokeiito) mob.: +370 631 13666 www.tokeiito.

[Proto-Scripty] how can we make XHR (AJAX ) calls to other domain ?

2008-09-17 Thread Rama
ok understood. then how can we make AJAX (XHR) calls to other domain ? Is it actually possible? Regards rama On Sep 17, 4:49 am, "Diogo Neves" <[EMAIL PROTECTED]> wrote: > Hi, > > > > On Wed, Sep 17, 2008 at 12:38 AM, Rama <[EMAIL PROTECTED]> wrote: > > > iam not violating the same orig

[Proto-Scripty] Re: Event.stop(event) and IE7

2008-09-17 Thread kukipei
In IE7 with Event.stop(event); I can not stop propagation for any key. It is look like It doesn't work for keyup event --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to t

[Proto-Scripty] Re: how can we make XHR (AJAX ) calls to other domain ?

2008-09-17 Thread bluezehn
A suggestion: make them to your domain, then have a server side script on the same domain which uses something akin to php's curllib to make a request to another server and return that server's response. I don't know any other way in which this is possible. On Sep 17, 1:07 pm, Rama <[EMAIL PROTEC

[Proto-Scripty] Re: how can we make XHR (AJAX ) calls to other domain ?

2008-09-17 Thread Rama
ok. The above solution works when javascript is on my domain. ((in javascript) instead of cross domain i will interact with my server , the server will fetch that page) But what to do when iam placing the javascript from mydomain.com in another domain say xyz.com where the javascript loaded from

[Proto-Scripty] Re: Apply an effect to every element _except_ one

2008-09-17 Thread Diodeus
As usual, I should have added "but Kangax probably does this in one line of code". :) On Sep 17, 5:32 am, Matt <[EMAIL PROTECTED]> wrote: > On Sep 16, 5:29 pm, Diodeus <[EMAIL PROTECTED]> wrote: > > > > > One way would be to grab the nodes, use a loop, and skip over the > > element that has the s

[Proto-Scripty] Re: How to handle different forms

2008-09-17 Thread Diodeus
To insert something into the DOM use this. You can add other attributes as well. Read the Prototype docs. $("someDiv").insert(new Element("form", { id: 'moo' })) On Sep 17, 6:53 am, luftikus143 <[EMAIL PROTECTED]> wrote: > > You may need to add a tag (using new Element) then put the > > conte

[Proto-Scripty] Re: Apply an effect to every element _except_ one

2008-09-17 Thread Richard Quadling
2008/9/17 Diodeus <[EMAIL PROTECTED]> > > As usual, I should have added "but Kangax probably does this in one > line of code". :) > > On Sep 17, 5:32 am, Matt <[EMAIL PROTECTED]> wrote: > > On Sep 16, 5:29 pm, Diodeus <[EMAIL PROTECTED]> wrote: > > > > > > > > > One way would be to grab the nodes,

[Proto-Scripty] Re: how can we make XHR (AJAX ) calls to other domain ?

2008-09-17 Thread Ryan Gahl
To repeat previous answers, you cannot make XHR calls cross domain from the browser (you seem not to be understanding that point). Having said that, there are two ways to solve your problem though... One, distribute your widget as an iframe that points to a page on your domain instead of as scrip

[Proto-Scripty] Re: submiting form created by Ajax.inPlaceEditor

2008-09-17 Thread Justin Perkins
On Tue, Sep 16, 2008 at 2:21 PM, Tokeiito <[EMAIL PROTECTED]> wrote: > > Is there a way to triger submit by using object i get after: var > editor = new Ajax.InPlaceEditor(...); ? You might try calling editor.handleFormSubmission(), although that method expects an event argument it appears to be

[Proto-Scripty] multipart/form-data and prototype

2008-09-17 Thread BrentNicholas
I've read that Prototype can not seralize files that have been selected for upload in the form. Found this out the hard way "Hrmm. Every thing else loaded... where's my file?" Is this still the case? I've read that most people do an iFrame solution. Anyone have other ideas? Thanks for your

[Proto-Scripty] Re: multipart/form-data and prototype

2008-09-17 Thread Matt Foster
Greetings Brent, Its not that Prototype has somehow neglected this aspect, but simply the fact that an input type='file' cannot be transferred as you have expected. Its value is a path, not the source of the file itself. There are very strict rules on this input type for security reasons.

[Proto-Scripty] Re: how can we make XHR (AJAX ) calls to other domain ?

2008-09-17 Thread Matt Foster
I'd recommend building it as a Google Gadget, by leveraging their platform you could bypass a lot of the common development troubles. Also you'll have a better adoption rate as more people already use Google Gadgets, not to mention the fact that by submitting it to the gadget directory it will be

[Proto-Scripty] Disable form submission

2008-09-17 Thread Tokeiito
Hello, I cant find any where, how to disable Ajax.InPlaceEditor(); created form submission when user hits Enter key. Respectfull, Darius Tumas (a.k. Tokeiito) mob.: +370 631 13666 www.tokeiito.eu --~--~-~--~~~---~--~~ You received this message because you ar

[Proto-Scripty] Re: Disable form submission

2008-09-17 Thread bluezehn
There's a method on forms you want: form#disable() or form#enable(). Then it's just a case of finding the element. You could do this through $$ or select() or have a look at the inplaceeditor source code. As I remember, the form element is stored as something like _form on each instance of the cla

[Proto-Scripty] Re: AJAX autocompleter

2008-09-17 Thread Jack D
Hi, Does any one has any update regarding the IE issue of memory leak for autocompleter? The IE size goes on increasing for autocompleter & never comes down Thanks! On Mon, Sep 15, 2008 at 5:46 PM, Jack D <[EMAIL PROTECTED]> wrote: > Hi bluezehn, > Thanks for the reply! > > Re

[Proto-Scripty] Re: multipart/form-data and prototype

2008-09-17 Thread BrentNicholas
Matt, Thanks for the reply. Yeah, I found that js can't get at the file system and did a little looking around. I found this AJAX IFRAME METHOD (AIM) at: http://www.webtoolkit.info/ajax-file-upload.html At first glance it seems like a resonable solution, however now I have to figure out how to

[Proto-Scripty] Re: AJAX autocompleter

2008-09-17 Thread bluezehn
I couldn't find the same issue. Are you sure it's not some of your code or a callback you've written or something that's causing this? Maybe post your code so someone can take a look at it. On Sep 17, 8:31 pm, "Jack D" <[EMAIL PROTECTED]> wrote: > Hi, >    Does any one has any update regarding th

[Proto-Scripty] Re: Disable form submission

2008-09-17 Thread Tokeiito
this method form#disable()/enable() disables all form thats not what i'm searching. I'm searching how to disable submission on Enter key. User still can edit text in field, he still can submit form by clicking button, but he can't submit it with Key Enter. Everything is simple if its regular form.

[Proto-Scripty] Re: Disable form submission

2008-09-17 Thread bluezehn
Just use element#disable() on the submit element. Use the API for this - it's prominently in there. On Sep 17, 9:21 pm, Tokeiito <[EMAIL PROTECTED]> wrote: > this method form#disable()/enable() disables all form thats not what i'm > searching. > > I'm searching how to disable submission on Enter

[Proto-Scripty] Re: Disable form submission

2008-09-17 Thread Douglas
On Wed, Sep 17, 2008 at 5:21 PM, Tokeiito <[EMAIL PROTECTED]> wrote: > this method form#disable()/enable() disables all form thats not what i'm > searching. > > I'm searching how to disable submission on Enter key. User still can edit > text in field, he still can submit form by clicking button, b

[Proto-Scripty] Re: Disable form submission

2008-09-17 Thread Justin Perkins
To add to the list of ideas, I would recommend you override the Ajax.InPlaceEditor#checkForEscapeOrReturn method to do what you want since that's where this submit event is getting fired from. Ajax.InPlaceEditor.addMethods({ checkForEscapeOrReturn: function(e) { if (!this._editing || e.ctrl

[Proto-Scripty] JSON for Novice

2008-09-17 Thread Bobby.D
I've fiddled with Prototype/Script.aculo.us and want to start using JSON when interacting with my PHP Code. So far I'm good, I've got some data being passed to my PHP, it gets process and then encoded to JSON. Now, I need to figure out how to use that data in my onSuccess functionCan anyone he

[Proto-Scripty] Drag / Drop with TinyMCE

2008-09-17 Thread dante2010
Hi, I am using TinyMCE as my editor and I have it attached to a textarea within a element that has been set as sortable using scriptaculous. My problem is that when this containing TinyMCE is dragged and dropped it seemingly disables TinyMCE totally. I can still see the editor, but I can't cl

[Proto-Scripty] toHTML() doesn't work

2008-09-17 Thread yawnmoth
http://www.frostjedi.com/terra/scripts/demo/prototype01.html Shouldn't that give you a popup with some HTML code inside it? What happens, instead, when I run it is that I get an error - "last.toHTML is not a function". Any ideas? --~--~-~--~~~---~--~~ You recei

[Proto-Scripty] Drag and Drop with overflow auto

2008-09-17 Thread Anulith
Hello all, I am trying to create a web app that will let you drag items from a left pane to a right pane. These panes must have overflow: auto on because there will definitely be more data in them than can fit in the provided space. The problem is that when overflow is set to auto, the div expan

[Proto-Scripty] Droppables containment limitation?

2008-09-17 Thread Grego
I am playing with draggables and droppables and it appears that the containment option on Droppables has a limitation (or feature) - namely, that you need to supply the id of the direct parent of the draggables. If you supply an id of say, the parent of the parent, then the draggable 'grandchild'

[Proto-Scripty] Re: AJAX autocompleter

2008-09-17 Thread Jack D
Hi bluezehn, Here is the code: new Ajax.Autocompleter("modelName", "companyHint", "abc.php", {paramName: "modelName", minChars: 2, indicator: 'inprogress', callback: null, afterUpdateElement: getSelectedId}); function getSelectedId(text, li) { $('company_id').value = li.id; $('company_na

[Proto-Scripty] Re: toHTML() doesn't work

2008-09-17 Thread Ken Snyder
yawnmoth wrote: > http://www.frostjedi.com/terra/scripts/demo/prototype01.html > > Shouldn't that give you a popup with some HTML code inside it? What > happens, instead, when I run it is that I get an error - "last.toHTML > is not a function". > > Any ideas? AFAIK Prototype does not have an Elem

[Proto-Scripty] Re: toHTML() doesn't work

2008-09-17 Thread yawnmoth
On Sep 17, 5:55 pm, Ken Snyder <[EMAIL PROTECTED]> wrote: > yawnmoth wrote: > >http://www.frostjedi.com/terra/scripts/demo/prototype01.html > > > Shouldn't that give you a popup with some HTML code inside it?  What > > happens, instead, when I run it is that I get an error - "last.toHTML > > is

[Proto-Scripty] Re: mouseout .. of browser window

2008-09-17 Thread Maulkye
Hmm, thanks for the help kangax. I completely forgot about relatedTarget. I was able to use that to get this to do what I wanted. One note though, the first part of the if statement will cause the logic to fail if the user leaves in internal div or other area really fast. However, simply check

[Proto-Scripty] Re: toHTML() doesn't work

2008-09-17 Thread Justin Perkins
On Wed, Sep 17, 2008 at 8:00 PM, yawnmoth <[EMAIL PROTECTED]> wrote: > It's Object#toHTML: > > http://www.prototypejs.org/api/object/tohtml Yes, like Object.toHTML(someObject), not someObject.toHTML(). --~--~-~--~~~---~--~~ You received this message because you ar

[Proto-Scripty] Re: How to handle different forms

2008-09-17 Thread luftikus143
Thanks. I know have something like this: function variables() { var url = '/xxx/etc/php/fill_variable_list.php'; var target = 'output-div'; var pars = 'selectedKeyword=".str_replace(" ", "+", $selectedKeyword)."&selected_ids="[EMAI