[Rails-spinoffs] encode and umlauts - Form.serialize

2006-08-17 Thread Kjell Bublitz
Hi listI have a problem with a script of mine. I have a  simple textarea and i want to send the contents to a php file for saving it by using ajax.request. Now everything works fine, except if i enter umlauts. The script then fails and the browser refreshes itself (simple submit due to script failu

Re: [Rails-spinoffs] XML Question

2006-07-24 Thread Kjell Bublitz
I don't understand your question right, but in some ways this understanding seems to be correct. Have you just tried to request the xml document with the ajax class and had a look into responseXML ?Here is how i do it. (copied from my recent project): new Ajax.Request(tplpath + 'system/workdir/bloc

Re: [Rails-spinoffs] XML Question

2006-07-24 Thread Kjell Bublitz
humm.. as far as i know if your server delivers an XML file as text/xml or something similar then Ajax.request will fill responseXML which contains the xml-doctree. With that you can use the common DOM functions to wade through all the data and then fill your elements as you like. Hope this helps.2

[Rails-spinoffs] Autocompleter doubles requests

2006-07-15 Thread Kjell Bublitz
Hi allI have Firefox with Firebug running and i am using an Autocompleter. While tracing AJAX calls i saw that the Autocompleter always calls the URL two times at once.. Is this the correct behaviour because i dont see the point in calling the URL two times. PS: no i am not typing slow or something

Re: [Rails-spinoffs] $$ function not working .. why?

2006-07-15 Thread Kjell Bublitz
Doh! You are of course right.. I thought $$ would not need that "dot".. Thank you. On 7/15/06, Hans Gremmen < [EMAIL PROTECTED]> wrote:On 7/15/06, Kjell Bublitz < [EMAIL PROTECTED]> wrote:> Hi.. i am trying something very simple, but somehow...>>   var

[Rails-spinoffs] Re: $$ function not working .. why?

2006-07-15 Thread Kjell Bublitz
);    }    );Thanks for reading anyways.Best regards,Kjell On 7/15/06, Kjell Bublitz <[EMAIL PROTECTED]> wrote: Hi.. i am trying something very simple, but somehow...  var postContentClass = "postcontent"; // classname  $$(postContentClass).each( Element.toggle();    );

[Rails-spinoffs] $$ function not working .. why?

2006-07-15 Thread Kjell Bublitz
Hi.. i am trying something very simple, but somehow...  var postContentClass = "postcontent"; // classname  $$(postContentClass).each( Element.toggle();    );Now in my HTML i have 10 time but $$ does not find anything. why? I already put an alert() into the each() but the alert only occurs 1 t

[Rails-spinoffs] How to add ordinary draggables to sortables??

2006-07-04 Thread Kjell Bublitz
Hi all..I have some sortable lists and i have items that can be added to it .. sorta... however.. the items that can be added are draggables outside the sortable list, now i would like to make it possible that the collision detection works on these aswell.. i.e. If you move the draggable over a so

Re: [Rails-spinoffs] Can Ajax.Autocompleter be abused for this?

