[Proto-Scripty] Re: Odd behaviour with chained calls.

2009-02-17 Thread Richard Quadling
2009/2/16 kangax kan...@gmail.com: On Feb 16, 11:10 am, Richard Quadling rquadl...@googlemail.com wrote: Hi. I want to set an error message for 20 seconds ... $('sessionError').update(o_E.responseText).show().hide.delay(20); The message is displayed correctly. But not hidden again

[Proto-Scripty] Ajax.Autocompleter

2009-02-17 Thread Craig
Am having one problem i cannot seem to solve. The autocompleter box displays the results which has a set height so a scroll bar displays. In FF but not other browsers when you scroll through the results it works fine but in any other browser it will just lose focus and disappear. Anyone come

[Proto-Scripty] Re: weird grey submits error

2009-02-17 Thread fREW Schmidt
Hello Javascript friends! I am working on a fairly simple javascript issue and I can't seem to figure out what is going wrong. I have tried two setups, both of which don't work. The simpler is this: In our html we have a form and in the form tag we add an onsubmit=greySubmits()

[Proto-Scripty] weird grey submits error

2009-02-17 Thread fREW Schmidt
Hello Javascript friends! I am working on a fairly simple javascript issue and I can't seem to figure out what is going wrong. I have tried two setups, both of which don't work. The simpler is this: In our html we have a form and in the form tag we add an onsubmit=greySubmits() attribute.

[Proto-Scripty] Multiple droppables in overflowed div!

2009-02-17 Thread javamaasai
Hey All, I'm creating a small online traditional Shop, where tourists can buy African traditional goods. These include things like beads, Warrior spears clothing e.t.c My web application has pictures of african items draggables in an overflowed div and droppables pictures of visit locations

[Proto-Scripty] Re: Odd behaviour with chained calls.

2009-02-17 Thread Daniel Rubin
Richard Quadling wrote: Hi. I want to set an error message for 20 seconds ... $('sessionError').update(o_E.responseText).show().hide.delay(20); The message is displayed correctly. But not hidden again after 20 seconds or so. It's because you lose the scope of the $('sessionError')

[Proto-Scripty] Using the same onclick with SlideUp and SlideDown

2009-02-17 Thread craig
I'm using the SlideUp/SlideDown effects, and I'd like to use the same button for both effects. Context from the demo wiki: img src=/images/uparrow.png onclick=Effect.SlideUp('%=slidedown %'); return false; img src=/images/downarrow.png onclick=Effect.SlideDown(' %=slidedown%'); return false; I

[Proto-Scripty] Prototype changes between 1.6.0 and 1.6.0.3

2009-02-17 Thread claus.k...@googlemail.com
Hello everyone, probably a newbie question, but here we go: We have been using prototype for some time now, now we want to use a few script.aculo.us features which means updating prototype.js to 1.6.0.3. Which itself means someone - me - has to check for possible compatibility issues between

[Proto-Scripty] Re: Odd behaviour with chained calls.

2009-02-17 Thread Richard Quadling
2009/2/16 Daniel Rubin dru...@dimedis.de: Richard Quadling wrote: Hi. I want to set an error message for 20 seconds ... $('sessionError').update(o_E.responseText).show().hide.delay(20); The message is displayed correctly. But not hidden again after 20 seconds or so. It's because you

[Proto-Scripty] Calling function passed as parameter

