Re: [Proto-Scripty] Re: event on leaving page

2011-03-10 Thread Walter Lee Davis
On Mar 10, 2011, at 2:25 AM, T.J. Crowder wrote: What you can do in those functions is severely limited by modern browsers (for all the good reasons you can think of). You can't open new windows, do alerts/confirms Thanks. This is the part I was remembering -- someone wanted an Are You

[Proto-Scripty] Ajax upload

2011-03-10 Thread Keith
I am new to prototype JS library feature. I want to implement ajax upload feature in my web application. For that, 1) I wrote a servlet which copies the file to a particular folder in server. 2) HTML form, I have a upload control and a Button which fires an ajax request. Below is the code on the

[Proto-Scripty] Behavior of Element.select different in 1.7

2011-03-10 Thread Incero
Hi, I'm using the following statement in Prototype 1.6.1 to hide an image: $('MyContainerId').select('img[src=images/icons16/ btn_add.gif]').invoke('hide'); but after updating to 1.7 the select statement returns [] instead if the image object. Is this a problem of 1.7 or have I used the select

[Proto-Scripty] Re: Behavior of Element.select different in 1.7

2011-03-10 Thread T.J. Crowder
Hi, My suspicion is if you change your selector to use $= rather than = (e.g., 'img[src$=images/icons16/btn_add.gif]'), it'll start working again. The $= operator looks for an attribute _ending_ in the given string rather than _equalling_ it.[1] I haven't looked into it, but my guess offhand is

[Proto-Scripty] Re: Behavior of Element.select different in 1.7

2011-03-10 Thread T.J. Crowder
Hi, Sorry, that list should have been: Using 1.6.1 and =, works: http://jsbin.com/ewire5/ Using 1.7 and =, doesn't work: http://jsbin.com/ewire5/2 Using 1.7 and $=, works: http://jsbin.com/ewire5/3 I'm sure everyone figured that out. And this may be of interest: http://jsbin.com/ewire5/4 My

Re: [Proto-Scripty] Ajax upload

2011-03-10 Thread Walter Lee Davis
On Mar 10, 2011, at 9:00 AM, Keith wrote: I am new to prototype JS library feature. I want to implement ajax upload feature in my web application. For that, 1) I wrote a servlet which copies the file to a particular folder in server. 2) HTML form, I have a upload control and a Button which

[Proto-Scripty] Re: Effect.blindUp Disappears at End

2011-03-10 Thread Hook
No one ... -- Jonathan On Mar 8, 9:55 am, Jonathan Rosenberg j...@tabbysplace.org wrote: I am using Effect.blindUp like so:            Effect.BlindUp('linda', {duration: 4, scaleTo: 50, scaleContent: false, scaleMode: 'box' }); I was hoping the div would be visible at 50% when done, but it

Re: [Proto-Scripty] Re: Effect.blindUp Disappears at End

2011-03-10 Thread Walter Lee Davis
The final step in any of the hiding Effects is to use Prototype hide() on the event, removing it from view with display:none. You might want to try Effect.Morph instead. Walter On Mar 10, 2011, at 11:04 AM, Hook wrote: No one ... -- Jonathan On Mar 8, 9:55 am, Jonathan Rosenberg

[Proto-Scripty] Re: event on leaving page

2011-03-10 Thread joe t.
One note on TJ's post, hopefully helpful: You cannot CANCEL the unload event. If i understand them correctly, load and unload are the only native events that can't be canceled from scripts. You can perform other actions, but unload means the browser has been committed to unloading that page,

Re: [Proto-Scripty] Re: Effect.blindUp Disappears at End

2011-03-10 Thread Jonathan Rosenberg
Thanks for the explanation. __ JR On Mar 10, 2011 12:52 PM, Walter Lee Davis wa...@wdstudio.com wrote: The final step in any of the hiding Effects is to use Prototype hide() on the event, removing it from view with display:none. You might want to try Effect.Morph instead. Walter On Mar