2006-07-01 Thread Kjell Bublitz
Thank you! That worked :)Here is my modified non-rails version (for the records):    new Ajax.Autocompleter(inputfield, resultfield, baseurl+'search.php', {   method:'get', frequency:0, updateElement: function(resultItem) {     window.location = resultItem.getElementsByTagNa

[Rails-spinoffs] Can Ajax.Autocompleter be abused for this?

2006-07-01 Thread Kjell Bublitz
Hi allFor a project i am playing around with the Ajax.Autocompleter. It has basicly the functionality i need but with the little difference that i would rather use it as LiveSearch with clickable links instead of auto-completing a inputfield. Any ideas how i can make it so that, if a user selects a

Re: [Rails-spinoffs] Looking for Javascript IDE

2006-06-29 Thread Kjell Bublitz
IntelliJ does have CVS, SVN and via plugin also FTP support.. there are numerous plugins availble who are able to do all kind of things.I haven't figured it all out but from my knowledge this IDE can do that. If i remeber correctly JEdit can do FTP stuff do but CVS.regards, kjellOn 6/29/06, Sam <[E

Re: [Rails-spinoffs] Looking for Javascript IDE

2006-06-28 Thread Kjell Bublitz
pse/Overview/>> free for personal use but is quite cheap for commercial use. >> On 25/06/06, Dark Ambient <[EMAIL PROTECTED]> wrote:> > I think JEdit and Eclipse are the best options available but I'm> > brand> > > new to JS so probably not the best per

Re: [Rails-spinoffs] Few questions

2006-06-25 Thread Kjell Bublitz
the field1 element will not move if I set the draggable tothe actual element id,in order for me to make it work, I had to wrap a label around the element and am using the label id to get it to move.In case anyone wants to see the page:http://icanc.com/dnd/demo.phpStuartOn 6/25/06, Kjell Bublitz <

Re: [Rails-spinoffs] Few questions

2006-06-25 Thread Kjell Bublitz
Good morningOn 6/25/06, Dark Ambient <[EMAIL PROTECTED]> wrote: Thank you for the reply Kjell.I've added some stuff inline:On 6/24/06, Kjell Bublitz <[EMAIL PROTECTED]> wrote:> Hello> > 1- I need to have the elements in the palette snap to a "grid"inside > &g

Re: [Rails-spinoffs] Few questions

2006-06-24 Thread Kjell Bublitz
HelloYou can do all that very easy with prototype and script.aculo.us. I have answered one by one within quote.On 6/25/06, Dark Ambient <[EMAIL PROTECTED]> wrote: I apologize if these questions are not relevant to Scriptaculous. Ijust want to get a general idea if I can acomplish some or all ofthe

[Rails-spinoffs] Sortable with sortables? this.destroy not a function O_o

2006-06-24 Thread Kjell Bublitz
Hi allI am creating sortable list with the builder. Now i want these sortables to be a sortable aswell. So i wrap a div around them and run sortable create on the main-container. I have it like so (simplified): var myLists = new Array(); // start a empty array for pushvar mainDiv = 'main'; // some

[Rails-spinoffs] Looking for Javascript IDE

2006-06-24 Thread Kjell Bublitz
Hi everyone!I am looking for a good _javascript_ IDE. Complete code-completion, should understand object oriented models and anonymous functions. Any suggestions?PS: Im on windows. ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http:

Re: [Rails-spinoffs] Multiple Ajax.Request or Ajax.Updater

2006-06-20 Thread Kjell Bublitz
oh well...On 6/20/06, Jason Hummel <[EMAIL PROTECTED]> wrote: Ack. Sorry, I figured it out. My environment was set in a developmentmode that limits requests. *bonks self* Sorry for wasting peoplestime.On 6/20/06, Jason Hummel <[EMAIL PROTECTED] > wrote:> I tried using 'get' as well, and it doesn't

Re: [Rails-spinoffs] Multiple Ajax.Request or Ajax.Updater

2006-06-20 Thread Kjell Bublitz
i am not sure, but aren't you missing the option "asynchronous: true" here?how about this?var myFiles = new Array(    "/foo1.html'',    "/foo2.html" );// create some container getElementsByTagName('body')[0].appendChild(Builder.node('div',{id:'ajaxTest'}));// go thru our arrayfor(var fileNum = 0; f

Re: [Rails-spinoffs] Why such bad performance with IE ?

2006-06-16 Thread Kjell Bublitz
work with 25 droppable dialogs, etc... I'm not saying the above is impossible, but it's not straight forwardly easy, that's for sure. There are definite limitations to dragdrop.js. On 6/16/06, Kjell Bublitz <[EMAIL PROTECTED]> wrote: I just found out that OnChange on a Sortable i

Re: [Rails-spinoffs] Drag and Drop work in IE?

2006-06-16 Thread Kjell Bublitz
   Ajax.Updater('notice', '/admin/order', {asynchronous:true, <br>> evalScripts:true, onComplete:function(request){new<br>> Effect.Highlight("list[4]",{});},<br>> parameters:Sortable.serialize("list[4]")})}, tag:'

Re: [Rails-spinoffs] Drag and Drop work in IE?

2006-06-16 Thread Kjell Bublitz
Probably because you use bad-html. The way you define your div id is not valid and thus will lead to browser problems.ID and NAME must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").try i

Re: [Rails-spinoffs] Drag and Drop work in IE?

2006-06-16 Thread Kjell Bublitz
Hi Pedro.Did you set the "revert" option to "true"?Sounds like revert is not active. -- KjellOn 6/16/06, Pedro Valentini <[EMAIL PROTECTED]> wrote: Please,I'm build an drag and drop tree using scriptaculous and it is perfect inFF but when I test in IE don't work, I drag the element and when I free

Re: [Rails-spinoffs] Why such bad performance with IE ?

2006-06-16 Thread Kjell Bublitz
I just found out that OnChange on a Sortable is firing constantly on each mouse move. This is mostly noticable if the currently dragged object is moved over its start position. I commented out everything related to it but still calling and calling.. I think i will see what i can strip out and hopef

Re: [Rails-spinoffs] can someone please show me how to feed a drop down ....

2006-06-16 Thread Kjell Bublitz
Yes, i think i know now.. Download the script.aculo.us package (thats one of the maintopics in this list). Within are various _javascript_ files. For what you are will only need the " prototype.js" and the "builder.js" in your Head-Tag.

Re: [Rails-spinoffs] can someone please show me how to feed a drop down ....

2006-06-16 Thread Kjell Bublitz
Erm.. i am not sure if i really understood what you are trying to do. It sounds that you can't edit the template you are refer to so.. you should have a look on the script.aculo.us Builder functions. With them you can create your dropdown with _javascript_ and "attach" it anywhere in the DOM of y

Re: [Rails-spinoffs] Why such bad performance with IE ?

2006-06-16 Thread Kjell Bublitz
techniques will improve overall performance on ALL browsers, though IE may be the most noticeable. I had to engineer this approach in an app which generated an arbitrary number of draggables/droppables (based on number of DB records returns in a DataGrid) -- without it, the dragdrop code is

Re: [Rails-spinoffs] Why such bad performance with IE ?

2006-06-15 Thread Kjell Bublitz
d on number of DB records returns in a DataGrid) -- without it, the dragdrop code is quite inefficient. On 6/15/06, Kjell Bublitz < [EMAIL PROTECTED]> wrote: Regarding DragDropI am wondering what the deal about Internet Explorer 6 is. My application is near to final and now while testing br

[Rails-spinoffs] Why such bad performance with IE ?

2006-06-15 Thread Kjell Bublitz
Regarding DragDropI am wondering what the deal about Internet Explorer 6 is. My application is near to final and now while testing browsers all but the IE6 are running as supposed to. Any other browser is performing smooth movement while IE compared provides a very bad expirience. I've seen some "t

Re: [Rails-spinoffs] Weird flicker effect in IE6 (sortables)

2006-06-13 Thread Kjell Bublitz
On 6/13/06, Kjell Bublitz <[EMAIL PROTECTED]> wrote: On 6/13/06, Leon Chevalier <[EMAIL PROTECTED]> wrote: It looks to me like the two drop-down menus you have in your Flickr blockare causing the flickering in IE. I would suggest hiding any SELECT elementswith the starteffect fu

Re: [Rails-spinoffs] Weird flicker effect in IE6 (sortables)

2006-06-13 Thread Kjell Bublitz
On 6/13/06, Leon Chevalier <[EMAIL PROTECTED]> wrote: It looks to me like the two drop-down menus you have in your Flickr blockare causing the flickering in IE. I would suggest hiding any SELECT elementswith the starteffect function, then making them visible again with the endeffect.Thanks for this

[Rails-spinoffs] Weird flicker effect in IE6 (sortables)

2006-06-13 Thread Kjell Bublitz
Hello everyoneI have made some strange expirience yesterday. I have an unordered list with sortable list items (basic). Within these are various contents (forms, divs, more lists) etc.. Now on only some of them the whole page (all text) begins to flicker / redrawn in Internet Explorer 6 if i pick u