[Rails-spinoffs] how to capture event of right mouse click

2006-08-01 Thread Grzesiek Slusarek
Hi all Recently I tested google spreadsheet and saw they are used rarely right click of the mouse button . I start to wonder is it possible to this with prototype and scriptaculos. Does any know how to achieve such effect like this? Now prototype support method that check is the left button of

[Rails-spinoffs] autocompleter and IE6 crash

2006-07-28 Thread Grzesiek Slusarek
Hi all. I overloaded autocompleter.local and write my own web user control, everything works fine on FF 1.5 and Opera 8/9 but when I start using it in IE6 after while I get message "there was a problem with Internet Expoloder ..." and exploder crash. Does anyone know what I'm doing wrong? i th

[Rails-spinoffs] how to write lazy loading droppable?

2006-07-11 Thread Grzesiek Slusarek
hi All. Does anyone wanted to write droppables with lazy loading? I mean on my site I'm doing iteration over the array and making droppable which is so uneffective, that I start to wonder how to write droppable with "lazy loadinh". It must be making droppable when draggable is over it and after

[Rails-spinoffs] after Ajax.Call

2006-05-23 Thread Grzesiek Slusarek
Hi all. I have situation that I sent AJAX.call and after getting answer i execute javascript code from that answer. The problem is that code has calls to variables from global namespace (library that I inlude in my header of my page -e.g. prototype, scriptaculo.us) and this made wrong, on FF i

[Rails-spinoffs] using Singleton with Prototype

2006-05-22 Thread Grzesiek Slusarek
Hello all. I'm writing my own object using prototype and I wonder how you write and call only one instance of class. Can anyone share his idea of singleton? thanks Gregor Gdy nadchodzi przełomowy moment w historii, musisz zdecydować, po czyj

[Rails-spinoffs] sending Form with fieldtype FILE by AJAX

2006-05-18 Thread Grzesiek Slusarek
Hi all. Is it possible to send a form with a FILE type field by ajax? I try to capture value of that field by $F and append it to param and send call by it look like it failed. Maybe some change on header on something? What do you think about that? really thanks for any help Gregor

[Rails-spinoffs] Ajax.Responders and onComplete

2006-05-16 Thread Grzesiek Slusarek
Hi all. I'm writing some kind of filter that i want passby my all AJAX request, and I stuck. I create object and pass him to Ajax Responders like this: var myGlobalHandlers = { onCreate: function(){ Element.show('loading'); }, onComplete: function(request) { alert

[Rails-spinoffs] Re: inPlaceEditor and onClick Event

2006-05-09 Thread Grzesiek Slusarek
Deco write: " The inPlaceEditor has an externalControl option if I remember. Set this to the id of the item that will trigger the editor. Deco " Ok i found in documentation but how to do this, when i have to use this in event procedure?? i have div that when i clicked on i want to trigger the

[Rails-spinoffs] inPlaceEditor and onClick Event

2006-05-08 Thread Grzesiek Slusarek
Hi all. I have specific situation that I want to made element to be edited in place (i mean I want to wrapped that element Ajax.InPlaceElenment) but i want that inplaceeditor be triggered not clicked in that element but in the other element. e.g. there are two divs and first I want to be inplac

[Rails-spinoffs] Draggable - how start action on start dragging and end action on droppping

2006-04-30 Thread Grzesiek Slusarek
Hi all. I have got situation that I made element draggable - and when element is dragged I want to start some action (e.g. shown AJAX indicator, and change one of CSS class in dragging element). What is the best way to achieve this? I search source code of the Draggable and I saw that there is

[Rails-spinoffs] asynchronous False and Ajax.Responders object (bug)

2006-04-25 Thread Grzesiek Slusarek
Hi all. In my apps I'm using Ajax Call synchronous, (both Ajax Request and Ajax Updater). There is bug in prototype (discused in mailing - list: here http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006-April/003488.html and here http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006

Re: [Rails-spinoffs] function onComplete how to overload?

2006-04-06 Thread Grzesiek Slusarek
Dnia 6-04-2006 o godz. 14:01 Nicolas Terray napisał(a): > On 4/6/06, Grzesiek Slusarek <[EMAIL PROTECTED]> wrote: > > Hi all. I my apps I need to use Ajax.Request Object. One of the object > options is onComplete fuction which looks like this: > > funcion onCo

[Rails-spinoffs] function onComplete how to overload?

2006-04-06 Thread Grzesiek Slusarek
Hi all. I my apps I need to use Ajax.Request Object. One of the object options is onComplete fuction which looks like this: funcion onComplete (originalResponse) { ..some operations } I need pass to function one more parameter, how to do it? is is possible? I can't use AJAX Updater because result

[Rails-spinoffs] Ajax.Responders- how to get responseText?

2006-03-07 Thread Grzesiek Slusarek
Hi All. In my site I have situation that I always want to execute some piece of code when AJAX call happen. I am using function onCreate and onComplete from tutorial:http://www.sergiopereira.com/articles/prototype.js.html but I don'k how to manipulate Ajax responseText in this function. Does anyo

[Rails-spinoffs] status = 200 something wrong???

