[Proto-Scripty] Prototype in Firefox 17

2012-12-04 Thread Eric Kanagy
We're having issues with the newly released Firefox 17.0.1. Weird syntax error in places that don't make any sense (like line 642 of prototype.js): return this.stripTags().replace(/lt;/g,'').replace(/gt;/g,'').replace(/amp;/g,''); I read

[Proto-Scripty] Got CSRF issue when use Ajax.Updater in Django

2012-11-16 Thread Eric Yi
Hi, I use Django framework to set up my webserver and try to use protype 1.7 . When I call Ajax.Updater function to asynchronous reflash my page , I got Forbidden 403 error: CSRF verification failed. Request aborted. Anyone can help me on this? Thanks -- You received this message because you

[Proto-Scripty] anyone experiencing issues in IE10

2012-10-10 Thread Eric Maurer
I have a site with a considerable amount of work done and in IE 10... the code is not working. Anyone experience issues with IE10? The site is www.toddscycle.com and the section is Motorcycles if anyone wants to see examples. Any help would be greatly appreciated. -- You received this

[Proto-Scripty] Re: IE8 + Prototype AJAX = HTTP Status 12019

2011-12-19 Thread Eric
this. Have a look here: http://blogs.msdn.com/b/ie/archive/2009/06/17/compatibility-view-and-smart-defaults.aspx Eric On Dec 16, 11:47 am, Phil Petree phil.pet...@gmail.com wrote: Unless you're getting paid by the hour, you loose nothing by temporarily trying a later version of prototype.  Try

[Proto-Scripty] Re: Be sure to buy a book Protorype.js and Sript.aculo.us you fall off 90% of questions.

2011-10-04 Thread Eric
the thing. Eric On Oct 1, 7:10 pm, Marty Amberg mar...@edenstreet.com wrote: I agree, I own the book and it is helpful.  My only complaint is that the examples are using ajax calling javascript but I suppose that is universal so good for everyone.  A nice ebook to have as well as paper ISBN-13 (pbk

[Proto-Scripty] Re: can evalJSON handle currency symbols like €, £, $

2011-09-05 Thread Eric
Are you sure your returned json is encoded in UTF-8? By using something like FireBug, you can see what is actually returned from the server. This would be a priceless information to understand your issue. On Sep 2, 3:57 pm, nigeke...@googlemail.com nigeke...@googlemail.com wrote: When I

[Proto-Scripty] Re: Why Element.Storage?

2011-08-29 Thread Eric J. Van der Velden
Hello Victor, I already did. But I don't know the answer. Thanks, Eric J. On Aug 29, 8:09 am, Victor vkhomyac...@gmail.com wrote: Hi! If you like to browse source code, then you can answer by yourself. Just search for prototype_event_registry in sources. -- You received this message

[Proto-Scripty] Why Element.Storage?

2011-08-27 Thread Eric J. Van der Velden
Hello, The function Element.observe first lets _createResponder create a responder. Then it calls element.addEventListener(actualEventName,responder,false) This seems enough. Why stores _createResponder the responder in Element.Storage (behind a index connected with element)? -- You

[Proto-Scripty] Re: Organizing my dom:loaded event

2011-08-24 Thread Eric
you can give an array of class objects to your DOM init and invoke it. Eric On Aug 23, 10:04 am, Johan Arensman johanm...@gmail.com wrote: Hey guys, I'm redesigning a template set for different kind of websites. In the past quite a lot of 'widgets' have been created in the form of prototype

[Proto-Scripty] Re: CSV to Json

2011-08-22 Thread Eric
(array_combine($fields,$line)); } fclose($fh); Eric PS: You may want to add some error handling :o) On Aug 20, 6:03 pm, Jason jwestbr...@gmail.com wrote: I would use a small PHP script (assuming the first line is the field names) $fields = array(); $data = array(); $fh = fopen($filename); $line

[Proto-Scripty] Re: Best way to show / hide a menu

2011-07-20 Thread Eric
note that mobile browsers have special events like the ones on http://www.quirksmode.org/mobile/tableTouch.html Kangax had a very nice events testing page which seems to be offline (http://yura.thinkweb2.com/isEventSupported/) Eric -- You received this message because you are subscribed

[Proto-Scripty] Re: What's your favorite error status code?

2011-07-12 Thread Eric
() {...}, onMyPrivateAppStatusUserDidSomethingWrong: function() {...}, onMyPrivateAppStatusMalformedJSON: function() {...} }); Eric On Jul 7, 2:27 pm, Walter Lee Davis wa...@wdstudio.com wrote: On Jul 7, 2011, at 8:21 AM, T.J. Crowder wrote: To my mind, HTTP response codes aren't for application logic

