[Proto-Scripty] Re: Problem with Prototype 1.6.1 ( solved)

2009-11-10 Thread Irwan Djoehana
Thank you very much. I had the same problem and your fix did work. Cheers :-) On 12 oct, 22:16, Julius Šėporaitis jul...@seporaitis.net wrote: Hi, just wanted to post a quick note for those who maybe had problems like mine: - Prototype v.1.6.1 - Firefox 3.5 - JS Error:

[Proto-Scripty] Re: Prototype.jExtension

2009-11-10 Thread jacoz
i've shorten the url... here it is: http://j.mp/WM2uR sorry! On Nov 9, 3:29 pm, speedpac...@gmail.com speedpac...@gmail.com wrote: I'm getting a 403 :( On Nov 9, 11:19 am, jacoz jacopo.nu...@gmail.com wrote: Hi, I want you to show my extension of your framework. If you want you can

[Proto-Scripty] Re: Prototype.jExtension

2009-11-10 Thread Jacopo Andrea Nuzzi
Hi Tobie, thanks for you suggest: here it is: http://tr.im/EBEP Jacopo On Mon, Nov 9, 2009 at 9:35 PM, Tobie Langel tobie.lan...@gmail.com wrote: Hi jacoz, Seems like your Array#add would benefit from using Array#splice.

[Proto-Scripty] handler is undefined prototype.js handler.call(element, event) create wrapper

2009-11-10 Thread jaikumar
Hi , I am getting handler is undefined error in prototype.js Fire Bug pointing to this method in prototype.js handler.call(element, event) create wrapper. Can any one help me to solve this bug. --~--~-~--~~~---~--~~ You received this message because you

[Proto-Scripty] Multiple Ajax Request from the same page at the same time

2009-11-10 Thread aerox
hi all, i'm using prototype to perform 3 ajax request at the same time in the same page. the probeleme is i have the impression that my requests are not asynchronous : i call first a page named foo.php = do a sleep(40) and second a page named bar.php = echo toto; my javascript code: function

[Proto-Scripty] ajax request

2009-11-10 Thread ziva
hi everybody i have an issue with ajax requests, when i send two requests one after the other the second one waits for the first one to finish , and of course i specify that they are asynchronous. anybody has an explanation for that ? --~--~-~--~~~---~--~~ You

[Proto-Scripty] Stupid me cannot make Ajax.Request work

2009-11-10 Thread FourBrane
I am bumfuzzled by what should be a simple thing. I'm using prototype 1.6.1. The server side is working. The chkCardNum function gets called...but nothing fires. script type=text/javascript !-- function chkCardNum() { var notice = $('notice'); notice.update('Checking card

[Proto-Scripty] PeriodicalExecuter that doesn't stack

2009-11-10 Thread williamt
Im looking for a way to make PeriodicalExecuter not stack plus add in a max period setting. If PeriodicalExecuter could call a function instead of a url I could set/clear some flags so it would or wouldn't make the call depending on the flags. But I don't see how I could do that unless I could

[Proto-Scripty] Re: Stupid me cannot make Ajax.Request work

2009-11-10 Thread Alex McAuley
Ajax.Request will not follow XDR You have to make the request on the same domain and port else you will have to use a wrapper on the server side to go off domain Alex Mcauley http://www.thevacancymarket.com - Original Message - From: FourBrane men...@mentalware.com To: Prototype

[Proto-Scripty] Re: Multiple Ajax Request from the same page at the same time

2009-11-10 Thread T.J. Crowder
Hi, Most browsers, and most servers, limit the number of simultaneous requests between the same two endpoints. Usually that limit is two requests at a time, although I've also seen it be just one. Some browsers let the user configure it. You can count on one (obvious -- well, to the extent you

[Proto-Scripty] Re: ajax request

2009-11-10 Thread Alex McAuley
Could be the web server ... Alot of web servers have a max number of paralell requests per user Alex Mcauley http://www.thevacancymarket.com - Original Message - From: ziva znibers...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Tuesday,

[Proto-Scripty] Re: ajax request

2009-11-10 Thread T.J. Crowder
Hi, Nearly identical questions at almost the same time. :-) Here's the other one, where I've posted an answer: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/6af62cd45d76f06e HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com

[Proto-Scripty] Re: PeriodicalExecuter that doesn't stack

2009-11-10 Thread Alex McAuley
I wasn't aware that PeriodicalExecuter did call a URL... Ajax.PeriodicalUpdater does... If you want to just call a request every X seconds and change things just use PeriodicalExecutor or simply setTimeout Alex Mcauley http://www.thevacancymarket.com - Original Message - From:

