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

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

Re: [Proto-Scripty] Ajax problem

2019-06-24 Thread Walter Lee Davis
s 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 after here. If you ca

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

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

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

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

2016-06-12 Thread Walter Lee Davis
hat <mahdyfar...@gmail.com> 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. I

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

2016-06-11 Thread Walter Lee Davis
node.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 <mahdy...@gmail.com> wrote: > > > > i asked a developer to develop me a a penny auction script but the request > > are sl

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

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

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

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 unsubscribe

Re: [Proto-Scripty] Event.observe

2014-07-14 Thread Walter Lee Davis
Assuming that you put script tags around the JavaScript, and include prototype in your page head, it does. One thing you may be overlooking is source code order. If your script tag (containing this handler) occurs in the page head, then the input#login will not exist yet at the time that the

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

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

[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

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

2014-04-15 Thread Walter Lee Davis
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 wa...@wdstudio.com wrote: I've looked through the API a couple of different times, and I can't see a way to do that. I've

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

Re: [Proto-Scripty] Autocompleter and IE11

2014-01-07 Thread Walter Lee Davis
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, January 6, 2014 7:51:48 PM UTC-8, Walter Lee Davis wrote: Here's a replacement I

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

[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

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 unsubscribe from this

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 : http://api.prototypejs.org

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: Apparently. Walter On Nov 6, 2013

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

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

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:

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()

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 Walter Lee Davis wa...@wdstudio.com: I

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

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

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

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] 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',

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 div

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

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 bit

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 alastair.yo...@gmail.com 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

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

2013-04-29 Thread Walter Lee Davis
character, 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 wa...@wdstudio.com wrote: On Apr 29, 2013, at 8:54 AM, Alastair Young alastair.yo...@gmail.com wrote: I need to move

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

2013-04-29 Thread Walter Lee Davis
or not. Walter On 29 April 2013 17:28, Walter Lee Davis wa...@wdstudio.com wrote: On Apr 29, 2013, at 9:22 AM, Alastair Young alastair.yo...@gmail.com wrote: I can't modify the HTML - I fear my only solution is port all my code to jQuery Before you do that, try this. Download a copy

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

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

Re: [Proto-Scripty] color swatch selector

2013-03-21 Thread Walter Lee Davis
-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 wa...@wdstudio.com wrote: I think you're going to need to update a swatch next to the picker, maybe

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,

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 it that gets checked

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.

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] AutoComplete

2013-03-14 Thread Walter Lee Davis
checked Script2 but no Script1, the version 2 of autocomplete don't like me. 2013/3/13 Walter Lee Davis wa...@wdstudio.com 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

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

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

[Proto-Scripty] Element.setValue() doesn't work with the output 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
, 2013 at 4:42 PM, Walter Lee Davis wa...@wdstudio.com wrote: 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

[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

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 again

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 possible

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

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 the

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: a href=#/a should show a pop up

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

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 the contents

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

Re: [Proto-Scripty] highlighting a tablerow

2013-01-03 Thread Walter Lee Davis
('removeClassName', 'over'); elm.addClassName('over'); }); $('mail').on('mouseout', 'tr', function(evt, elm){ rows.invoke('removeClassName', 'over'); }); On Thu, Jan 3, 2013 at 11:25 AM, Walter Lee Davis wa...@wdstudio.com wrote: On Jan 3, 2013, at 8:59 AM, Phil Petree wrote

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');

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

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] 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: ?php require_once(tabs.php); ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

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

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 wa...@wdstudio.com ?php print 'This is DYNAMIC thing ' . preg_replace('/[^\d]+/', '', $_POST['id']); ? Call that script page.php and modify the JavaScript as follows: script type=text/javascript

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? html headtitleLink Test/title /head body a id=mylink href=http://joy.indivia.net;Click me/abr

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

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] Google+ Group Created

2012-12-14 Thread Walter Lee Davis
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 wa...@wdstudio.com wrote: On Dec 14, 2012, at 12:16 PM, kstubs wrote: Any Google+ users on this forum? I've started

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 rehosting

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.

