prototype-scriptaculous@googlegroups.com

2010-03-24 Thread tailangong
Nobody encountered this issue before? No solution? Please help. -- 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 em

[Proto-Scripty] Test if Dom is ready

2010-03-24 Thread John
I am using document.observe("dom:loaded", function() { ... }); to hook into the dom loaded event, but I'm finding that if the dom loaded event has already fired my code is not executed. So I want to test if the dom is already loaded so I know whether it immediately execute or add this observe

[Proto-Scripty] Possible to have Ajax.Updater update a whole page?

2010-03-24 Thread stupakov
Hi all, I'm wondering if there's a way to trick Ajax.Updater to update the whole page rather than a specific element. Basically I'd like to update the entire page in case of "success" or an element in case of "failure" I can't use Ajax.Request since the client doesn't know if it will be rendering a

[Proto-Scripty] Re: Extending the Ajax.Request object

2010-03-24 Thread T.J. Crowder
Hi, Again, why not just create a minimum failing test case? Start here[1], add your subclass, and if it breaks post the code. [1] http://proto-scripty.wikidot.com/self-contained-test-page -- T.J. On Mar 23, 4:39 pm, 0m4r wrote: > fixing a typo: > > == > var options = {user: 'myuser', pwd:'mypw

[Proto-Scripty] Re: Scrodicator: a javascript indicator while you scroll through your form or page

2010-03-24 Thread T.J. Crowder
It's a cool idea. Some issues I ran into right away: * FF 3.6 reports that $(document).mousemove is not a function (which, to be fair, it isn't). * IE7 really, *really* freaks out. * The scrolldicators overlap the arrows on the scrollbar, meaning you can't click them (Chrome & FF). That's all I t

[Proto-Scripty] Re: Possible to have Ajax.Updater update a whole page?

2010-03-24 Thread T.J. Crowder
Hi, > I'm wondering if there's a way to trick Ajax.Updater to update the > whole page rather than a specific element. You can tell it to update the `body` element -- that's very nearly the whole page. Just give the body and ID and then give that ID to the updater as its success target. > I can't

[Proto-Scripty] Re: Test if Dom is ready

2010-03-24 Thread T.J. Crowder
Hi, I'd actually like to see Prototype handle this edge case for you, but as far as I know it doesn't. There's an *undocumented* way you can check: The `document.loaded` property. But that's undocumented and so subject to change from dot release to dot release. (Not necessarily a big problem, it

[Proto-Scripty] Strange Response to AjaxRequest (12019)

2010-03-24 Thread ferion
Hello everybody, I'm using a pollertechnic to recieve continuisly updates from a dispatcher. This mostly works fine. In rare occasions I recieve the Status 12019. 12019 ERROR_INTERNET_INCORRECT_HANDLE_STATE The requested operation cannot be carried out because the

Re: [Proto-Scripty] Re: Extending the Ajax.Request object

2010-03-24 Thread Omar Adobati
Hi T.J. I've set up a small minimum failing test here: http://www.adobati.it/test/ I have the same error as described above: == Prototype.emptyFunction is not a function (this.options.onException || Prototype.emptyFunction)(this, exception); == Thanks, Omar On Wed,

[Proto-Scripty] palm pre game and phone gap

2010-03-24 Thread nigeke...@googlemail.com
Hi I've developed a game using GMP game engine, prototype and script.aculo.us for the Palm Pre. It's called Amulet and here's a youtube video link to a demo - http://www.youtube.com/watch?v=-Occo9VdAx8. I've mentioned use of all the frameworks in the store app description and in the in-game credit

[Proto-Scripty] Re: Extending the Ajax.Request object

2010-03-24 Thread T.J. Crowder
Hi, In this code: function click() { var opt = { method: 'get', onCreate: 'create', onLoading: 'loading', onSuccess: 'sucess', onException: 'error' };

[Proto-Scripty] Re: Extending the Ajax.Request object

2010-03-24 Thread 0m4r
Wow, thanks T.J.!! your answer makes a lot of sense.. but, now, how I am supposed to pass a function name instead of a string? I'm sorry if the question sounds stupid to you but I don't know how to achieve this target. Thanks Omar On Mar 24, 12:55 pm, "T.J. Crowder" wrote: > Hi, > > In this cod

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-24 Thread lars_stecken
Hi Green, thanks for the fix. Tested it on IE 7 and the error is gone. However, I noticed that in your sample.html the original input file is not selectable in IE7/8 - neither by mouse nor by tab. Very strange, but it doesn't bother me much. I guess it's more a problem of the cloning... Greets, S

[Proto-Scripty] script.aculo.us Sound and the /i(Phone|Pad|Pod touch)/

2010-03-24 Thread Walter Lee Davis
I just did a quick experiment to make a sound player for a musician friend. While I didn't get the annoying Lego Brick of Flash, I didn't get any sound either. A quick hack showed that I could replace the sound play button with a link like this: button image and the iPhone did the right th

[Proto-Scripty] Re: Extending the Ajax.Request object

2010-03-24 Thread T.J. Crowder
Hi Omar, In the general case, you can reference a function simply by using its name whenever it's "in scope," which is to say, if you could call it. So: function foo() { alert("Hi from foo!"); } function bar(func) { func(); } foo(); bar(foo); ...results in

Re: [Proto-Scripty] Re: Extending the Ajax.Request object

2010-03-24 Thread Omar Adobati
Thanks a lot T.J. I will read your answer carefully later on, but it looks very complete and clear I really appreciate your help. --- Omar Adobati On Wed, Mar 24, 2010 at 15:08, T.J. Crowder wrote: > Hi Omar, > > In the general case, you can reference a function simply by using its > name

prototype-scriptaculous@googlegroups.com

2010-03-24 Thread Pranav
Taking a wild guess here, but are you printing "u1" instead of "ul" (The number 1 instead of the lowercase L)? On Mar 24, 2:41 am, tailangong wrote: > Nobody encountered this issue before? No solution? > Please help. -- You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Carousel effects

2010-03-24 Thread Ralph Brickley
Hello all!! I'm trying to create a carousel script and am stumbling. Basically I have a div with overflow:hidden and a ul inside with my sized slides. When you click next or previous I do $$('.slide').each ( function(e) { new Effect.Move(e, { x:-250 } ); }); This is paraphr

Re: [Proto-Scripty] Carousel effects

2010-03-24 Thread Walter Lee Davis
The way I have seen this trick done before is you put a copy of the first slide at the end. Then when you get to the furthest right move, you set the x back to 0. You do this without any transition time, and nobody notices a thing. So if you have slides: [ 1 ] [ 2 ] [ 3 ] [ 4 ] In your se

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-24 Thread lars_stecken
I actually thought that the copied input box was the one at the bottom, but now I figured it's the one on top of the sample file. So it's the copied input field which is not accessible. Also, it doesn't make a difference if you call pMask() a second time after copying - the effect is the same. Chee

Re: [Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-24 Thread green
Yes there is a problem with IE that copied input is not accessible. I use clone(true) to copy the div including label and input, and then insert the div at top of the form. This problem is not relevant to pMask() actually, so calling new pMask() is not the root cause of the problem. calling new pM

Re: [Proto-Scripty] Test if Dom is ready

2010-03-24 Thread Jeffrey Peck
Put this in the document head and it should work every time. I have never had a problem with dom:loaded, and it just so happens that I always put it in the . If I had to guess, that's the issue. - Jeff On Mar 23, 2010, at 12:40 PM, John wrote: I am using document.observe("dom:loaded", f