[Proto-Scripty] Re: Registered events and removed DOM objects

2011-06-17 Thread Eric
Element.purge() Yet another prototype 1.7 feature I was not aware of :o) Is there any way to export this online documentation into a convenient PDF or anything I can print and turn into a book like the one for prototype 1.6? Eric On Jun 16, 10:44 am, T.J. Crowder t...@crowdersoftware.com

[Proto-Scripty] Re: A bit of assistance please

2011-06-09 Thread Eric
Yes I mean that. After googling, it seems that it is a know issue with chrome for mobile to not show scrollbars when using overflow:auto... On Jun 6, 4:09 pm, Walter Davis wa...@wdstudio.com wrote: On Jun 6, 2011, at 9:26 AM, Eric wrote: I did try it on Chrome on Windows with success

[Proto-Scripty] Re: ajax.updater - json to fill select

2011-06-06 Thread Eric
: ?php $myCities = Array(Paris,Madrid,New-York,London); header('Content-Type: application/json'); print json_encode($myCities); ? Eric On Jun 4, 11:15 am, Johan Arensman johanm...@gmail.com wrote: You can use basic Json, but this is basic javascript, not specific for prototype {  cars

[Proto-Scripty] Re: A bit of assistance please

2011-06-03 Thread Eric
On Jun 1, 4:33 pm, Walter Davis wa...@wdstudio.com wrote: On Jun 1, 2011, at 10:19 AM, Eric wrote: On May 31, 5:51 pm, Walter Davis wa...@wdstudio.com wrote: On May 31, 2011, at 11:12 AM, bill wrote: I need the scroll of the div contents only. You can back into that by using

[Proto-Scripty] Re: what is the advantage to use Class.create to create new class

2011-06-01 Thread Eric
() just return a function,can not find any inheritance functionality That may be because you're using prototype 1.4. You may consider upgrading to 1.7. Eric Seehttp://api.prototypejs.org/language/Class/create/for more information. Greetings,  Johan On Tue, May 31, 2011 at 3:26 PM

[Proto-Scripty] Re: Updating Observer through AJAX call

2011-05-31 Thread Eric
like this will: f = function() {...} Please let us know when you found what was wrong. Eric On May 31, 6:14 pm, Kristofer krishop...@gmail.com wrote: On Tue, May 31, 2011 at 10:57:36AM -0500, Miguel Beltran R. wrote: 2011/5/29 Kristofer krishop...@gmail.com Hello, I am trying to figure

[Proto-Scripty] Re: A bit of assistance please

2011-05-30 Thread Eric
position relative to top/left corner of your image. More simple but I am not sure it is crossbrowser supported, events *may* have clientX and clientY attributes which *may* contain what you're looking at (if your event is attached to the img DOM object). Eric On May 29, 12:29 pm, bill

Re: [Proto-Scripty] problem with prototype.js and dashcode

2011-03-26 Thread Eric Sandeen
, but loading it before AppleAnimator.js in main.html does. Hopefully that won't break much. ;) Thanks, -Eric On Mar 25, 2011, at 1:21 AM, Eric wrote: I'm using Dashcode 3.0.2 on OSX 10.6.6, and trying to write my first dashboard widget using prototype.js 1.7. I've got some things working

[Proto-Scripty] Re: jqTouch-counterpart for Prototype?

2011-03-22 Thread Eric
something as universal on mobile internet than prototype.js on immobile internet :o) Eric On Feb 28, 9:26 am, Benedikt.Rothe benedikt.ro...@googlemail.com wrote: It has support for touch events -http://scripty2.com/demos/touch/ This is very interesting. I didn't know. Thank you. But jqTouch

[Proto-Scripty] Re: prototype 1.7, scriptalulous 1.9.0, FF 4.0 beta 9

2011-01-19 Thread Eric
(and hide draggable item) - drag X div I did that using proprietary code, but it should be possible to do that with scripty's draggables (and then to be able to use all nice features like ghost). If you successfully implement this, don't hesitate to share it ;o) Eric On Jan 16, 6:24 pm, Ben

[Proto-Scripty] Dragging from an overflow: auto container

