Re: [Proto-Scripty] Any patch/fix available for CVE-2020-27511

2022-06-11 Thread Walter Lee Davis
There is a PR in Github since January 2021 to fix this, but it hasn't made its way through the process yet. The last update was 22 days ago, but I don't know what the timeline will be for this. https://github.com/prototypejs/prototype/pull/349 Walter > On Jun 11, 2022, at 12:56 AM, Vinay Kumar

Re: [Proto-Scripty] End of life ?

2021-09-29 Thread Walter Lee Davis
I don't speak with any authority for either Thomas Fuchs or Andrew Dupont, but both of these projects are effectively out of date. If you look at the latest commit dates on GitHub, you'll see that very little has been added/changed over the past couple of years. I recognize that this is not a re

Re: [Proto-Scripty] Thiking to revive the prototype helpers from Rails 2.3 for Rails 5+

2020-02-29 Thread Walter Lee Davis
I have used Prototype.js in Rails up to 4.2, and it worked well there. Goodies like the sortable list and other Script.aculo.us bits were usable there as well. I didn't try very hard to use them in 5, because by that time I was also working to use Bootstrap, and that was harder to use without jQ

Re: [Proto-Scripty] Ajax problem

2019-06-24 Thread Walter Lee Davis
is, as long as it's one line. I generally substitute /[\n\r]+/ with ' '. Walter > >> On 23 Jun 2019, at 16:09, Walter Lee Davis wrote: >> >> One of the best ways to work this out is to build a cut-down example, in one >> page, that tries to do what you'

Re: [Proto-Scripty] Ajax problem

2019-06-23 Thread Walter Lee Davis
Sorry, typo here: > On Jun 23, 2019, at 11:09 AM, Walter Lee Davis wrote: > > If #parent_element_id is a , then the HTML you get from > /server/url?foo=bar should be: I meant, if the parent element is a . Walter -- You received this message because you are subscribed to the G

Re: [Proto-Scripty] Ajax problem

2019-06-23 Thread Walter Lee Davis
One of the best ways to work this out is to build a cut-down example, in one page, that tries to do what you're after here. If you can get that to fail, post it as a Gist or similar. From your description, you're going about things the right way. One other piece of advice. Rather than using a n

Re: [Proto-Scripty] problem with Prototye and linux/apache2, php

2019-01-24 Thread Walter Lee Davis
Can you try adding a debug page in your web root? Something like . Name that debug.php and visit it in a browser. See if it loads as php, and if it does, see if it runs as php. It sounds to me as though your apache server is not currently configured to use mod_php and interpret the code. Walter

Re: [Proto-Scripty] document.write() warnings from Chrome with scriptaculous

2018-03-05 Thread Walter Lee Davis
> On Mar 5, 2018, at 4:21 PM, Steevithak wrote: > > I'm doing some maintenance on an older site that was developed using > something called prototype.js and scriptaculous. The scriptaculous website > pointed me to this Google group for support. > > When pages load I see lots of warnings from

Re: [Proto-Scripty] Image dropping to canvas is not working properly

2016-07-06 Thread Walter Lee Davis
> On Jul 6, 2016, at 3:32 AM, Manjula Asirwatham > wrote: > > Hi, > > We have an site www.rightgifting.com which customer can create personalized > gifts. we use fabric JS to do the design of the products. But when the > customer crop the image is doesn't fall to canvas at first attempt. if

Re: [Proto-Scripty] help me with prototype ajax .. request are slow

2016-06-12 Thread Walter Lee Davis
7:47 PM, Mahdi Farhat wrote: > > i have sent you an email on > > wal**@wdstudio.com > please reply > > > On Saturday, June 11, 2016 at 9:28:59 PM UTC+3, Walter Lee Davis wrote: > I'm watching it in the Network pane of Safari Web Inspector. It's running at &

Re: [Proto-Scripty] help me with prototype ajax .. request are slow

2016-06-11 Thread Walter Lee Davis
.com > > On Saturday, June 11, 2016 at 5:52:02 PM UTC+3, Walter Lee Davis wrote: > > > On Jun 10, 2016, at 10:40 AM, Mahdi Farhat wrote: > > > > i asked a developer to develop me a a penny auction script but the request > > are slow , 300 ms on local machi

Re: [Proto-Scripty] help me with prototype ajax .. request are slow

2016-06-11 Thread Walter Lee Davis
> On Jun 10, 2016, at 10:40 AM, Mahdi Farhat wrote: > > i asked a developer to develop me a a penny auction script but the request > are slow , 300 ms on local machine and 600ms on server > can i know why? can you help me? is the code not optimized? Where are you measuring these times? Is th

Re: [Proto-Scripty] Does prototype.js support any design pattern?

