[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(//g,'>').replace(/&/g,'&'); I read here

[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 mess

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

2011-12-19 Thread Eric
but it is possible using menu options to change 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 wrote: > Unless you're getting paid by the hour, you loose nothing by temporarily > tr

[Proto-Scripty] Re: decisions decisions -- json - ajax - html and dom kungfu

2011-11-11 Thread Eric
sting table or options into an existing select tag for example are known to cause issues). Like Richard said, templates are a good choice here too if your data are often formatted in the same way. Eric -- You received this message because you are subscribed to the Google Groups "Prototype &

[Proto-Scripty] Re: newb questions

2011-11-11 Thread Eric
e you've posted somewhere some information about this PHP Rails-lite clone of yours? I don't really need it but I am curious to see what this looks like :o) Eric > > Walter > > On Nov 3, 2011, at 5:30 PM, joelbrave wrote: > > > > > > > > > Are there any e

[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
ore team, so any of those books should do the thing. Eric On Oct 1, 7:10 pm, Marty Amberg 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 e

[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" wrote: > When I download my json string, I ru

[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 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 messag

[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 receive

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

2011-08-24 Thread Eric
my plugin classes a static method which do the selection and DOM update, so you can give an array of class objects to your DOM init and invoke it. Eric On Aug 23, 10:04 am, Johan Arensman wrote: > Hey guys, > > I'm redesigning a template set for different kind of websites. In the pas

[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 wrote: > I would use a small PHP script (assuming the first line is the field > names) > > $fields = array(); > $data = array(); > $fh = fopen($filename);

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

2011-07-20 Thread Eric
/table.html Also 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 a

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

2011-07-12 Thread Eric
s: {'whatever':'is needed here'}, onSuccess: function () {...}, onMyPrivateAppStatusUserDidSomethingWrong: function() {...}, onMyPrivateAppStatusMalformedJSON: function() {...} }); Eric On Jul 7, 2:27 pm, Walter Lee Davis wrote: > On Jul 7, 2011, at 8:21 AM, T.J. Cro

[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" wrote: > H

[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 wrote: > On Jun 6, 2011, at 9:26 AM, Eric wrote: > > > I did try it on Chrome on Windows with success: >

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

2011-06-06 Thread Eric
tried on Android 2.3.4's native browser (Chrome Mobile, no idea of the version number) but the scrollbar is missing, so no way to know if the property is supported. It also works on Linux/Firefox3.5.7 Eric On Jun 3, 5:55 pm, Walter Davis wrote: > On Jun 3, 2011, at 11:21 AM, Er

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

2011-06-06 Thread Eric
: Eric On Jun 4, 11:15 am, Johan Arensman wrote: > You can use basic Json, but this is basic javascript, not specific for > prototype > > { >  cars: [ >   { >     make: 'some make name', >     models: [ >       { name: 'model 1' }, >       {

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

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

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

2011-06-01 Thread Eric
create() 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. > > > Gr

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

2011-06-01 Thread Eric
t. Or you may use yourdiv.scrollTop and yourdiv.scrollLeft 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 e

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

2011-05-31 Thread Eric
By "Ajax call", do you mean an Ajax.Request or an Ajax.Updater ? If you use an Ajax.Request, I am kind of sure you can do anything in your onSuccess, including observing new events. If you use Ajax.Updater which return some embedded

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

2011-05-30 Thread Eric
ve the X/Y 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 

[Proto-Scripty] Re: Unofficial wiki content is invisible

2011-04-13 Thread Eric
Well, this is embarrassing but my RIP addon had an *.wikidot.com rule :o) Thanks for your help! and all my apologizes for my mistake. Eric -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group,

[Proto-Scripty] Unofficial wiki content is invisible

2011-04-12 Thread Eric
past revisions with the same result). I am using FF 3.6.13. Any idea about what is 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 to prototype-scriptaculous@g

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

2011-03-26 Thread Eric Sandeen
r things; for example, how to reload a data source, or how to determine if it was successfully retrieved. I may just be dense and/or bad at javascript, I'm a kernel hacker not a web hacker. So I'm going back and trying to hand-code things with prototype.js again. :) -Eric > Walter

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

2011-03-26 Thread Eric Sandeen
js doesn't help, 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 usi

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

2011-03-25 Thread Eric
. I'll admit to being a total noob at this, but I can't tell what's gone wrong here. Thanks, -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 prototyp

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

2011-03-22 Thread Eric
Ways to go before we get something as universal on mobile internet than prototype.js on "immobile internet" :o) Eric On Feb 28, 9:26 am, "Benedikt.Rothe" wrote: > > It has support for touch events -http://scripty2.com/demos/touch/ > > This is very interesting. I d

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

2011-01-19 Thread Eric
f draggable item - show X div (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

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

2010-11-19 Thread Eric
ot; step in scriptaculous's drag'n drop? I've spend more than 3 hours trying 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&

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

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

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

2010-11-04 Thread Eric
orking? The Prototype 1.6 Complete API 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.ac

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

2010-10-29 Thread Eric
won't need to click a second time. Also 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, i

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

2010-10-25 Thread Eric
event.stop(); } ); T.J.'s blog has many very well written articles that will explain you why (http://blog.niftysnippets.org/search/label/closures). Eric On Oct 22, 8:47 pm, JoJo wrote: > Thanks T.J. > > The solution is: > > dynamicAnchor = new Element( >

[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

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

2010-10-21 Thread Eric
tting 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 wrote: > I found out what was causing the issue. In my AJAX to add the comment > I had: > > o

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

2010-10-19 Thread Eric
on the mousedown instead of the mouseover? It will save lots 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

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

2010-10-11 Thread Eric
beta is not yet officially 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

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

2010-09-24 Thread Eric Anderson
On Aug 27, 5:43 am, Johan Arensman 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 or configuratio

[Proto-Scripty] Re: Prototype return limited

2010-09-21 Thread Eric
I 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:

[Proto-Scripty] Re: Prototype return limited

2010-09-02 Thread Eric
I am returning on regular basis several hundred of K by Ajax, and I've never had this kind of issue. What do you mean by "It fails"? Can you see with firebug or some other debugger what is returned? Eric On Sep 1, 3:35 am, chrysanthe m wrote: > Hello > I am making a ajax

[Proto-Scripty] 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 you are

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

2010-08-18 Thread Eric
se can be seen as a "no go" for many persons. > FYI, complete API references now available on the site 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 o

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

2010-08-18 Thread Eric
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 wrote: > On Aug 13, 6:43 pm, "chad.go

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

2010-08-12 Thread Eric
rn before changing the location because I think the target attribute will fix the issue[2], but feel free 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,

[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:

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

2010-08-12 Thread Eric
t the resources websites, but perhaps a page where contributors can list their add-ons, a quick resume and a link could help). , Eric On Aug 11, 3:17 pm, Blaine wrote: > Thanks T.J.  I've used Scripteka before... that's where I've found > most of the Prototype widgets that I use,

[Proto-Scripty] Re: $$()

2010-08-04 Thread Eric
rks as we think it should (returning null or undefined when 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, s

[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 wrote: > Using the latest Prototype and Scriptaculous scripts hereto (July, > 2010) I am getting this error in IE 8: > > "Th

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

2010-08-04 Thread Eric
, point phone's 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 wrote: > Hi. > > I'm developing a tiny little web page app which allo

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

2010-08-04 Thread Eric
also supported by android phones (but not the gesture* ones). If you use them, I am curious to know if prototype handle them right (I didn't have time to play with them yet :o) ) Eric On Jul 29, 1:41 pm, Richard Quadling wrote: > Hi. > > I'm developing a tiny little web page

[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 wrote: > Hi there, > > I'm using a login based on prototyp

[Proto-Scripty] Re: Passing Variables to Functions in addEventListener Within a Class

2010-08-04 Thread Eric
ne case where bindAsEventListener() is actually needed? (or perhaps I am all wrong again :o) ). Eric > > function myFunction(event, param){... > > but in your case, simply binding to "this" will allow you to reference > the instance's ID and all other properties

[Proto-Scripty] Re: referencing div when class event triggered.

2010-08-04 Thread Eric
y consider observing the whole document instead of each single one. It will have some benefits like: - only one event handler - will work on div added to the dom after the event handler has been created - (probably) less memory leaks in IE6 :o) Eric On Jul 14, 8:01 pm, "Dr. Underhook"

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

2010-08-04 Thread Eric
indow Eric On Jul 13, 11:15 am, ColinFine wrote: > On Jul 12, 5:31 am, Hari 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 cal

[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 wrote: > There should be a before or a conditional parameter you can pass. That > returns true to continue or false to not send the request.

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

2010-06-25 Thread Eric
should prevent other 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 unti

[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 wrote: > Hi- > >

[Proto-Scripty] Re: "Proper" error handling

2010-06-23 Thread Eric
n. I once 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." wrote: > Oh thank god

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

2010-06-01 Thread Eric
your 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,

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

2010-05-25 Thread Eric
the original div's id). 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.c

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

2010-04-13 Thread Eric
element))) return; return 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

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

2010-04-13 Thread Eric
On Apr 12, 7:04 pm, "T.J. Crowder" 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? Something like (u

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

2010-04-13 Thread Eric
nstead of an empty string (which would be equivalent to false). Eric On Apr 12, 9:35 pm, Rüdiger Plantiko wrote: > Hi TJ, > > > > I get the number 4711 in IE with $("test").innerText and in FF with $ > > > ("test").textContent - does Prototype provide a br

[Proto-Scripty] Re: Class Inheritance from Element

2010-04-12 Thread Eric
initialize: function() {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'v

[Proto-Scripty] Re: The Unofficial Wiki

2010-04-12 Thread Eric
and some of the tips) 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" wrote: > Hi

[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 wrote: > So if you had a hash of N length and you wanted to end up with a hash   > with

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

2010-03-31 Thread Eric
oad 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

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

2010-03-11 Thread Eric Wilson
does oncomplete fire? On Mar 10, 4:31 pm, JoJo 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 doesn't respond at

[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 po

[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" i

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

2010-03-05 Thread Eric
city value before calling the effect. Eric On Mar 5, 9:44 am, "T.J. Crowder" 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, &

[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 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

[Proto-Scripty] Re: How would I get a closer set of siblings?

2010-03-05 Thread Eric
processing functions couldn't you just change your DOM structure to optimize whatever processing you need to do with them. In your case, adding a DIV around each "H3-P-P-P..." sequence would do the trick. Alex: Very nice implementation! Eric On Feb 23, 6:20 pm, Walter Lee Davis wrote: >

[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, Радослав Станков wrote: > There isn't PeriodicalExecuter#start method its > PeriodicalExecuter#registerCallback > > You can do: > > > x.stop(); >

[Proto-Scripty] Re: callback decoration

2009-12-17 Thread Eric
;CB:"+xr.responseText); } }); You can 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

[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 wrote: > BTW, what is the tag to format code on this group?

[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 wrote: > I'm sorry, I made some typos. This is co

[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 wrote: > Hi Eric, > > do you try to reset the element style property for background-

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

2009-12-04 Thread Eric
lor: 'none'});}}); new Effect.Highlight(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 G

[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

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

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

[Proto-Scripty] Re: Prototype.jExtension

2009-11-13 Thread Eric
Hi Jacopo, On Nov 12, 4:29 pm, jacoz 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

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

2009-11-13 Thread Eric
for the server 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 wrote: > I'm using docu

[Proto-Scripty] Re: Prototype.jExtension

2009-11-12 Thread Eric
ip() != '' } : Prototype.K);} The procedure to submit contributions 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.

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

2009-10-29 Thread Eric
wLeft, y:0, 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 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
POST['varaible_2']; if (get_magic_quotes_gpc()) { $posted = stripslashes($posted); } HTH, Eric On Oct 17, 8:12 pm, "Alex McAuley" wrote: > it sends a json object to the server which you remove the slashes and > decode - > > example in php > &g

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

2009-10-20 Thread Eric
ents (don't forget to extend the element at the beginning of your method, and to return 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

[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
s would actually allow 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

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

2009-10-09 Thread Eric
code and the desktop version code it will not use. - If you do the point above, 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 wrote: > I can&

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

2009-10-06 Thread Eric
, your list will list 'B' and 'D' (and will post respectively 'A' and 'C' if you select them). Simple workaround is to explicitly specify the value of the option, like this: [['AB','AB'],['CD','CD']] Thanks for any hint a

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

2009-08-19 Thread Eric
u 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 me

[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 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 use

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

2009-08-14 Thread Eric
ear"! Another interesting thing in IE6 is that if the IPE reacts only when mouse is on the actual text, the highlight effect is performed on the actual div/span/td, which fills the whole table's cell... I cannot think to something else to try... If someone has an idea about how to make th

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

2009-08-12 Thread Eric
olete 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) Th

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

2009-08-11 Thread Eric
bject,MyClass.prototype) 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. T

[Proto-Scripty] Ajax.Responders issues

2009-08-05 Thread Eric
}).wrap(ResponderOnSuccess) }); Last minute idea I just had while writing: Do you think I could use the onCreate's responder to change the onSuccess by the wrapped version? Thanks for any hint, Eric --~--~-~--~~~---~--~~ You received this message b

  1   2   >