2006-02-27 Thread Grzesiek Slusarek
Hello everyone. I have 2 methods on server: first is the redirect method that redirect http request on second method and returnig code 302 and that second method -> that returning data. I use AJAX to call first method, then Ajax request is redirect to second method and the second method return

[Rails-spinoffs] Ajax status

2006-02-21 Thread Grzesiek Slusarek
Hello All. I'm making ajax call to some url but to connect and get data from that url first I check session for user which using AJAX. If session is expired I redirect Ajax call to other url. That url return form to login. There is one problem - I check in function onResponse(OriginalRequest) O

Odp: RE: [Rails-spinoffs] Ajax reqest and http status

2006-02-21 Thread Grzesiek Slusarek
> //updateValues(); > }, > onFailure:_reportError > } > ) > } > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Grzesi

[Rails-spinoffs] Ajax reqest and http status

2006-02-21 Thread Grzesiek Slusarek
Hi all. I 'm using Ajax request on my site and i need to show some message wneh AJAX call is running, (sometimes it happen so slow). I find that object AJAX.RESPOND is very usefull here, but sometimes when i need to do AJAX CALL my ajax call is redirect and i want to when it happen, is there way

[Rails-spinoffs] # sign and Ajax Updater

2006-02-14 Thread Grzesiek Slusarek
Hi all. I'm using Ajax Updater to filling and update forms on my site. I notice that when I use "#" sign in field form the Ajax Call is wrong. I try to use javascript escape function on forms fields value but it doesn't change everything. The serwer shows like he only get a part of call, only to

[Rails-spinoffs] re: How to fire event listener after site update by Ajax Updater?

2006-02-01 Thread Grzesiek Slusarek
Hi Gregor. Well I read a lot about AjaxOptions and using EvalScripts:true and try do that in my apps but the result was that Firefox 1.5 just crush. I did the same in Opera 8.5 and Opera javascript console shows that there is a bug in prototype so actually for me there is no other way fire event

[Rails-spinoffs] BUG in PROTOTYPE when set evalScripts: true - Firefox crashes

2006-01-29 Thread Grzesiek Slusarek
Hi all. I'm using Ajax Updater with evalScripts set to true and there must be a bug in prototype because when I call function firefox crashes and exit. I can't even see Firefox javascript console. So I try it under Opera and Opera javascript Console show me this: http://localhost:8090/mysite/p

[Rails-spinoffs] How to fire event listener after site update by Ajax Updater?

2006-01-28 Thread Grzesiek Slusarek
Hi all. I have site that is updated by Ajax updater. After site is update i want to use some javascript code and I don't want use javascript onClick. I try to use some event listener but I don't know how to fire them. What is the event when some part of site is update by ajax? Thanks for any he

[Rails-spinoffs] inPlaceEditor -how to capture values just before it is edited

2006-01-19 Thread Grzesiek Slusarek
Hi All. I have problem i'm using inplaceEditor in my webb apps and i have situation like that: Iwanna send to serwer not only changed value by inplaceEditor but also the old value that i just change how to do it. I must do it because i just need to know what values i have to change in database.

[Rails-spinoffs] using InPlaceEditor - with divx

2006-01-18 Thread Grzesiek Slusarek
Hi all! i want to use InPlaceEditor in div container like that: the css style for container is like this: margin: 0px auto; height: 21px; width: 98%; border-bottom: 0px solid #337bcd; The problem is that that I have a row contains div and when i click on div's to

Odp: [Rails-spinoffs] draggable revert problem

2005-11-30 Thread Grzesiek Slusarek
>Hi maybe this is the answer..http://dev.rubyonrails.org/ticket/2987Best wishes..Grzegorz ŚlusarekDnia 30-11-2005 o godz. 2:14 Sunder napisał(a): I found that the revert works perfect, if I dont add an item to the cart. Andrzejki - wróżby tylko dl

[Rails-spinoffs] reverteffect - how to deal with this?

2005-11-22 Thread Grzesiek Slusarek
Hello everyone. Does anyone know how to deal with this? i try to change the idea of works revereffect:function but for know unsuccesfull. In my project i have to use dragable with revert: true but i don't want have revereffect. Maybe any idea? Grzegorz Ślusarek --

[Rails-spinoffs] droppable and pop-up effect from overlib library

2005-11-09 Thread Grzesiek Slusarek
Hi everyone. I hava situation that i have drag and drop on my site, and I wonder is it possible to connect this to very good pop-up javascript library, i mean: at the moment when I drag element over the dropping area that area is highlited (using hoverclass: Css_class) but i want to add pop-up e

[Rails-spinoffs] dropping element and pop-up from overlib

2005-11-09 Thread Grzesiek Slusarek
Hi everyone. I hava situation that i have drag and drop on my site, and I wonder is it possible to connect this to very good pop-up javascript library, i mean: at the moment when I drag element over the dropping area that area is highlited (using hoverclass: Css_class) but i want to add pop-up e

[Rails-spinoffs] Highlight of the droppable zone

2005-11-04 Thread Grzesiek Slusarek
Hello everyone. I have interesting problem I want to Highlight the droppable zone, the simplest solution is: give the droppable area a hover class. But there is a problem, in this case the droppable arrea is the png image and I don't want to cover image by hover class. The best way will be trans