[Proto-Scripty] Re: ajax request

2009-11-10 Thread Alex McAuley
And identical (almost) answers !! - how bizarre!!! Alex Mcauley http://www.thevacancymarket.com - Original Message - From: T.J. Crowder t...@crowdersoftware.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Tuesday, November 10, 2009 11:51 AM Subject:

[Proto-Scripty] Does $A('.classname').invoke('setValue',...) work on checkboxes?

2009-11-10 Thread Szymon Wilkołazki
Hi, I just bumped into a weird bug in my code. The thing is, that I am trying to update value of several checkboxes with a value received in a result of ajax call. Anyway, I have following construction: input name=someName class=APP_CHANGELOG_LOG_ID value= type=checkbox/ The checkboxes are

[Proto-Scripty] Re: PeriodicalExecuter that doesn't stack

2009-11-10 Thread William Taylor
wow I must have been tired when I wrote that. I said PeriodicalExecuter but I really meant Ajax.PeriodicalUpdater So ya is there a way to make Ajax.PeriodicalUpdater not stack and to possibly give it a maximum frequency limit? -William On Nov 10, 2009, at 4:00 AM, Alex McAuley wrote: I

[Proto-Scripty] Re: PeriodicalExecuter that doesn't stack

2009-11-10 Thread Alex McAuley
You have answered your own question... In your original post you said that you could fix the problem if you could get Periodical to call a function instead of a url .. and what i suggested does just that ... I am not sure i understand what you mean by stacking As for frequency: you dont need

[Proto-Scripty] Sorting and z-index problem

2009-11-10 Thread dl
I'm using scriptaculous to make page elements resortable through dragging and I'm running into a problem with z-index and the YUI split button. I know it could be difficult to say of the problem is with the YUI code or scriptaculous code but I think it's scriptaculous code (or my use of it) and

[Proto-Scripty] Re: PeriodicalExecuter that doesn't stack

2009-11-10 Thread Alex McAuley
To stop the stacking just use asynchronous flag and set it to false... Though it does go against the AJAX it will work... Perhaps you can get around the decay/frequency with somehting else Alex Mcauley http://www.thevacancymarket.com - Original Message - From: William Taylor To:

[Proto-Scripty] Re: PeriodicalExecuter that doesn't stack

2009-11-10 Thread William Taylor
If I turn off async will that only block on that one call or will it block other calls from happening also? On Nov 10, 2009, at 7:27 AM, Alex McAuley wrote: To stop the stacking just use asynchronous flag and set it to false... Though it does go against the AJAX it will work... Perhaps

[Proto-Scripty] Re: PeriodicalExecuter that doesn't stack

2009-11-10 Thread Alex McAuley
It makes the call asynchronous (it will only do one thing at a time) .. so if you had a stack of 8 ajax calls it would go through them one by one in synchronous fashion until they are done... If you have other ajax calls going on in the page from different functions - this one would sit in the

[Proto-Scripty] Re: Does $A('.classname').invoke('setValue',...) work on checkboxes?

2009-11-10 Thread Szymon Wilkołazki
Hi, I found where is the problem. I assumed, that the Form.Element.setValue method sets the value of an element. In case of checkboxes that is not true. The method changes the state of checked/unchecked instead, and leaves the value attribute unchanged. The example might be found here:

[Proto-Scripty] Prototype Unit Testing Framworks

2009-11-10 Thread Daff
Hi All, I have been trying to find a Javascript Unit testing framework that works with Prototype. I initially tried JsUnit, but it would appear that there is a namespace conflict with the asserts, because as soon as I include the prototype file, all the previously passing test fail, with

[Proto-Scripty] JSON - which chars not accepted?

2009-11-10 Thread Manfred Rebentisch
I have a question to this prototype function: function isJSON() { var str = this; if (str.blank()) return false; str = this.replace(/\\./g, '@').replace(/[^\\\n\r]*/g, ''); return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str); } If I send a JSON { 'str': 'pThis is a

[Proto-Scripty] Re: Prototype Unit Testing Framworks

2009-11-10 Thread Joe Athman
We use JsUnit with prototype successfully. Could you post any additional info about the errors you are getting? What version of prototype/jsunit/browser are you using? I will say that JsUnit seems to be basically on life support so you might want to look in to something else. I've recently

[Proto-Scripty] why does javascript lie?

2009-11-10 Thread patrick
Ok, this is really annoying me... When you make changes to form elements, and refresh the page, they don't go back to their defaults regardless of what the html says selected is... My plan was to have prototype set my form elements to their selected value when the page loads, however when I