2010-11-19 Thread Eric
exotic ways of fixing it, and there isn't much I can think of. Any hint/idea is welcome :o) Eric PS: Here is the code I use in case you don't want to go on jsbin: var list = $('list'); var i; for(i=1;i20;++i) { var elt = new Element('span').update('item '+i); new Draggable(elt,{ghosting:true

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

2010-11-10 Thread Eric
. told you (twice) prototype is designed to take care of it for you. Eric On 10 nov, 00:37, fashionpeople fashionpeople.busin...@gmail.com wrote: I tried use fixedEncodeURI like suggest in your links. But doesn't work. I didn't understand the problem. On 9 Nov, 17:25, T.J. Crowder t

[Proto-Scripty] Re: ajax.updater and onLoad

2010-11-04 Thread Eric
Reference explicitly says that onCreate is only available to responders, as it wouldn't make a lot of sense to individual requests . Eric -- 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 prototype

[Proto-Scripty] Re: adding InPlaceEditor to each table cell

2010-10-29 Thread Eric
you may disable the highlight effect of the InPlaceEditor, so the cells you already clicked wont have different behavior than the ones you haven't. (I did at first try to implement the highlight effect on other td's but with a big table, it is just very bad looking). Eric On Oct 28, 12:34 am

[Proto-Scripty] Re: Anchor button triggers window.onbeforeunload in IE

2010-10-25 Thread Eric
you why (http://blog.niftysnippets.org/search/label/closures). Eric On Oct 22, 8:47 pm, JoJo tokyot...@gmail.com wrote: Thanks T.J. The solution is: dynamicAnchor = new Element(     'a', {         href: 'javascript:void(0)'     } ).observe(     'click',     function(parameter

[Proto-Scripty] Re: Cursor blinker disappears from textarea after a clear()

2010-10-21 Thread Eric
a gray background and dark gray text should do it) Instead of enabling it again, you just set readOnly to false and remove the custom class name. HTH. Eric On Oct 20, 11:28 pm, JoJo tokyot...@gmail.com wrote: I found out what was causing the issue. In my AJAX to add the comment I had

[Proto-Scripty] Re: Cursor blinker disappears from textarea after a clear()

2010-10-21 Thread Eric
Oooops, After reading T.J's message (http://groups.google.com/group/prototype- scriptaculous/t/38c587197bfb14e7), I noticed that what I called readOnly attribute was in fact readOnly property. Sorry for that, and thanks T.J. for teaching me this concept :o) Eric On Oct 21, 2:01 pm, Eric lefauv

[Proto-Scripty] Re: Scalable Drag Drop (without noticeable lag)

2010-10-19 Thread Eric
of work to the browser (It would require some tweaks, but I successfully used this technique with Ajax.InPlaceEditor). Eric -- 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 prototype-scriptacul

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

2010-10-11 Thread Eric
supported by prototype. If you try to use it already, you may need to put hands in the source (once again, if you give more information about what you're trying to do and what is actually happening, I am sure you will get some help for solving your issue). Best, Eric -- You received this message

[Proto-Scripty] Re: marquee in JavaScript (using Prototype)

2010-09-24 Thread Eric Anderson
On Aug 27, 5:43 am, Johan Arensman johanm...@gmail.com wrote: I'm fully against marquee's in the first place but you also have an option to add the attribute data-duration to your element. If you're making a class to replace a depricated functionality you shouldn't use this way to add features

[Proto-Scripty] Re: Prototype return limited

2010-09-21 Thread Eric
am using the response body (responseJSON) and not the response header. - I noticed that my server uses Transfer-Encoding: chunked (in case it may have an effect, since for shorter replies it uses gzip and give a Content-Length) . HTH Eric On Thu, Sep 2, 2010 at 9:27 AM, Dave Kibble davekib

[Proto-Scripty] marquee in JavaScript (using Prototype)

2010-08-25 Thread Eric Anderson
://gist.github.com/548690 The gist includes an example usage HTML document. Although marquee is a bad thing in most situations there are a few valid use cases. So for people looking for something like this it is free for all to use however they see fit. Eric -- You received this message because

[Proto-Scripty] Re: Script.aculo.us + Prototype scripts not working on my server

2010-08-18 Thread Eric
to run on an intranet or an offline computer, you may keep googleapi links. It will optimise the browser's cache, and it is very likely that google servers will serve your scripts faster than your hosting company. Eric On Aug 16, 10:54 am, ColinFine colin.f...@pace.com wrote: On Aug 13, 6:43 pm

[Proto-Scripty] Re: Introducing AutoTable, new Table/Grid widget

2010-08-18 Thread Eric
for JavaScript, CSS class names, and Java for app server integration. Thank you, I'll try to have a look on it. Eric [1] Yes, this is on an intranet, so number of users is not very impressive... -- You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: Introducing AutoTable, new Table/Grid widget

2010-08-12 Thread Eric
list their add-ons, a quick resume and a link could help). , Eric On Aug 11, 3:17 pm, Blaine blaine.simp...@admc.com wrote: Thanks T.J.  I've used Scripteka before... that's where I've found most of the Prototype widgets that I use, but I didn't think it was updated, due to half of the site

[Proto-Scripty] Re: IE 8 Error: The data necessary to complete this operation is not yet available

2010-08-12 Thread Eric
. This means that if this limit is 2MB, you will not be able to send a 3MB file in your form, even if you fixed the POST limit size to 8MB[2]. Eric [1] I said it would work. Not that it would be safe to do it :o) [2] I lost a lot of time on this one first time I met this issue... On Aug 11, 3:47 am

[Proto-Scripty] Re: Ajax request on anchor onclick is buggy in Safari

2010-08-12 Thread Eric
to use it if there is no other choice (safari users will have a crappy experience, but it will work...). Once again, try first to have a server side solution. It will work better. Eric [1] Well, what you really should do is using observe :o) [2] and like T.J. said, it will reduce user experience