2009-02-17 Thread marioosh
I have a problem with calling function passed as parameter in class definition. I get error when i call fun(). How can i correct this ? var Slider = Class.create({ initialize: function (elContainer) { this.elContainer = elContainer;

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread david
Hi craig, not seems trivial, could we have an example? -- david On 17 fév, 11:03, Craig cr...@europe.com wrote: Am having one problem i cannot seem to solve. The autocompleter box displays the results which has a set height so a scroll bar displays. In FF but not other browsers when you

[Proto-Scripty] Re: Calling function passed as parameter

2009-02-17 Thread T.J. Crowder
Hi, What's the error? -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Feb 17, 10:53 am, marioosh marioosh@gmail.com wrote: I have a problem with calling function passed as parameter in class definition. I get error when i call

[Proto-Scripty] Re: Multiple droppables in overflowed div!

2009-02-17 Thread david
Hi javamaasai, try this portion of code to create droppable (instead of the FOR loop): $R(1,4).each(function(i){ Droppables.add('droppable_demo'+i, { accept: 'draggable', hoverclass: 'hover', onDrop: function(){ alert(i);

[Proto-Scripty] Re: TypeError: Value undefined (result of expression Element.insert) is not object.

2009-02-17 Thread david
Hi Robert, That's another problem, if prototype is loaded dynamically, it's a kind of lazyloading you need. just look at some code that aleready exist: == http://ajaxian.com/archives/a-technique-for-lazy-script-loading == http://www.bram.us/projects/js_bramus/lazierload/ Both use prototype, but

[Proto-Scripty] Re: Prototype changes between 1.6.0 and 1.6.0.3

2009-02-17 Thread david
Hi Claus, just go at : http://www.prototypejs.org/2008/9/30/prototype-1-6-0-3-one-more-bugfix-release-before-1-6-1#comment-22052 the changelog is inside comments ! -- david On 17 fév, 11:44, claus.k...@googlemail.com claus.k...@googlemail.com wrote: Hello everyone, probably a newbie

[Proto-Scripty] Re: Calling function passed as parameter

2009-02-17 Thread david
Hi marioosh, I did a test, and there is no error !! just at : --- ! ERROR !! -- david On 17 fév, 12:14, T.J. Crowder t...@crowdersoftware.com wrote: Hi, What's the error? -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services

[Proto-Scripty] Re: Using the same onclick with SlideUp and SlideDown

2009-02-17 Thread david
Sorry craig, So let's resume: You want when an element was slided down, on a button click to slide it up, and when it's slided up, on the same button click to slide it down !! Am I right ?? If that what you want, to do that, just use the conveniant Effect.Toggle, where documentation is at:

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread david
Hi craig, perhaps stupid remarks, but in FF the scrollbar is contained inb the element, not in IE. Couldn't it be something like that ?? Can you send the code for the autocompleter ?? (just it, with callbacks definition ?? -- david On 17 fév, 12:48, Craig cr...@europe.com wrote: Sorry cant

[Proto-Scripty] Re: Calling function passed as parameter

2009-02-17 Thread marioosh
On 17 Lut, 12:14, T.J. Crowder t...@crowdersoftware.com wrote: Hi, What's the error? -- Error: Cannot convert undefined or null to Object Slider class is a base class and doit() method is redefined in subclasses. I see that calling fun() works, but i get error in redefined method doit().

[Proto-Scripty] Re: Using the same onclick with SlideUp and SlideDown

2009-02-17 Thread Alex Mcauley
Craig.. Why not try removing the onclick and adding it to an observer img id=foo / Event.observe(window,'load', function() { $('foo').observe('click',function() { /* please change foloowing for a tenary oprator if needs be !! */ if($(this).style.display!='none') {

[Proto-Scripty] Re: Calling function passed as parameter

2009-02-17 Thread david
Hi craig, I've tested the following code, and it works in FF3 !! !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http:// www.w3.org/TR/xhtml1/DTD/... html xmlns=http://www.w3.org/1999/xhtml; head script src=prototype.js type=text/javascript/script script

[Proto-Scripty] Re: Using the same onclick with SlideUp and SlideDown

2009-02-17 Thread david
Hi craig, Go and see the url of Effect.toggle: http://wiki.github.com/madrobby/scriptaculous/effect-toggle -- david On 17 fév, 13:25, Alex Mcauley webmas...@thecarmarketplace.com wrote: Craig.. Why not try removing the onclick and adding it to an observer img id=foo /

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread Craig
Firefox probabaly ignores clicks on the scroll bar and thus does not lose focus. Here is the main part of the code var auto_cust; var auto_bran; var auto_call; new Event.observe(window, 'load', pageload); function pageload() { auto_cust = new Ajax.Autocompleter('customer', 'customer_auto',

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread Craig
Oh and the border goes around the div and the scroll bar on IE so doubtful that its that. On 17 Feb, 13:08, Craig cr...@europe.com wrote: Firefox probabaly ignores clicks on the scroll bar and thus does not lose focus. Here is the main part of the code var auto_cust; var auto_bran; var

[Proto-Scripty] Re: Prototype changes between 1.6.0 and 1.6.0.3

2009-02-17 Thread claus.k...@googlemail.com
On 17 Feb., 12:28, david david.brill...@gmail.com wrote: Hi Claus, just go at :http://www.prototypejs.org/2008/9/30/prototype-1-6-0-3-one-more-bugfi... the changelog is inside comments ! Hello David, thanks, that is exactly what I was looking for!

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread Craig
Have fixed this now by changing the event observer from the element to the update element line 90 controls.js Event.observe(this.update, 'blur', this.onBlur.bindAsEventListener (this)); On 17 Feb, 13:08, Craig cr...@europe.com wrote: Firefox probabaly ignores clicks on the scroll bar and

[Proto-Scripty] Re: new Elemente in ie6 didn't work

2009-02-17 Thread Eric
Hi T.J. On Jan 19, 12:31 pm, T.J. Crowder t...@crowdersoftware.com wrote: On my machine, the DOM version takes at least 10 times longer than the HTML version. Did you use prototype DOM (x=new Element('P',{...});...) or plain old vanilla DOM (x=document.createElement('P');...) ? I was

[Proto-Scripty] Re: Calling function passed as parameter

2009-02-17 Thread T.J. Crowder
Hi, I'll bet this is the problem line: this.minimize(this.doit); You're assuming that 'this' is somehow bound to 'doit' when you pass the reference. It isn't. When you later call fun(), 'this' is not set to what you think it is within the call. JavaScript functions are functions, not

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread Craig
?xml version=1.0 encoding=utf-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en-UK lang=en- UK head profile=http://www.w3.org/2000/08/w3c-synd/#; meta http-equiv=Content-Type

[Proto-Scripty] Re: Ajax.Autocompleter

2009-02-17 Thread Craig
Fixed the problem now by making changes in controls.js Line 48 this.hasFocus= false; add below: this.update.hasFocus = false; Line91 Event.observe(this.element, 'blur', this.onBlur.bindAsEventListener(this)); add below: Event.observe(this.update, 'mouseover',

[Proto-Scripty] Problems with $('formID').serialize(true).merge({foo:'bar'}).

2009-02-17 Thread Richard Quadling
Hello. I'm having problems using the Hash.merge() method on a Form.serialize(true). What I want to do is ... parameters : $('formUserAdmin').serialize(true).merge({Action : 'ClientAddUser', JSONP:'tabUA_UpdateUserIDs'}); But it isn't working because the output of the serialize method is not

[Proto-Scripty] Re: Problems with $('formID').serialize(true).merge({foo:'bar'}).

2009-02-17 Thread T.J. Crowder
Hi Richard, I could have sworn I opened a doc ticket on this about two weeks ago, when someone else ran into the fact that the docs say it ...returns a hash... (which it does, in the lower-case general sense of the word -- all POJOs are hashes; it doesn't return a Hash). But it looks like I

[Proto-Scripty] Re: Problems with $('formID').serialize(true).merge({foo:'bar'}).

2009-02-17 Thread T.J. Crowder
Naturally as soon as I give up and post, Lighthouse comes back to life. The ticket: http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/556 -- T.J. :-) On Feb 17, 4:20 pm, T.J. Crowder t...@crowdersoftware.com wrote: Hi Richard, I could have sworn I opened a doc ticket on

[Proto-Scripty] Re: Calling function passed as parameter

2009-02-17 Thread david
Hi marioosh, TJ is right, when you call the doit function via fun, the 'this' value is equal to Object window. So you need a little more binding to resolve your problem: replace the call to this.minimize(this.doit); by this.minimize (this.doit.bind(this)); -- david On 17 fév, 15:33, T.J.

[Proto-Scripty] Droppables in overflowed div!

2009-02-17 Thread javamaasai
Dear Team, Humble apologies for spamming, but was using the framework to create an urgent job. forgive me! I have multiple droppables in an overflowed div, the draggable seem to only remember the offset position of the droppables. If i move the droppables in the overflowed div there's no correct

[Proto-Scripty] Re: Using the same onclick with SlideUp and SlideDown

2009-02-17 Thread craig
Thanks guys. I didn't realize toggle would do this for me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to

[Proto-Scripty] Re: Calling function passed as parameter

2009-02-17 Thread marioosh
I see...yes, that works! thanks very much!! :D ps: sorry for my english ;) On 17 Lut, 18:41, david david.brill...@gmail.com wrote: Hi marioosh, TJ is right, when you call the doit function via fun, the 'this' value is equal to Object window. So you need a little more binding to resolve your