[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

[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

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

2012-11-19 Thread Walter Lee Davis
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 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

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',

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, I

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 besides. Thanks, Walter

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

2012-10-28 Thread Walter Lee Davis
: { word: elm.readAttribute('id') } } ); }); }); /script 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 Firebug say your

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

2012-10-28 Thread Walter Lee Davis
, 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: snip Much cleaner and fewer global variables are massacred. Hey, thanks! Both of those work. But I don't

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 Prototype

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

2012-10-24 Thread Walter Lee Davis
Can you describe what you mean by future elements on the page? Do you mean elements that are later in the source order than the script? If so, that's pretty simple: document.observe('dom:loaded', function(){ $$('div.foo').invoke('addClassName', 'bar'); });

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

2012-10-24 Thread Walter Lee Davis
, Oct 24, 2012 at 1:57 PM, Walter Lee Davis wa...@wdstudio.com wrote: Can you describe what you mean by future elements on the page? Do you mean elements that are later in the source order than the script? If so, that's pretty simple: document.observe('dom:loaded', function

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

2012-10-24 Thread Walter Lee Davis
, Walter Lee Davis wa...@wdstudio.com wrote: You can add this transformation in the onSuccess callback of your Ajax call: new Ajax.Updater('foo', '/get/more/foo', {onSuccess: function(){ $$('.foo').invoke('addClassName', 'bar'); }); As long as you don't have a ton of DOM changes

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

2012-10-24 Thread Walter Lee Davis
PM, Walter Lee Davis wa...@wdstudio.com wrote: Okay, then try this (wasteful but should do the job): new PeriodicalExecuter(function(){ $$('.foo').invoke('addClassName', 'bar'); }, 0.3); There's also an event (not uniformly covered by the browsers) that is fired when a DOM element

Re: [Proto-Scripty] Old 1.6.1 library

2012-10-18 Thread Walter Lee Davis
On Oct 16, 2012, at 5:32 PM, Trik wrote: Hi there, I'm a littlebit confused, i'm not a prototype expert and i would like to solve a problem. I have an old library based on 1.6.1 version. There is a method that make an error when i try to upgrade to 1.7.1 : function

Re: [Proto-Scripty] Zoom

2012-10-08 Thread Walter Lee Davis
Are you asking if you can write one, or if one exists you could use? Walter On Oct 8, 2012, at 8:11 AM, Erika Will wrote: Hello can I include a zoom function? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this

Re: [Proto-Scripty] Form submit bubble

2012-09-26 Thread Walter Lee Davis
On Sep 26, 2012, at 5:00 AM, kstubs wrote: Does a form submit bubble up to the containing element? I'd like to capture form submit on a container div for a form submit. Reason being: I create the form on the fly based on whichever child element the user has selected (if any). I'd like

Re: [Proto-Scripty] Prototype's selector as well as eq in Jquery

2012-09-23 Thread Walter Lee Davis
Sure. if you start at the tr that holds the tds, you can use down() to do this. If you want the second td to have a certain width, you could do this: $$('tr').each(function(elm){ elm.down('td', 2).setStyle('width:122px'); }); Walter On Sep 23, 2012, at 12:59 PM,

Re: [Proto-Scripty] Remove horizontal gaps in puzzle demo

2012-08-15 Thread Walter Lee Davis
Whenever you place an image (or text) inside a div without wrapping it in a P tag, the browser will add an implicit P tag around the image, and treat it to the default line-height and padding for a P on your page. I am pretty sure that's what's going on here, and you should be able to get rid

Re: [Proto-Scripty] Any reason why this might not work?

2012-08-09 Thread Walter Lee Davis
On Aug 9, 2012, at 5:28 AM, Victor wrote: It may fail because this code may overwrite element's properties (and in some browsers like IE and Opera some attributes, mapped as element properties). That's an excellent point. E.g. $(someInput).store(name, foo).store(type, bar); Better will be

  1   2   3   4   5   6   7   >