[Proto-Scripty] Re: Preventing Autocompleter

2010-08-04 Thread Eric
Sorry for the late reply (Holidays :o) ) but why don't you just disable the city field until the state field is filled? On Jul 5, 9:19 pm, Jonathan Snelling jon.snell...@gmail.com wrote: There should be a before or a conditional parameter you can pass. That returns true to continue or false to

[Proto-Scripty] Re: window.open on ajax response

2010-08-04 Thread Eric
Eric On Jul 13, 11:15 am, ColinFine colin.f...@pace.com wrote: On Jul 12, 5:31 am, Hari hariharanwebm...@gmail.com wrote: But even this doesn't help since function call happens by a call back and not user action. So the browser popup blocker click in. One way i could think is make the Ajax

[Proto-Scripty] Re: Login-Function broke with Firefox 4.0b2

2010-08-04 Thread Eric
call, Firebug sometime doesn't show anything. For what it worth, did you try to put a breakpoint in Ajax.Request's handler (the code that will actually call your callback)? Eric On Jul 28, 12:43 pm, Marcus Schwarz msspamf...@gmx.de wrote: Hi there, I'm using a login based on prototype's Ajax

[Proto-Scripty] Re: Touch screen / mouse gesturing.

2010-08-04 Thread Eric
camera to your id badge until it beeps, and press a confirmation button) :o) Eric PS: Of course, don't remove the text input for peoples using an iPad ;o) On Jul 29, 1:41 pm, Richard Quadling rquadl...@gmail.com wrote: Hi. I'm developing a tiny little web page app which allows vehicle inspectors

[Proto-Scripty] Re: IE 8 Error: The data necessary to complete this operation is not yet available

2010-08-04 Thread Eric
I think IE8 features a not that bad javascript debugger. If you activate it and reload your page, it will stop on the faulty line. On Jul 30, 10:45 pm, KammylandSoftware kammyl...@gmail.com wrote: Using the latest Prototype and Scriptaculous scripts hereto (July, 2010) I am getting this error

[Proto-Scripty] Re: $$()

2010-08-04 Thread Eric
no matching element is found). Any enlightenment on this topic is welcome :o) Eric -- 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 prototype-scriptacul...@googlegroups.com. To unsubscribe from

[Proto-Scripty] Re: Issues with IE8, mousedown, mouseup -

2010-06-25 Thread Eric
mouseup handlers to be called). Eric NB: Sorry I mismatched two languages: ihm is French accronym for GUI (Graphic User Interface). What I meant to say is that if you press any of your operating system's button, the action will not be performed until you release the mouse button. On Jun 24, 6:47

[Proto-Scripty] Re: Issues with IE8, mousedown, mouseup -

2010-06-24 Thread Eric
Hi, Have you consider using mouseup instead of mousedown? This is indeed how standard ihm buttons works. It doesn't explain or justify IE8's behavior, but if it works, you can hit two birds with one stone. Eric On Jun 24, 1:55 am, max radin max.tomlin...@gmail.com wrote: Hi- I have a search

[Proto-Scripty] Re: Proper error handling

2010-06-23 Thread Eric
considered returning a custom HTTP status code and using either onError or on5xx (where 5xx is the custom status code for my errors). I am curious if someone tried this, to know if it was a good choice or not. Eric On Jun 23, 4:24 am, joe t. thooke...@gmail.com wrote: Oh thank god. i thought i