2015-11-09 Thread Walter Lee Davis
On Nov 9, 2015, at 2:01 AM, Amit Dwivedi wrote: > Hi, > As far as i know, prototype.js is a framework based on OO(correct me if i m > wrong). we can write a new class in java script which can extend the behavior > of existing one. My question is...Is it support some sort of Design Pattern > (

Re: [Proto-Scripty] Change $ to $p or $proto in prototype.js

2015-10-22 Thread Walter Lee Davis
The framework doesn't provide any tools to enable that, but you could fork it and do that I suppose. You may have a larger issue because Prototype extends the prototype (small p) of a lot of different parts of the JavaScript language, and some of these changes mean that sloppily-written code wil

Re: [Proto-Scripty] active elements

2014-09-03 Thread Walter Lee Davis
http://jsfiddle.com is free for anyone to use. One of the benefits of making a cut-down example is that often, in the process of making a failing example, you'll uncover the previously unrelated reason for the failure. Walter On Sep 3, 2014, at 4:15 AM, Иван Иванов wrote: > Unfortunately I do

Re: [Proto-Scripty] active elements

2014-08-28 Thread Walter Lee Davis
Can you post a link to a page or fiddle that shows the problem in situ? Walter On Aug 28, 2014, at 4:18 AM, Иван Иванов wrote: > Yes, I tried. Nothing changed. > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To unsubs

Re: [Proto-Scripty] Event.observe

2014-07-14 Thread Walter Lee Davis
Assuming that you put

Re: [Proto-Scripty] Math.Random & Eval usage in prototype.js

2014-07-03 Thread Walter Lee Davis
On Jul 3, 2014, at 6:13 AM, Mahendran Pandian wrote: > Hi Team, >we are using prototype.js for past 8 years in our product development, > Recently our organization introduced code scanner(HP Fortify) to verify any > code vulnerable in the product. The scanner identified as > prototype.js&s

[Proto-Scripty] What's the difference between fire() and whatever turbo links does?

2014-06-01 Thread Walter Lee Davis
I'm trying to observe the page:load event "fired" by turbo links, and it's not working for me. When the body is replaced by turbo links in Rails 4.1, it's supposed to fire the page:load event at the very end. But this works: document.addEventListener('page:load', decorate_markdown); while this:

Re: [Proto-Scripty] Is there any way to cancel an Ajax request once it's been issued?

2014-04-15 Thread Walter Lee Davis
t still continue to process the request and the > abort() might only kill the callbacks but not the process in the server. > > > > Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com > > > On Tue, Apr 15, 2014 at 6:13 PM, Walter Lee Davis wrote: > I've looke

[Proto-Scripty] Is there any way to cancel an Ajax request once it's been issued?

2014-04-15 Thread Walter Lee Davis
I've looked through the API a couple of different times, and I can't see a way to do that. I've tried assigning a variable to it: var foo = new Ajax.Request() but re-assigning foo to point to a different request doesn't stop the first one -- it carries on like it was still there, and ch

Re: [Proto-Scripty] simple logging in website with Prototype

2014-01-30 Thread Walter Lee Davis
Where would these credentials be stored? That's the key to your problem. Setting the value is trivial with $('elementID').setValue('whatever'); Walter On Jan 30, 2014, at 5:51 AM, Tommaso Ferrara wrote: > Hi, I would like to use Prototype to make a logging (for example, to email > Yahoo "https

Re: [Proto-Scripty] Autocompleter and IE11

2014-01-07 Thread Walter Lee Davis
ng element, and since the behavior of Scripty's AC widget is to interpret a click anywhere but "on" itself as a signal to close the overlay, that's what happens. I forget how I worked around that years ago when I first encountered it in FF. Walter > > > > On Monday,

Re: [Proto-Scripty] Autocompleter and IE11

2014-01-06 Thread Walter Lee Davis
Here's a replacement I wrote a while back. It's mostly a drop-in replacement for the one in Scriptaculous, although it probably lacks some of the fit and polish of the original. It doesn't suffer from the scrolling issue because it doesn't provide a scrollbar. You may want to experiment with tha

[Proto-Scripty] Show of hands

2014-01-03 Thread Walter Lee Davis
It's been mighty quiet here, and I'm wondering if everyone just knows how to use Prototype, and doesn't have any questions, or if you've all defected to the Dark Side. Happy New Year, Walter -- You received this message because you are subscribed to the Google Groups "Prototype & script.acul

Re: [Proto-Scripty] documentation server down???

2013-11-06 Thread Walter Lee Davis
Documentation is back! Walter On Nov 6, 2013, at 2:41 PM, Walter Lee Davis wrote: > I reached out to Sam Stephenson via Twitter, he has opened a ticket with > Rackspace to fix this. > > Walter > > On Nov 6, 2013, at 12:25 PM, Walter Lee Davis wrote: > >> Apparentl

Re: [Proto-Scripty] documentation server down???

2013-11-06 Thread Walter Lee Davis
I reached out to Sam Stephenson via Twitter, he has opened a ticket with Rackspace to fix this. Walter On Nov 6, 2013, at 12:25 PM, Walter Lee Davis wrote: > Apparently. > > Walter > > On Nov 6, 2013, at 12:09 PM, Worth Lutz wrote: > >> I cannot get to : ht

Re: [Proto-Scripty] documentation server down???

2013-11-06 Thread Walter Lee Davis
Apparently. Walter On Nov 6, 2013, at 12:09 PM, Worth Lutz wrote: > I cannot get to : http://api.prototypejs.org/ > > Is the server down? > > Worth Luz > > -- > You received this message because you are subscribed to the Google Groups > "Prototype &script.aculo.us" group. > To unsubscri

Re: [Proto-Scripty] Can someone point me in the right direction. - Prototype Layer Slider Gallery

2013-09-23 Thread Walter Lee Davis
I don't know of any that do precisely this, but it should not be too hard to write using Scriptaculous's Effect.Morph and Effect.Parallel. Walter On Sep 23, 2013, at 6:22 PM, Jonathan Culley wrote: > Hi there, > I am converting a site to Magento, which relies heavily on Prototype. We are > u

Re: [Proto-Scripty] Error: Support for eval(code, scopeObject) has been removed. Use |with (scopeObject) eval(code);| instead.

2013-08-27 Thread Walter Lee Davis
:27 AM, javi68yt2 wrote: > Hi > You are right again! > > I've attached an example like you suggested > and I couldn't reproduce the error... > > I'll do wider test... > Thank you very, very much !! > > El lunes, 26 de agosto de 2013 16:01:34 UTC+2

Re: [Proto-Scripty] Error: Support for eval(code, scopeObject) has been removed. Use |with (scopeObject) eval(code);| instead.

2013-08-26 Thread Walter Lee Davis
On Aug 26, 2013, at 5:40 AM, javi68yt2 wrote: > > Thanks for your kind reply. Maybe you're right. > I've checked my code and I ascertained that only the first click fails, the > following are good. > > Here is an example: > > echo " class='Inventario2_fontBlueBold' colspan=2> src='/MODULOS/In

Re: [Proto-Scripty] Error: Support for eval(code, scopeObject) has been removed. Use |with (scopeObject) eval(code);| instead.

2013-08-23 Thread Walter Lee Davis
Can you show an example where this fails? I just used this feature with 1.7.1, and you had me scared, so I just double-checked on the latest Firefox. I don't see any errors coming from evalScripts() there. Perhaps the issue is the type of function you are evaluating? Perhaps there is another lev

Re: [Proto-Scripty] Scroll not working on mobile devices

2013-08-23 Thread Walter Lee Davis
Oh, I see. Yes, the Scriptaculous Control.Scrollbar does not respond to touch events. You have a couple of options. First, you could extend that control to map touchStart and touchEnd at different coordinates to be same as mouseDown and mouseUp at different coordinates. This is going to be fus

Re: [Proto-Scripty] ajax call

2013-07-22 Thread Walter Lee Davis
If you are creating the form in the page after it loads, the observer has to be created after the form, in order to bind to that DOM object. The way around this is to use the on() function to register a deferred listener. I am on my phone, so I can't test this, but try this: document.on('submit

Re: [Proto-Scripty] addClassName and removeClassName don´t work

2013-07-17 Thread Walter Lee Davis
Wow. I wonder why it just this minute came up for moderation? That's Google Groups for you... Walter On Jul 17, 2013, at 4:12 PM, Jansen Nunes wrote: > Hi > > My post is older(2010) and my project is finished now. > Tks for all. > > Regards > > > 2013/7/17 W

Re: [Proto-Scripty] addClassName and removeClassName don´t work

2013-07-17 Thread Walter Lee Davis
I On Jul 17, 2013, at 3:37 PM, Joseph Lust wrote: > Ran into this issue on Prototype 1.5.1 and IE8. Is there a specific reason you are using such an old (years!) version of Prototype? 1.7.1 is current, and even it is getting a little long in the tooth. > > The error is in the array without() f

Re: [Proto-Scripty] Prototype & Slider not sliding in IE8, 9 and 10

2013-06-20 Thread Walter Lee Davis
Looking at your code, I can think of a much simpler way to construct this form than using the slider control: http://scripty.walterdavisstudio.com/color-picker.html The same script could be extended to include your fading tooltips and pretty much all the rest of the UX I see here. It would have

Re: [Proto-Scripty] Date and Time Picker Prototype JavaScript framework, version 1.6.0.2 (c) 2005-2008 Sam Stephenson

2013-06-17 Thread Walter Lee Davis
This list is for the Prototype JavaScript framework, not the Date Time picker itself. Can you post a link to the picker code? Someone here may be able to help you with your specific query. Walter On Jun 17, 2013, at 6:16 AM, Carmela Ward wrote: > I want to stop future time selection when a use

Re: [Proto-Scripty] Uhh... is this a bug?

2013-06-09 Thread Walter Lee Davis
On Jun 9, 2013, at 12:59 PM, Phil Petree wrote: > This just seems really, really odd... THATS where they decide to draw the > line? LOL I believe this architectural decision was made at a time in history when introspecting the CSS cascade to discover if an element was actually visible at the

Re: [Proto-Scripty] Uhh... is this a bug?

2013-06-09 Thread Walter Lee Davis
On Jun 9, 2013, at 12:43 PM, Phil Petree wrote: > show()/hide() > > Set the style inline with style="display:none" and show/hide works but set > the style in css and all of a sudden it doesn't work. > > http://jsfiddle.net/ppetree/pA5eN/ > This is long-standing well-documented behavior. On

Re: [Proto-Scripty] Function.bind() performance vs native

2013-06-03 Thread Walter Lee Davis
I believe that the plan all along w/r/t these new JS-core features has been to prefer the native implementation where available and compatible, and leave the Prototype method as a polyfill for older browsers. I don't believe that Prototype currently behaves this way, but the last time I heard an

Re: [Proto-Scripty] Help system

2013-05-30 Thread Walter Lee Davis
I think you could make the whole thing pretty simply. Rather than creating a separate handler (with each()) for each .help element, you could wrap the entire thing in one "on" handler, which you would not need to customize per page or worry about dom:loaded or anything: document.on('click', '.h

Re: [Proto-Scripty] Help system

2013-05-30 Thread Walter Lee Davis
This would be pretty easy to do. Prototype gives you lots of tools to make this possible, the bulk of this effort would probably go into the CSS to style your tooltips. On May 30, 2013, at 11:30 AM, Phil Petree wrote: > Has anyone developed an inline help system? Am I barking up the wrong tree

Re: [Proto-Scripty] finding all tr's within a div

2013-05-17 Thread Walter Lee Davis
On May 17, 2013, at 12:19 PM, Phil Petree wrote: > I'm expanding the table row highlighting ya'll helped me with before. Now I > have two tables on a page and each table has rows that I want to highlight on > mouseover. > > Can't give the tables the same id so what I was doing was creating a

Re: [Proto-Scripty] Draggables inside div with overflow:scroll

2013-05-07 Thread Walter Lee Davis
On May 7, 2013, at 7:30 AM, ayson...@gmail.com wrote: > I have created two divs. One is for draggable objects. Another for the area > where they should be dropped. > The both divs should have the same height and if there are large number of > draggables to have scrollbar. > > When I add overfl

Re: [Proto-Scripty] Newbie using Ajax.Request to perl script - script works but continues to return 500 status

2013-04-30 Thread Walter Lee Davis
On Apr 30, 2013, at 3:02 PM, joz...@sonic.net wrote: > Hello to all, > > This is my code and the call does complete and the back end perl script > updates the database but I continue to get a onFailure - not sure how to > troubleshoot this. I have changed method to post and it works for a bi

Re: [Proto-Scripty] Prototype in no conflict mode

2013-04-29 Thread Walter Lee Davis
; > > On 29 April 2013 17:28, Walter Lee Davis wrote: >> >> >> On Apr 29, 2013, at 9:22 AM, Alastair Young wrote: >> >>> I can't modify the HTML - I fear my only solution is port all my code to >>> jQuery >> >> Before you

Re: [Proto-Scripty] Prototype in no conflict mode

2013-04-29 Thread Walter Lee Davis
cter, like the underscore, for $. Do the same in a fork of your code. See if that does anything useful. It may. Walter > > On 29 April 2013 17:05, Walter Lee Davis wrote: >> >> >> On Apr 29, 2013, at 8:54 AM, Alastair Young wrote: >> >>> I need to mo

Re: [Proto-Scripty] Prototype in no conflict mode

2013-04-29 Thread Walter Lee Davis
On Apr 29, 2013, at 8:54 AM, Alastair Young wrote: > I need to move my code (Prototype 1.7.1) into someone else's much larger > project using jQuery v1.5.1. > > Can I load Prototype in no-conflict mode ? I can't change any of the jQuery > stuff. Not as far as I know. The issue as I understa

Re: [Proto-Scripty] "Unterminated string constant" whens tring contains a trailing dot

2013-04-25 Thread Walter Lee Davis
On Apr 22, 2013, at 3:04 AM, Cardinal wrote: > Unfortunately i can't provide a live demo as i am talking about a plugin for > Novell / NetIQs iManager. > > Attached please find the SelectEntity.jsp file and some of its includes. > Try this: get into the browser where you see the problem on a

Re: [Proto-Scripty] "Unterminated string constant" whens tring contains a trailing dot

2013-04-20 Thread Walter Lee Davis
Just read this part. Please try to make a cut-down example in a static page that duplicates the error. Often this exercise will either bring dependencies/alternate causes to light, or it will force you to think through the problem in a new way. Walter On Apr 20, 2013, at 6:19 AM, Cardinal wrot

Re: [Proto-Scripty] "Unterminated string constant" whens tring contains a trailing dot

2013-04-20 Thread Walter Lee Davis
On Apr 20, 2013, at 6:19 AM, Cardinal wrote: > Hi all, > when i'm including prototype into a JSP, IE throws the error "Unterminated > string constant" when i open a popup window which contains strings with a > trailing dot. > > Basically, it's a list of usernames in the format > > user1.data

Re: [Proto-Scripty] Prototype.Selector is undefined

2013-04-08 Thread Walter Lee Davis
On Apr 8, 2013, at 8:22 AM, m...@travelmarket.com wrote: > Hi guys > > I am getting this error on a project I've inherited from a colleague now on > maternity leave. > > "Prototype.Selector is undefined" > > I have absolutely no clue as to what is causing this and how I go about > debugging

Re: [Proto-Scripty] color swatch selector

2013-03-21 Thread Walter Lee Davis
Here's what I was thinking of: http://scripty.walterdavisstudio.com/color-picker.html Walter On Mar 21, 2013, at 2:40 PM, Walter Lee Davis wrote: > Really? Can you show an example? I don't think the label.swatch itself gets a > :checked pseudo-class, it's the input inside

Re: [Proto-Scripty] color swatch selector

2013-03-21 Thread Walter Lee Davis
Really? Can you show an example? I don't think the label.swatch itself gets a :checked pseudo-class, it's the input inside it that gets checked. While you can find the :checked checkbox, you can't style upward like that to access the parent label (really wish you could). Walter On Mar 21, 2013

Re: [Proto-Scripty] color swatch selector

2013-03-21 Thread Walter Lee Davis
tml?lid=leftnav-menu > > Basically they just put color swatch/squares in a row and allow you to > mouseover to see the effects and a click selects that color. > On Thu, Mar 21, 2013 at 12:05 AM, Walter Lee Davis wrote: > I think you're going to need to update a swatch next

Re: [Proto-Scripty] color swatch selector

2013-03-20 Thread Walter Lee Davis
I think you're going to need to update a swatch next to the picker, maybe. The select is remarkably styling-resistant in Safari, probably Chrome as well. I would absolutely position a little dot off to the left of the select, and update its background color on the change event of the select. Wa

Re: [Proto-Scripty] Error help needed : Prototype is not defined

2013-03-19 Thread Walter Lee Davis
What does your page head look like? Can we see a link? Prototype needs to be linked before scriptaculous in the head of your page, that's what this error puts me in mind of. Walter On Mar 19, 2013, at 2:57 PM, Andy wrote: > Hi all, > > I am having an error with the script. > > ReferenceError

Re: [Proto-Scripty] .morph has stopped working - it now says "Object [object Object] has no method 'morph'"

2013-03-14 Thread Walter Lee Davis
On Mar 14, 2013, at 7:58 AM, Gretsch wrote: > My code used to work, but now the .morph no longer works - in the chrome > console it says: > Uncaught TypeError: Object [object Object] has no method 'morph' > > The code includes the following: > href="https://ajax.googleapis.com/ajax/libs/scri

Re: [Proto-Scripty] AutoComplete

2013-03-14 Thread Walter Lee Davis
cumulativeOffset(this.input).toArray(); > > > #Jason > I have checked Script2 but no Script1, the version 2 of autocomplete don't > like me. > > > 2013/3/13 Walter Lee Davis > What do you see in Firebug or Web Inspector's console? Can you please post an > example sho

Re: [Proto-Scripty] AutoComplete

2013-03-13 Thread Walter Lee Davis
What do you see in Firebug or Web Inspector's console? Can you please post an example showing your work so far? We will be happy to help, but without setting up a demo locally, it's going to be difficult for us to divine exactly where the problem is. Walter On Mar 13, 2013, at 3:18 PM, Miguel

Re: [Proto-Scripty] Element.setValue() doesn't work with the tag

2013-03-06 Thread Walter Lee Davis
You need a polyfill for IE < 10. That's normal for a lot of HTML5 form goodies. Walter On Mar 6, 2013, at 12:54 PM, Phil Petree wrote: > Not sure what you're expecting but under ie 9, neither worked for me... not > even in compatibility mode. > > On Wed, Mar 6, 201

[Proto-Scripty] Element.setValue() doesn't work with the tag

2013-03-06 Thread Walter Lee Davis
Have a fiddle: http://jsfiddle.net/ZYDjc/ Any thoughts? Should I raise a ticket? Thanks, Walter -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Proto-Scripty] Copying border styles: a tale of two browsers

2013-03-02 Thread Walter Lee Davis
happened. It appears as though setStyle({key: val}) is not equivalent to setStyle('key: val') in some cases. Thanks for looking at this, Walter > > Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com > > > On Fri, Mar 1, 2013 at 4:42 PM, Walter Lee Davis w

[Proto-Scripty] Copying border styles: a tale of two browsers

2013-03-01 Thread Walter Lee Davis
Try this example in Safari, Chrome, and Firefox, latest versions. Please let me know what you see. http://scripty.walterdavisstudio.com/copy-style-fail.html Safari gets it right, Firefox and Chrome do not, and I'm baffled. Digging into the issue in Firebug, it appears as though defaultView.get

Re: [Proto-Scripty] scripty inplace editor

2013-01-27 Thread Walter Lee Davis
On Jan 27, 2013, at 4:10 PM, Phil Petree wrote: > Hi All! > > I'm implementing the scriptaculous inplace editor and I have it working > except for one small detail: > > If I activate the editor, click cancel, activate the editor again I get two > inplace editors. cancel those and activate

Re: [Proto-Scripty] Toggle opacity

2013-01-23 Thread Walter Lee Davis
Could you please post your solution? I thought Effect.multiple was for applying different functions to the same element, not the other way round... Walter On Jan 23, 2013, at 11:28 AM, Köd wrote: > Guys! > > It works! I don't know what was wrong with my code before - but I made the > Effect.M

Re: [Proto-Scripty] Toggle opacity

2013-01-23 Thread Walter Lee Davis
On Jan 23, 2013, at 7:48 AM, Köd wrote: > Hi guys > > To get a full view of my problem, please read: > http://stackoverflow.com/questions/14478903/script-aculo-us-toggle-appear-on-multiple-divs > _ > > I have a simple question to ask you: > Is it pos

Re: [Proto-Scripty] Set Opacity with no effect

2013-01-21 Thread Walter Lee Davis
$('myElementId').setOpacity(1); On Jan 21, 2013, at 12:43 PM, kstubs wrote: > Whats the most straightforward means of setting opacity on a layer without > any effects? I just need the layer to be opaque. > > Thanks, > Karl.. > > -- > You received this message because you are subscribed to th

Re: [Proto-Scripty] Ajax CORS error message

2013-01-16 Thread Walter Lee Davis
Maybe you also have to fiddle with the accept header? I've been having the same error for weeks in Safari, and on a straight get request to a CORS-enabled S3 endpoint, returning plain old HTML. Walter On Jan 16, 2013, at 9:20 PM, Dave Lazar wrote: > Indeed I did... to no great effect with the

Re: [Proto-Scripty] I'm missing something , link management with javascript

2013-01-13 Thread Walter Lee Davis
On Jan 13, 2013, at 12:03 PM, tab1ta wrote: > Hello, i'm trying to interface two different scripts, one from this mailing > list and one from here. > > The result is a django template:Here > > http://pastebin.com/LWJbUZ9v > > The problem is that the link: > > > > should show a pop up windo

Re: [Proto-Scripty] event on leaving page

2013-01-10 Thread Walter Lee Davis
If onbeforeunload returns true-ish, the browser will put up a dialog with the results of that true-ish value being cast to a string interpolated inside the standard dialog. There is no need to have confirm in there as well. Try either returning false if all is well, or a string with your message

Re: [Proto-Scripty] multipart/form-data upload via ajax

2013-01-09 Thread Walter Lee Davis
On Jan 9, 2013, at 3:45 PM, Jason Westbrook wrote: > It is possible but you have to realize it will only work on browsers that > have the FileAPI available - Chrome/Firefox/Safari > > > new > Ajax.Request("fileupload.php?filename=myfile",{"postBody":$("inputfield").files[0]}); > > will post

Re: [Proto-Scripty] highlighting a tablerow

2013-01-03 Thread Walter Lee Davis
, only those within > the mail table. For instance if you were in an alternate tab viewing an > email, you wouldn't want a mouseover on the to, from, subject or message > rows. Likewise in the compose tab. > > On Jan 3, 2013 2:27 PM, "Walter Lee Davis" wrote: >

Re: [Proto-Scripty] highlighting a tablerow

2013-01-03 Thread Walter Lee Davis
l tr'); > $('mail').on('mouseover', 'tr', function(evt, elm){ > rows.invoke('removeClassName', 'over'); > elm.addClassName('over'); > }); > $('mail').on('mouseout', 'tr', function(evt,

Re: [Proto-Scripty] highlighting a tablerow

2013-01-03 Thread Walter Lee Davis
On Jan 3, 2013, at 8:59 AM, Phil Petree wrote: > $('mail').on('mouseover', 'tr', function(elm, evt){ My error, the variables are swapped. Make that line this: $('mail').on('mouseover', 'tr', function(evt, elm){ Walter -- You received this message because you are subscribed to the Google Grou

Re: [Proto-Scripty] highlighting a tablerow

2013-01-01 Thread Walter Lee Davis
I usually have to add the color attribute to the td rather than the tr. You can make this change at the CSS level. Rather than using setStyle(), toggle the classname of the row, and then set your CSS to apply to td children of that class of row. For example: var rows = $$('#mytable tr'); $('myt

Re: [Proto-Scripty] Anyone know of a good image scroller?

2012-12-25 Thread Walter Lee Davis
I had some older versions of Prototype/Scriptaculous in there, that'd explain it, since I was looking on Mac OS, and there was no patch needed for those browsers. I've just updated to the latest. Walter On Dec 25, 2012, at 5:55 PM, Phil Petree wrote: > On ie9. > -- You received this message

Re: [Proto-Scripty] Anyone know of a good image scroller?

2012-12-25 Thread Walter Lee Davis
On Dec 25, 2012, at 6:41 AM, Phil Petree wrote: > Thanks for that pointer... but that's still not what I'm looking for (and > Walter, if you're still haning out here, two of those demos are broken). > > I have an ever changing list of product logos (right now 30 and we've not > even launched

Re: [Proto-Scripty] Anyone know of a good image scroller?

2012-12-25 Thread Walter Lee Davis
Which ones? I just tried them here without issue. Walter On Dec 25, 2012, at 6:41 AM, Phil Petree wrote: > and Walter, if you're still haning out here, two of those demos are broken). -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" gr

Re: [Proto-Scripty] mouseout event doesn't work

2012-12-21 Thread Walter Lee Davis
On Dec 21, 2012, at 9:46 AM, tab1ta wrote: > I added an Event listener to the page, to catch every event but it doesn't > work still. The code is more compact: > > require_once("tabs.php"); > ?> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml"; xml

Re: [Proto-Scripty] TypeError: $(...) is null

2012-12-19 Thread Walter Lee Davis
You can fix this two different ways: either move your script block to the bottom of the page (just before /body, as in my example) or add an unobtrusive listener block around your main function. The issue here is that because your script appears before the HTML it applies to, none of the element

Re: [Proto-Scripty] Prototype dom

2012-12-17 Thread Walter Lee Davis
On Dec 17, 2012, at 5:13 AM, Agnese Camellini wrote: > > > 2012/12/17 Walter Lee Davis > > $_POST['id']); ?> > > Call that script page.php and modify the JavaScript as follows: > > > var toggles = $$('.toggle').invoke(

Re: [Proto-Scripty] Prototype dom

2012-12-16 Thread Walter Lee Davis
received. In your more complex example, you could look up the latest news from Yahoo (using PHP, since that doesn't suffer from cross-domain restrictions like JavaScript does) and put that in there instead. Walter > > > 2012/12/16 Walter Lee Davis > > On Dec 16, 2012, at 8:

Re: [Proto-Scripty] Prototype dom

2012-12-16 Thread Walter Lee Davis
On Dec 16, 2012, at 8:59 AM, tab1ta wrote: > Hello. > I'm studying, there is a piece of code i cannot get to work, so i was asking > myself if you can help, given that all the pastebin doesn't accept the > prototype link. Which ones have you tried? JSFiddle has Prototype as one of its many lib

Re: [Proto-Scripty] javascrpt newbie, and studying in an old book, can't make this code work..

2012-12-16 Thread Walter Lee Davis
On Dec 14, 2012, at 5:21 AM, tab1ta wrote: > Hello. i'm just approaching Javascript through an old book. > do you see anything wrong in the funcions listed below? > > > Link Test > > http://joy.indivia.net";>Click me /> > >

Re: [Proto-Scripty] Google+ Group Created

2012-12-14 Thread Walter Lee Davis
ajority of my posts are answers to other people's questions. It's that part of the equation that I fear gets lost in a non-push environment, to the detriment of all. Walter > > On Fri, Dec 14, 2012 at 12:45 PM, Walter Lee Davis wrote: > > On Dec 14, 2012, at 12:16 PM, kstubs

Re: [Proto-Scripty] Google+ Group Created

2012-12-14 Thread Walter Lee Davis
On Dec 14, 2012, at 12:16 PM, kstubs wrote: > Any Google+ users on this forum? I've started a community there called > PrototypeJS. > https://plus.google.com/u/0/communities/117299565971807136426 > > Come join! Serious question: what would the benefit be versus mail? How would you receive

Re: [Proto-Scripty] string variable transform in code

2012-12-02 Thread Walter Lee Davis
Leave the quotes off of the variable when you are setting the value, and you should have it working (assuming that "field" is the ID of an input on your page. It's also safer to use $('field').getValue() or the shortcut $F('field') because that works around some edge cases in older browsers. Wa

Re: [Proto-Scripty] Future of Prototyp.js

2012-12-02 Thread Walter Lee Davis
That's an excellent idea. You should see if Kangax wants to pitch in, since he created Scripteka, and he's still involved a bit in Prototype. Walter On Dec 2, 2012, at 12:32 PM, Jason Westbrook wrote: > > > I'm actually planning on taking whatever is still available on scripteka and > rehost

[Proto-Scripty] Element.wrap instance method appears to fail in Safari 6

2012-11-21 Thread Walter Lee Davis
There's a warning on the API site about IE: Using Element.wrap as an instance method (e.g., $('foo').wrap('p')) causes errors in Internet Explorer when used on textarea elements. The wrap property is reserved ontextarea's as a proprietary extension to HTML. As a workaround, use the generic vers

Re: [Proto-Scripty] "unsafe header" error in Safari

2012-11-19 Thread Walter Lee Davis
Here's my CORS config: http://s3.amazonaws.com/doc/2006-03-01/";> * GET * Walter On Nov 19, 2012, at 11:35 AM, Walter Lee Davis wrote: > I am using Amazon S3, with a cross-domain request allowed there, and am able > to load HTML from a

[Proto-Scripty] "unsafe header" error in Safari

2012-11-19 Thread Walter Lee Davis
I am using Amazon S3, with a cross-domain request allowed there, and am able to load HTML from a static file hosted there into a shell page hosted on my own server using Prototype Ajax.Updater. Recently, I started getting an error in Safari (latest version) of "Refused to get unsafe header 'X-JS

Re: [Proto-Scripty] Event On click behavior with selector

2012-11-03 Thread Walter Lee Davis
On Nov 3, 2012, at 1:51 PM, kstubs wrote: > If I define an on click event for a given css selector did I disable or trap > the default click event? Reason I'm asking is I have a form and I have wired > up a click event for a given input type like this: > > this.form.on('click', 'input[type=ch

Re: [Proto-Scripty] Attach Ajax.Updater to link

2012-10-28 Thread Walter Lee Davis
ewrite it in one place. Walter On Oct 28, 2012, at 5:51 PM, donnek wrote: > On Sunday, 28 October 2012 20:32:34 UTC, Walter Lee Davis wrote: > Okay, that means that 'this' inside the Ajax.Updater is not set to what you > think it is. Try this: > > Much cleaner and fewe

Re: [Proto-Scripty] Attach Ajax.Updater to link

2012-10-28 Thread Walter Lee Davis
word: elm.readAttribute('id') } } ); }); }); Much cleaner and fewer global variables are massacred. Walter On Oct 28, 2012, at 3:23 PM, donnek wrote: > > > On Sunday, 28 October 2012 15:53:37 UTC, Walter Lee Davis wrote: > What does

Re: [Proto-Scripty] Attach Ajax.Updater to link

2012-10-28 Thread Walter Lee Davis
On Oct 28, 2012, at 12:05 PM, donnek wrote: > On Sunday, 28 October 2012 15:53:37 UTC, Walter Lee Davis wrote: > I'm pretty sure your problem is right here. There's no attr() method in > Prototype. Try readAttribute() instead, and you appear to have everything > right

Re: [Proto-Scripty] Attach Ajax.Updater to link

2012-10-28 Thread Walter Lee Davis
On Oct 28, 2012, at 4:15 AM, donnek wrote: > I'm new to Prototype, and I'm trying to use AJAX to update divs inthe > background, pulling data from a database. I've got Ajax.Updater to work with > the output of a form, but I'm having difficulty with adpting it for use with > a link. Basically

Re: [Proto-Scripty] Transparency e Opacity don´t work in IE 8

2012-10-25 Thread Walter Lee Davis
On Oct 24, 2012, at 3:40 PM, JB wrote: > Hi > > I'm using Prototype 1.2 Wow, that's quite old! 1.7.1 is current, and given the pace of development, it too is getting long in the tooth. > And the transparency and opacity not work in ie8 That's your problem right there. You're not using Protot

Re: [Proto-Scripty] Prototype, addClassName on future elements

2012-10-24 Thread Walter Lee Davis
t; Am I doing something wrong? > > On Wed, Oct 24, 2012 at 2:47 PM, Walter Lee Davis wrote: > Okay, then try this (wasteful but should do the job): > > new PeriodicalExecuter(function(){ $$('.foo').invoke('addClassName', 'bar'); > }, 0.3); > &

  1   2   3   4   5   6   7   8   >