[Proto-Scripty] Re: drag and drop on the iphone

2010-06-01 Thread Eric
browser by opening this page: http://yura.thinkweb2.com/isEventSupported/ HTH, Eric Note: You may have to implement your own drag'n drop framework using those messages since I have no idea if scriptaculous one support them (probably not or you wouldn't have asked :o) ). On May 30, 5:14 am, Shank

[Proto-Scripty] Re: Applying .appear() effect on a background

2010-05-25 Thread Eric
). Good luck. Eric Thanks M -- 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 prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous

[Proto-Scripty] Re: Cross-browser function for Text content

2010-04-13 Thread Eric
(which would be equivalent to false). Eric On Apr 12, 9:35 pm, Rüdiger Plantiko ruediger.plant...@astrotexte.ch wrote: Hi TJ, I get the number 4711 in IE with $(test).innerText and in FF with $ (test).textContent - does Prototype provide a browser-independent abstraction

[Proto-Scripty] Re: Cross-browser function for Text content

2010-04-13 Thread Eric
On Apr 12, 7:04 pm, T.J. Crowder t...@crowdersoftware.com wrote: Element.addMethods({     text: function(element) {         if (!(element = $(element))) return;         return element.innerHTML.stripTags();     } }); wouldn't it be wiser to check for the native method once and use it?

[Proto-Scripty] Re: Cross-browser function for Text content

2010-04-13 Thread Eric
element.innerText; } : function(element) { if (!(element = $(element))) return; return element.textContent; } }); Eric NB: I know, the testing condition is ugly... feel free to post a better one :o) -- You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: The Unofficial Wiki

2010-04-12 Thread Eric
) are a real added value and are not available anywhere (afaik). Of course, since the wiki is also about scriptaculous we may have to find a clear way to not confuse users which just need prototype information. Eric On Apr 9, 12:43 pm, T.J. Crowder t...@crowdersoftware.com wrote: Hi, I think

[Proto-Scripty] Re: Class Inheritance from Element

2010-04-12 Thread Eric
() {this.addClassName('tree'); }, createNode: function(...) {.../... } }); You may have to play with Array.shift and Function.call if you want to have extra parameters to your constructor (I've never needed it yet but it should be possible). Eric Note: I've never tried to override a native method and I am

[Proto-Scripty] Re: -[Accordion]-...

2010-03-31 Thread Eric
it doesn't load scripts in the correct order (scriptaculous is loaded before prototype.js which screw things up). I hope this will be fixed soon. Eric -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email

[Proto-Scripty] Re: hash:zero

2010-03-31 Thread Eric
Something like that should do it: yourHash = $H(); You're affecting a new empty hash to your old hash, which should be garbage collected by the browser. Eric On Mar 29, 8:47 pm, Walter Lee Davis wa...@wdstudio.com wrote: So if you had a hash of N length and you wanted to end up with a hash

[Proto-Scripty] Re: Ajax onFailure never gets called

2010-03-11 Thread Eric Wilson
does oncomplete fire? On Mar 10, 4:31 pm, JoJo tokyot...@gmail.com wrote: I noticed that the onFailure callback never fires when there's actually an error in Ajax.Request. Commonly, I just alert('server busy') in the callback. I never see this alert when my web host is overloaded and just

[Proto-Scripty] Re: mutile-toggle problem

2010-03-10 Thread Eric Wilson
Surely has something to do with trying to toggle an item when it is already in the middle if a toggle transition. You might be able to bail out and start rendering the reverse of the current toggle animation by usingone of the callbacks and starting your new render at the complement of whatever

[Proto-Scripty] Re: Disabling ajax.autocompleter (new way) when updating field

2010-03-05 Thread Eric
Just give the focus to something else. Eric On Feb 24, 11:02 pm, Jinsa jf.wesq...@gmail.com wrote: Hi all! Sorry for digging up such an old thread (see Disabling Scriptaculous autocomplete at the bottom of my thread)  but I'm working on the same problem (more or less). I have an input

[Proto-Scripty] Re: Having Effect.Opacity work with a Class and not an ID

2010-03-05 Thread Eric
before calling the effect. Eric On Mar 5, 9:44 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, You can use Effect.multiple[1] to apply the same effect to multiple elements. So:     Effect.multiple($$('.fade-in'), Effect.Opacity, { from: 0, to: 1, duration: 1.5 }); [1]http

[Proto-Scripty] Re: Ajax.Autocompleter doesnt work on firefox

2010-03-05 Thread Eric
Do you have any error/warning message in the Firefox console ? If you're using Firebug's debuger, I've noticed that it sometimes just stop code execution when reaching a line that will fail. To see the error, you may go on script tab and click on Continue execution (the VCR Play button like icon).

[Proto-Scripty] Re: change frequency in running periodical executer?

2010-03-04 Thread Eric
Didn't you mean : this.frequency = frequency; :o) Thanks for the snippet! Eric On Feb 21, 8:14 am, Радослав Станков rstan...@gmail.com wrote: There isn't PeriodicalExecuter#start method its PeriodicalExecuter#registerCallback You can do: code x.stop(); x.frequency = 1

[Proto-Scripty] Re: callback decoration

2009-12-17 Thread Eric
see it working here: http://jsbin.com/afudi and play with the code here: http://jsbin.com/afudi/edit Eric -- 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 prototype-scriptacul...@googlegroups.com

[Proto-Scripty] background-color stucked after an highlight effect

2009-12-04 Thread Eric
(tr,{queue: 'end', afterFinish: function() { tr.setStyle({'background-color': 'inherit'});}}); Can anyone tell me what I am doing wrong? Eric -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email

[Proto-Scripty] Re: background-color stucked after an highlight effect

2009-12-04 Thread Eric
Thanks David, It does work! And do does tr.style.backgroundColor = ''; Why did I look for something complex when solution was so simple :o) Thanks again! Eric On Dec 4, 1:08 pm, david david.brill...@gmail.com wrote: Hi Eric, do you try to reset the element style property for background

[Proto-Scripty] Re: this and setTimeout in Prototype-based class

2009-12-04 Thread Eric
Well, since you're in Prototype, you can do this: this.doSomething.bind(this).delay(1000, ...); where the ... stand for other parameters of doSomething method (if they are needed). Eric On Dec 3, 3:29 pm, Daan Mortier daanmort...@gmail.com wrote: I'm sorry, I made some typos. This is correct

[Proto-Scripty] Re: document.write() vs Element/appendChild()

2009-12-04 Thread Eric
When you have a large piece of code to post, it is nice to also post a link on pastie.org or jsbin.com. For example, I pasted the code you've posted on pastie here: http://pastie.org/727583 Eric On Dec 4, 8:09 am, fma f...@gbiloba.org wrote: BTW, what is the tag to format code on this group

[Proto-Scripty] Re: Sychronize many asynchronous Ajax.Request

2009-11-27 Thread Eric
And next, because an array is much more flexible than variables. you I am sorry David, but I don't agree with you on this :o) An object variable is ways more flexible than an array. Especially if you add some methods to its prototype to fit your needs. And it is probably overkill in this case,

[Proto-Scripty] Re: Sychronize many asynchronous Ajax.Request

2009-11-23 Thread Eric
Hi, I'd launch all Ajax.Request except the last one with a onSuccess handler that: - set a flag - if all flags are set, launch the last Ajax.Request This way, you don't have to use timer, or loop calling yourself recursively. Eric NB: I didn't test it, but you may increment a counter instead

[Proto-Scripty] Re: onClick vs Element.observe

2009-11-18 Thread Eric
!= document) { var id = element.id; // Do your stuffs here } } Eric On Nov 18, 1:47 pm, ColinFine colin.f...@pace.com wrote: On Nov 17, 10:17 pm, phegaro pheg...@gmail.com wrote: Delegation sounds like a good model for doing this although if i want to pass parameters

[Proto-Scripty] Re: Observing multipart/form-data oncomplete

2009-11-13 Thread Eric
to return something like: Event.fire(parent.document,form:complete); and to observe this event on your document, but it may not be that simple to send event to/from iframe (I never tried). Good luck, Eric On Nov 12, 1:37 pm, Stucture_Ulf maximilian.moulet...@gmail.com wrote: I'm using document

[Proto-Scripty] Re: Prototype.jExtension

2009-11-13 Thread Eric
Hi Jacopo, On Nov 12, 4:29 pm, jacoz jacopo.nu...@gmail.com wrote: Hi Eric, thanks for your suggests! Well, now I answer all of your questions ;) - I named Element.ajaxRequest() in that way because by default it updates the element, but you can change the onSuccess function! OK, but if you

[Proto-Scripty] Re: Prototype.jExtension

2009-11-12 Thread Eric
is described here: http://www.prototypejs.org/contribute You may propose some of yours (I'd recommend proposing only the more interesting methods) once you've validated that they don't break the test cases. HTH, Eric On Nov 10, 10:07 am, Jacopo Andrea Nuzzi jacopo.nu...@gmail.com wrote: Hi Tobie, thanks

[Proto-Scripty] Re: Effect.move speed issue + tooltip suggestions?

2009-10-29 Thread Eric
, mode: 'absolute', duration:0.2}); For the tooltip script, I have no idea, but you may have a look at http://scripteka.com/ Eric On Oct 25, 5:17 pm, Peder Johnsen supp...@johnsendesign.no wrote: Hi, is there anyway to speed up the move effect? I am currently using it forwww.pixelgeddon.com

[Proto-Scripty] Re: A question about submitting multiple parameters using Ajax.Updater

2009-10-27 Thread Eric
()) { $posted = stripslashes($posted); } HTH, Eric On Oct 17, 8:12 pm, Alex McAuley webmas...@thecarmarketplace.com wrote: it sends a json object to the server which you remove the slashes and decode - example in php $posted=str_replace(\\,\,$__POST['varaible_2']; $json=json_decode($posted

[Proto-Scripty] Re: Coding disabled on a link

2009-10-20 Thread Eric
it at the end to allows chain calls :o) You have a fully working example here: http://jsbin.com/itike3 Eric NB: I've lost 20 minutes (sic) figuring why my disableAllLinks() methods didn't work as expected before finding out that $$() DOESN'T WORK on jsbin in edit mode (it works on save to public

[Proto-Scripty] Re: Tying an Element and a custom class together

2009-10-19 Thread Eric
Matt, I like your way of doing it, but my concern is that the documented toElement() method seems to be only half implemented. A minor change to the $() function could make it work completely (see it here: http://pastie.org/660553 ). What do you guys think about this change? Eric On Oct 17

[Proto-Scripty] Re: Tying an Element and a custom class together

2009-10-16 Thread Eric
to use a custom class everywhere where a DOM element is needed, and just add one line of code). Eric (*) This was the simplest way to explain the process, but you may prefer dynamically create the DOM element on the first call of toElement() for better efficiency. On Sep 10, 10:56 am, T.J. Crowder t

[Proto-Scripty] Re: prototype mobile support: best practices?

2009-10-09 Thread Eric
, it is very important that you check your generated file WILL BE CACHED (by default, most dynamic pages are NOT cached). That's all I can remember about this. HTH Eric On Aug 14, 2:09 pm, Cyrus arianglan...@googlemail.com wrote: I can't believe no one has tested his projects with a mobile / touch

[Proto-Scripty] Ajax.InPlaceCollectionEditor issues (and some solutions)

2009-10-06 Thread Eric
them). Simple workaround is to explicitly specify the value of the option, like this: [['AB','AB'],['CD','CD']] Thanks for any hint about the IE6 issue! Eric NB: Sorry if I don't reply straight away to your replies, but I am trying to read all posts from this list in order, and I am a little behind

[Proto-Scripty] Re: Ajax.InPlaceEditor in tables in IE6

2009-08-19 Thread Eric
that when you know what you're doing, it is not that bad :o) Don't anybody has a clue about my InPlaceEditor issue? I would be very curious to know (at least) why using InPlace editing on a TD element make it vanish... Eric --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Ajax.InPlaceEditor in tables in IE6

2009-08-14 Thread Eric
the whole table's cell... I cannot think to something else to try... If someone has an idea about how to make this work, I'd be glad to read it! Eric Note: I use XHTML 1.0 Transitional doctype (see pastie link for the complete source) (*) I am aware it is bad to put divs in tables, but so far that's

[Proto-Scripty] Re: Ajax.InPlaceEditor in tables in IE6

2009-08-14 Thread Eric
Ooops, I forgot to tell that I am using Prototype 1.6.0.3 and Scripty 1.8.2 :o) Eric On Aug 14, 4:35 pm, Eric lefauv...@gmail.com wrote: Hi, I have a table with some editable cells. The initial content of cells may be empty. I'd like the InPlaceEditor (IPE) to start editing when user

[Proto-Scripty] Re: Casting a json object into an instance of a class

2009-08-12 Thread Eric
part of code just after being converted into a class instance :o( And since it was overridden by the raw JSON object value, I stupidly assumed that the casting didn't work. At least, I now know what is the state of the art way of getting a class instance through Ajax ;o) Thanks again! Eric On Aug

[Proto-Scripty] Casting a json object into an instance of a class

2009-08-11 Thread Eric
) if(myInstance.isB())... = isB is undefined What is the correct way of achieving this ? Eric --~--~-~--~~~---~--~~ 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 prototype

[Proto-Scripty] Ajax.Responders issues

2009-08-05 Thread Eric
? Thanks for any hint, Eric --~--~-~--~~~---~--~~ 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 prototype-scriptaculous@googlegroups.com To unsubscribe from this group

[Proto-Scripty] I felt rather puzzled at a few code in Class.create function. Anyone else who can help me. TIA

2009-05-19 Thread Eric
if (parent) { var subclass = function() { }; subclass.prototype = parent.prototype; klass.prototype = new subclass; parent.subclasses.push(klass); } How to understand these codes ? --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Re: I felt rather puzzled at a few code in Class.create function. Anyone else who can help me. TIA

2009-05-19 Thread Eric
On 5月19日, 下午6时52分, Eric smcdl6...@gmail.com wrote: if (parent) { var subclass = function() { }; subclass.prototype = parent.prototype; klass.prototype = new subclass; parent.subclasses.push(klass); } How to understand these codes ? If I was the author, I

[Proto-Scripty] Re: I felt rather puzzled at a few code in Class.create function. Anyone else who can help me. TIA

2009-05-19 Thread Eric
I had understood it completely. I'm Chinese, sorry for my english. Best Thank you. On 5月19日, 下午7时28分, Tobie Langel tobie.lan...@gmail.com wrote: Hi Eric, If I was the author, I will new parent directly and assign it to klass.prototype. That would imply calling the initialize method

[Proto-Scripty] Re: validation for alphanumeric field/sequence

2009-03-02 Thread Eric
to read about all possible methods, even if I am now (even more) confused about Javascript and hashes :o/ (I thought that native JS objects were great hashes, but I am obviously wrong there...). Eric --~--~-~--~~~---~--~~ You received this message because you

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

2009-02-17 Thread Eric
was thinking to revert to vanilla DOM for performances issues but I may revert to build some HTML string if it is that fast :o) (Isn't it what scritaculous's Builder is doing internally?) Eric --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Proto-Scripty] Re: Applying scriptaculous effects on CSS styles

2009-02-09 Thread Eric
(but this could give some interesting effects :o) ). The interest here is to change a single variable and impact hundreds (thousands?) of DOM objects in an eye blink. Eric NB: BTW, since classNames is a collection, you may not affect it this way but instead use Element.addClassName

[Proto-Scripty] Using setStyle to change background-image

2009-02-03 Thread Eric
like to use the object form, which is working for other style properties on the very same object. (ex: $('mydiv').setStyle({'left':xpos+'px','top':ypos+'px'}); ) Am I missing something here? Thanks for any hint. Eric --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Re: Using setStyle to change background-image

2009-02-03 Thread Eric
2009/2/3 Richard Quadling rquadl...@googlemail.com: The attribute name should not be in quotes ... Thanks for the reply Richard, But I also tried without the quotes, which are optional (except for 'background-image' since in contains a dash). Documentation says Element.setStyle should accept

[Proto-Scripty] I think i found a bug in IE6(not yet test in IE7), it will throw a error when I create a instance object in sub window use the Class defined by its opener.

2009-01-16 Thread Eric
Hi guys, The following is my environment Windows2000 English Professional Prototype's version is 1.6.0.3, IE6.0.2800.1106 test fail Firefox2.0.0.20 test ok The following is my code snippet in window named 'A' : SomeClass = Class.create(); in window named 'B' : SomeClass =

[Proto-Scripty] Re: change link behavior by classname

2009-01-12 Thread Eric
in advance, Eric --~--~-~--~~~---~--~~ 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 prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send

[Proto-Scripty] New use case for Sortable tree?

2009-01-07 Thread Eric
. Is there something that I am missing, or would doing this require me to extend Sortable's implementation myself? Thanks, Eric By the way, in the course of implementing my drag-and-drop tree, I found the tree-dump output of Sortable tree to be clumsy to use on the server side, because

[Proto-Scripty] Re: Newbie Question

2009-01-07 Thread Eric
/api Eric On Jan 6, 8:52 am, Drakhul drak...@gmail.com wrote: I am very new to Prototype and JavaScript, so this is prolly a no- brainer for most of you. Let me see if I can make sense... On my page, there is a DIV where my ajax calls load pages.  The main page loads with a specific form

[Proto-Scripty] Re: event.observe document

2009-01-07 Thread Eric
propagation in order to have key shortcuts working almost everywhere, and observing the inputs where shortcuts are not supposed to be enabled with a handler that stop propagation to the document. Both solutions seems equally elegant to me, but I am not an expert :o) Eric On Mon, Dec 15, 2008 at 2

  1   2   >