[Proto-Scripty] collapsible menu

2011-07-03 Thread Walter
he lower part of the div instead of the upper like in the example website. How can i do that with script.aculo.us or with another method? Best, Walter -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to t

[Proto-Scripty] Error I can't figure out while trying to Serialize form contents

2010-05-31 Thread Charley Walter
Given the following function save_form_vars() { new Ajax.Request( 'http://www.longdrivesoftware.com/' + 'form_sources/ post_customer_info_form_vars', { method: 'post', parameters: $( 'f1' ).serialize( true

[Proto-Scripty] Re: Error I can't figure out while trying to Serialize form contents

2010-05-31 Thread Charley Walter
ith > the quoted code and this is a mistake a lot of people make. > > HTH, > -- > T.J. Crowder > Independent Software Consultant > tj / crowder software / comwww.crowdersoftware.com > > On May 31, 10:28 pm, Charley Walter wrote: > > > > > Given the follow

[Proto-Scripty] Does Prototype conflict with the native javascript object "prototype"?

2010-06-04 Thread Charley Walter
Thanks in advance. -- 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 email to prototype-scriptaculous+unsubscr...@g

Re: [Proto-Scripty] Re: FInd and iterate over ProcessingInstruction nodes?

2011-04-27 Thread Walter Davis
That would work if I was grepping through the source, but I'm trying to pick this thing out of the DOM so I can hook onto it and add a visible element near it. I can't seem to find a way to access it there. Thanks for the suggestion, though. Walter On Apr 27, 2011, at 8:32

Re: [Proto-Scripty] Re: FInd and iterate over ProcessingInstruction nodes?

2011-04-28 Thread Walter Davis
That's a very cool idea, certainly do-able with about 2 lines of Ruby code in my pre-processor! Thanks for the suggestion. Walter On Apr 28, 2011, at 5:15 AM, T.J. Crowder wrote: Walter, Unfortunately, I think you're out of luck, because I don't think browsers re

Re: [Proto-Scripty] Re: FInd and iterate over ProcessingInstruction nodes?

2011-04-28 Thread Walter Davis
looking and see if I can figure out another way to go. Walter On Apr 28, 2011, at 5:15 AM, T.J. Crowder wrote: It isn't, strictly speaking *valid* because (for instance) you can't have a `script` element that's an immediate child of a `ul`. But firstly, that seems like an err

Re: [Proto-Scripty] Template to element

2011-04-28 Thread Walter Davis
or make it visible. Walter On Apr 28, 2011, at 7:42 PM, kstubs wrote: Template evaluate returns a string. What is the best way to go from string to Element? -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To

Re: [Proto-Scripty] IE Sortable issue

2011-05-02 Thread Walter Davis
What is the HTML structure that you are sorting? Is it an UL with sortable LIs, or another structure? Walter On May 2, 2011, at 11:11 AM, Audrey wrote: I have a problem with the sortable function in IE (I've tested both 7 & 8). It does not occur in Firefox or Chrome. What is hap

Re: [Proto-Scripty] IE Sortable issue

2011-05-02 Thread Walter Davis
Make sure that your page is valid before anything else. If a script works in one browser/version and not others, that's a strong hint that the HTML is being interpreted in more than one manner. Valid HTML or XHTML is unambiguous. Walter On May 2, 2011, at 1:43 PM, Audrey Bowman

Re: [Proto-Scripty] IE Sortable issue

2011-05-02 Thread Walter Davis
this Frankenpage in a text editor. Then confirm that it still fails for you, and if it does, post it somewhere where another pair of eyes can look at it. (Post a link here.) Walter On May 2, 2011, at 2:55 PM, Audrey Bowman wrote: I have been going through the page element by element to make sure

Re: [Proto-Scripty] IE Sortable issue

2011-05-03 Thread Walter Davis
list each time you re- order the list. Walter On May 2, 2011, at 5:06 PM, Walter Davis wrote: This is where the Self Contained Failing Test is useful. Try to make a static HTML version of your assembled page at the point where it fails. Use Firebug's inspector to see the rendered

Re: [Proto-Scripty] IE Sortable issue

2011-05-09 Thread Walter Davis
it's sometimes easy to lose track of all the canonical parts of a page. But without a valid source tree, it's nearly impossible to track down the browser differences, as one browser's auto-correction of the DOM will be subtly different than another's. Walter On May 9

Re: [Proto-Scripty] Text selections

2011-05-09 Thread Walter Davis
Selecting all text in a textarea is as simple as $ ('theIdOfTheBox').select(); I have written an example that works with any text on the page, inspired by the New York Times' definition widget. http://scripty.walterdavisstudio.com/lookup Walter On May 9, 2011, at 10:33 P

Re: [Proto-Scripty] Strange behaviour of innerHTML

2011-05-13 Thread Walter Davis
eturn you a reference to the element you just created: $('someParentElement').insert('hello'); Maybe you could add an ID or className to the div you create that way, and then test for it later when you need a reference to the element. Walter On May 13, 2011, at

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

2011-05-31 Thread Walter Davis
ing at (if your event is attached to the img DOM object). Take a look at Element.cumulativeScrollOffset and see if that can give you what you need. According to the docs, it can handle multiply- nested scrolling containers. Walter I can use clientX/Y or pageX/Y to get the location of the mouse

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

2011-05-31 Thread Walter Davis
On May 31, 2011, at 11:12 AM, bill wrote: On 5/31/2011 11:06 AM, Walter Davis wrote: On May 31, 2011, at 10:57 AM, bill wrote: On 5/30/2011 11:22 AM, Eric wrote: Hi Bill, Using Event.PointerX() and Event.PointerY() you can get the absolute position of the mouse on the page. Using

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

2011-06-01 Thread Walter Davis
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 into that by using the cumulative offset, and subtracting the document.viewport.getScrollOffsets() from

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

2011-06-03 Thread Walter Davis
On Jun 3, 2011, at 11:21 AM, Eric wrote: 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 into that by using the

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

2011-06-06 Thread Walter Davis
ut no idea if it also works in Android. (Hey, they've stolen every other idea, why not that...) It also works on Linux/Firefox3.5.7 So by works, you mean both the Prototype version and the native version of the offset calculation reported the same offset number while you scrolled

Re: [Proto-Scripty] how-to add to

2011-06-07 Thread Walter Davis
new Option('Label','value'); Walter On Jun 7, 2011, at 4:09 PM, Phil Petree wrote: I've tried every option that I can find or figure out to add an to a using prototype or dom. What I have figured out is that when prototype 1.6.x is present normal dom functions dont

Re: [Proto-Scripty] how-to add to

2011-06-07 Thread Walter Davis
Ajax.Request callback. Walter On Jun 7, 2011, at 5:23 PM, Phil Petree wrote: thanks Walter... bottom line is that addOption works fine if called directly but only clears the if called from the Ajax.updater onSuccess... even using static data! This works: This doesn't (button is cl

Re: [Proto-Scripty] how-to add to

2011-06-07 Thread Walter Davis
On Jun 7, 2011, at 9:00 PM, Phil Petree wrote: Matt & Walter, You are both right... Ajax.Updater is, apparently, trying to update the AFTER it calls onSuccess and since it is incapable of updating a it was thereby overwritting my adds... no problem, once I figured that out, I

Re: [Proto-Scripty] how-to add to

2011-06-08 Thread Walter Davis
JSbin is a popular way to show working examples. Gives you a persistent URL and you can edit it and demo it right in the browser. Walter On Jun 8, 2011, at 3:19 PM, Phil Petree wrote: Where are ya'll posting the demo code? -- You received this message because you are subscribed t

Re: [Proto-Scripty] how-to add to

2011-06-08 Thread Walter Davis
d you tend to simplify to the point where you smack your forehead and say "never mind" to the mailing list. Walter On Jun 8, 2011, at 3:49 PM, Phil Petree wrote: I looked at jsbin earlier and have actually tested some snippets there... however you can't (to my knowledge) up

Re: [Proto-Scripty] element is null - say what

2011-06-13 Thread Walter Davis
ic to happen. If you can't add an ID to the input, you can pass a more elaborate selector like document.forms[0].zip (without surrounding quotes, naturally) into the function. $() will work from an object or an ID, but it won't work with just a name, except in IE, which has a seri

Re: [Proto-Scripty] element is null - say what

2011-06-13 Thread Walter Davis
f the listener was defined in the DOM before the element it was supposed to listen to. http://jsbin.com/odusi5/3 Walter On Jun 13, 2011, at 11:35 AM, Phil Petree wrote: Walter you made me doubt myself... LOL I've been integrating this new code with the old form and the id's are diffe

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Walter Lee Davis
Try this: $('clones').observe('click',function(evt){ var elm = evt.element(); if(elm.id){ //your code goes here } }); Walter On Jul 21, 2009, at 11:10 AM, Alex McAuley wrote: > try the follwing then. > > $('clones'

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Walter Lee Davis
Put an alert in there, or a console.log, and see if your Ajax.Request is even returning success. If it doesn't, you will never see anything happen to that list item. Walter On Jul 21, 2009, at 1:47 PM, Yan Kovyakh wrote: > Great, now it finds the correct ID, and sends a post of “

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Walter Lee Davis
What does Firebug say your return from Ajax.Request looks like? You should be able to see it in the Console tab, you'll see a POST and then the response from that. Walter On Jul 21, 2009, at 2:31 PM, Yan Kovyakh wrote: > Alert works up to the last 2 lines, up to the elm.up(

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Walter Lee Davis
Do you actually see the real ID number, or do you see 'theIDnumber'? Can you turn on error reporting in your remove_clone.php? ini_set('display_errors',1); error_reporting(E_ALL); As close to the top of the PHP script as you can get it. Walter On Jul 21, 2009, at 2:58 P

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Walter Lee Davis
Can you make a regular POST to the delete script (using a test form) and see if it responds in any way? I remain convinced that your problem is in that script, nowhere else. Walter On Jul 21, 2009, at 4:01 PM, Yan Kovyakh wrote: > > I do see the real ID of an item, no errors, n

[Proto-Scripty] Re: Delete php

2009-07-21 Thread Walter Lee Davis
In your layout, you are not using the A tag, but rather the LI tag to carry the ID. Since that's the case (which is why you are using "this", I think) maybe the thing to do is to change elm.up('li').remove(); to elm.remove() and see if that does the trick fo

[Proto-Scripty] Re: Need help for performantly creating tooltips

2009-07-22 Thread Walter Lee Davis
. I am certain there is something basic I am overlooking, it can't really be as hard as I ended up making it. Walter On Jul 22, 2009, at 8:47 AM, Jeff Conklin wrote: > HTH, please share whatever you can. I too need something to handle > tooltips. My current system is rather slow.

[Proto-Scripty] Re: Slidedown and Slideup Problems

2009-07-22 Thread Walter Lee Davis
Use Xyle scope or another CSS "inspector" to see what exactly the difference is. You can bet the problem will be in the initial CSS when the page loads. Set the objects you want to animate to be position:absolute and no padding and you probably will have no trouble. Walter On Ju

[Proto-Scripty] Re: Calling more than one effect fails (script.aculo.us) - Correction

2009-07-27 Thread Walter Lee Davis
Another way that neatly avoids the problem: $$('#foo').invoke('highlight'); Walter On Jul 27, 2009, at 12:24 PM, mr_justin wrote: > > Do not call the Effect method with a non-existent element ID. > > if ($('foo')) new Effect.Highl

[Proto-Scripty] Re: Form array causes problems in ie 7 and below

2009-07-28 Thread Walter Lee Davis
byear']).getValue... you will have no more error, because the first thing that happens is that Prototype will extend the raw object reference (because it was wrapped in the dollar function), turning it into a full-featured inheritor of all the goodies in all supported browsers. Walter

[Proto-Scripty] Re: $F() cannot get radio button values?

2009-07-30 Thread Walter Lee Davis
ue = ($$("input[name="yourRadioGroup"]:checked").first()) ? $$("input[name="yourRadioGroup"]:checked").first().getValue() : ''; Walter On Jul 30, 2009, at 4:07 PM, mr_justin wrote: > > The value is returned from radio buttons and checkboxes i

[Proto-Scripty] Re: How to catch/prevent onclick event?

2009-08-05 Thread Walter Lee Davis
Best to try removing those at dom:loaded, maybe with something like this: document.observe('dom:loaded',function(){ $$(a).each(function(elm){elm.onclick = null}); }); That's just a guess... But as far as I know, you can't stop these inline event handlers any ot

[Proto-Scripty] Re: HTTP OPTION REQUEST with FireFox 3.5

2009-08-05 Thread Walter Lee Davis
quest /mytwitterproxy.php from your server with impunity. Walter On Aug 5, 2009, at 5:30 PM, 0m4r wrote: > > Hi All, > > I have a strange behavior with a pice of code I wrote using the latest > prototype release, here it is: > == > var debug = $('debug'); > new Aj

[Proto-Scripty] Re: POSTing a form via AJAX

2009-08-18 Thread Walter Lee Davis
eceived a vanilla request, and a cut-down fragment if it received an Ajax request. Walter On Aug 18, 2009, at 10:36 AM, T.J. Crowder wrote: > > Hi, > > 'Tis indeed very easy. Say you have a form wrapped in a div: > > > > > > You can post i

[Proto-Scripty] Re: Delete page on Scriptaculous Wiki

2009-08-22 Thread Walter Lee Davis
I asked on the Github list, and only the repo owner can delete pages entirely. We are free to turn that page into something useful, but only Sam can remove it. Walter On Aug 22, 2009, at 5:08 AM, Kevin Porter wrote: > > I don't know, sorry :) But when you find out how to delete

[Proto-Scripty] Re: Delete page on Scriptaculous Wiki

2009-08-22 Thread Walter Lee Davis
Where by Sam I meant Thomas, obviously... On Aug 22, 2009, at 2:04 PM, Walter Lee Davis wrote: > > I asked on the Github list, and only the repo owner can delete pages > entirely. We are free to turn that page into something useful, but > only Sam can remove it. > > Walter &

[Proto-Scripty] Re: Delete page on Scriptaculous Wiki

2009-08-23 Thread Walter Lee Davis
you could always ask, I suppose. Or we could try to paper over the problem by adding some new content in that page. Walter On Aug 22, 2009, at 4:58 PM, JoJo wrote: > > And how would I contact this Thomas god? > > On Aug 22, 11:07 am, Walter Lee Davis wrote: >> Where by S

[Proto-Scripty] Re: ajax.request routine fails in IE

2009-08-24 Thread Walter Lee Davis
MWare and run XP and IE6 and see how awful everything could look. Walter On Aug 24, 2009, at 12:33 PM, Milko Kretschmann wrote: > Hi Yuval and David, > > I'm surprised to hear it works under IE6. Since I use MacOS and > don't have IE I test it inderectly via a we

[Proto-Scripty] Re: stopping the PeriodicalExecuter

2009-08-27 Thread Walter Lee Davis
irely global. Walter On Aug 27, 2009, at 7:35 PM, plo wrote: > > Hey T.J, > > I meant that I couldn't find information for what I was trying to do > specifically. I've read the periodicalExecuter docs on the prototype > site which only demonstrates how to call t

[Proto-Scripty] Re: onChange event when div content changed

2009-09-02 Thread Walter Lee Davis
don't match, fire the event and update the global variable. This may be more difficult than I am saying it here, it's often quite hard to get a PE to gather an external variable value more than once (at the moment the PE function is instantiated). Walter On Sep 2, 2009, at 10:

[Proto-Scripty] Favicon disappearing in Firefox?

2009-09-03 Thread Walter Lee Davis
any bells for anyone? Thanks in advance, Walter --~--~-~--~~~---~--~~ 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@googleg

[Proto-Scripty] Re: Favicon disappearing in Firefox?

2009-09-03 Thread Walter Lee Davis
That's the odd thing. It was working, and now it's kinda working -- you see the favicon for a fraction of a second, then it disappears and is replaced with the generic globe. Walter On Sep 3, 2009, at 11:34 AM, Alex McAuley wrote: > > I had a similar issue with caching o

[Proto-Scripty] Re: Favicon disappearing in Firefox?

2009-09-04 Thread Walter Lee Davis
Thanks. Walter On Sep 4, 2009, at 3:41 AM, T.J. Crowder wrote: > > Firefox has *long* had favicon bugs. The symptom (and possibly the > underlying cause) seems to change with every release, but there's > usually a problem with them somewhere. > > -- T.J. > > On Sep

[Proto-Scripty] Re: Dynamic test after ajax call

2009-09-21 Thread Walter Lee Davis
with classname bar At no point above, if you looked in the source, would you see that #foo now was #foo.bar, or that its content had changed, unless you were using a tool such as Firebug to inspect the current state of the DOM. Walter On Sep 21, 2009, at 9:22 AM, Kumar wrote: > > Hi

[Proto-Scripty] Re: Making appear the rest of a word onmouseover

2009-10-03 Thread Walter Lee Davis
You could try wrapping the arkie part in a span, hiding that, and then revealing it later. Use display:none and you can simply use $ ('spanID').show() (only needs Prototype, not the whole Scripty thing) to turn it on, and hide() to make it, well, hide. Walter On Oct 3, 2009,

[Proto-Scripty] Re: PeriodicalExecuter, Updater, and Effect.Fade() executing in unexpected order

2009-10-04 Thread Walter Lee Davis
} ); } You could also investigate effect queues, but I think this sort of chained function will do you better. Walter On Oct 4, 2009, at 11:26 AM, LinkMaster03 wrote: > > What I am trying to accomplish is a clock that updates every five > seconds. Before it updates I want

[Proto-Scripty] Re: PeriodicalExecuter, Updater, and Effect.Fade() executing in unexpected order

2009-10-04 Thread Walter Lee Davis
Or even simpler: function update_clock(){ var clock = $('clock'); new Ajax.Updater(clock,'clock.py',{ onCreate:function(){clock.fade()}, onComplete:function(){clock.appear()} }); } Walter On Oct 4, 2009, at 12:32

[Proto-Scripty] Re: Adding rows to a table.

2009-10-21 Thread Walter Lee Davis
This looks as though you are trying to insert the tr into another tr, which just won't work. Try inserting into the tbody, or select a tr and insert before or after, using this syntax: $('paymentHistory').down('tr').insert({before:'your tr code here'});

[Proto-Scripty] Re: Forms

2009-10-29 Thread Walter Lee Davis
Try giving your form elements IDs to match their NAME property. I have always needed the ID to be set in order to get a value out of $F. Walter On Oct 29, 2009, at 11:08 AM, Russell Keith wrote: > Ok, maybe I’m just being dense, but I am reading the API for forms > and I am getting n

[Proto-Scripty] vertical axis Control.Slider problem

2009-11-02 Thread Walter Lee Davis
object cause it to be ignored at setup time? This problem happens in 1.8.2 and 1.8.3, using the 1.6.3 prototype in both cases. Thanks in advance, Walter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[Proto-Scripty] Re: Noob needs help with event handling

2009-11-09 Thread Walter Lee Davis
nd delegate handling. > > If you say > > $('mydiv').observe('click', function(ev) { > var input = ev.findElement('input'); > if (input) ... > > then any pick on your div, irrespective of how many times its contents > have changed, will

Re: [Proto-Scripty] Re: Accessing link_to_remote in controller with .find(params[])

2009-11-24 Thread Walter Lee Davis
pastie the code *generated* by the Rails helper (view source in your browser), but I don't know if that would translate back into what you need to do within Rails to get it to do other than it currently does. Walter On Nov 24, 2009, at 11:34 AM, Blue Hand Talking wrote: > Prototype is

[Proto-Scripty] Safari complains of "unsafe" X-JSON

2009-11-24 Thread Walter Lee Davis
'}); }, onComplete:function(transport){ elm.update(transport.responseText); } }); }); I've done this construction over and over before, and never had a complaint o

Re: [Proto-Scripty] Safari complains of "unsafe" X-JSON

2009-11-24 Thread Walter Lee Davis
the same as the request (missing the WWW part) so this error cropped up. I chopped down the Action to just the script name, and it works like a big dog. Walter On Nov 24, 2009, at 6:31 PM, Walter Lee Davis wrote: > I have a form with an Ajax request() to update the form with survey > res

Re: [Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2009-11-27 Thread Walter Lee Davis
code here } Walter 1. http://api.prototypejs.org/dom/element.html#extend-class_method On Nov 26, 2009, at 5:52 AM, Carsten wrote: >> Are you certain that the object has actually been created in the DOM >> when you call this? > > "Element" is the Element-object from th

Re: [Proto-Scripty] Progressive update messages from single request

2009-12-09 Thread Walter Lee Davis
pdf $('message').update('making PDF...');; new Ajax.Request('pdf.php',{ parameters:{id:''}, onCreate:..., //you get the idea onSuccess:...

Re: [Proto-Scripty] Re: Change selected option for select tag

2009-12-10 Thread Walter Lee Davis
lectedIndex is also the defaultSelected. The picker will always show whatever is the selectedIndex, but on a reload, it will show whatever is the defaultSelected. Walter On Dec 10, 2009, at 11:11 AM, Ruben. D. wrote: > I've tried in Firefox and Opera and the result is the same. >

Re: [Proto-Scripty] Re: Change selected option for select tag

2009-12-10 Thread Walter Lee Davis
Try setting the defaultSelected property as well, that might be getting in the way of your select "noticing" that it's been changed. yourSelect.options.selectedIndex = 0; yourSelect.options[0].defaultSelected = true; Walter On Dec 10, 2009, at 12:15 PM, Ruben. D. wrote: >

Re: [Proto-Scripty] Re: document.write() vs Element/appendChild()

2009-12-10 Thread Walter Lee Davis
I believe that innerhtml is not completely guaranteed to work the same way across browsers, while the Prototype DOM methods are. Walter On Dec 10, 2009, at 10:02 PM, Rob Cluett wrote: > Why would we add an element using prototype's DOM method over > innerhtml in any scenario if

[Proto-Scripty] self-or-ancestor in one whack?

2009-12-18 Thread Walter Lee Davis
t message from every project that includes Prototype. Thanks in advance, Walter -- 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 unsu

Re: [Proto-Scripty] sortable

2009-12-19 Thread Walter Lee Davis
Exactly right, except you don't need to put the dot in front of the classname. handle:'drag-me' Walter On Dec 19, 2009, at 8:08 AM, Alex McAuley wrote: > in draggable there is a parameter "handle" witch if i recall > correctly takes > a classname... >

Re: [Proto-Scripty] Re: self-or-ancestor in one whack?

2009-12-19 Thread Walter Lee Davis
I'll give that a try. I'm not sure (from the API docs) if that's going to do exactly what I want or not. Thanks, Walter On Dec 19, 2009, at 9:23 AM, ColinFine wrote: > > > On Dec 18, 5:51 pm, Walter Lee Davis wrote: >> I use this construction quite a lot: >&

Re: [Proto-Scripty] Re: Ajax.Request

2009-12-22 Thread Walter Lee Davis
o, throwing a distinctly different error depending on the nature of that error, and then handling it in the Ajax callback using one of the onNNN methods instead of onError (which covers any error between 400 and 5NN, IIRC). Walter On Dec 22, 2009, at 10:21 AM, Alex McAuley wrote: > 2. Server

Re: [Proto-Scripty] Re: self-or-ancestor in one whack?

2009-12-22 Thread Walter Lee Davis
he parent. I tried Tobie's technique, and it works perfectly. My long-hand method worked fine as well -- no flickering I could discern -- so it's really just a coding elegance refinement I was going for rather than anything else. I am using event delegation -- observing the entire t

Re: [Proto-Scripty] Pulse effect sometimes stopping on darkened version

2009-12-23 Thread Walter Lee Davis
I'd love to help, but your browser detection scheme mis-identified my Safari as Chrome, then redirected me to getfirefox.com. I already have Firefox, thanks. Walter On Dec 22, 2009, at 3:48 PM, evilC wrote: > I am using pulse effects in my app to highlight UI components on > m

Re: [Proto-Scripty] Pulse effect sometimes stopping on darkened version

2009-12-23 Thread Walter Lee Davis
e using to drive any of these effects? Walter On Dec 22, 2009, at 3:48 PM, evilC wrote: > I am using pulse effects in my app to highlight UI components on > mouseover of some help text. Sometimes, however, the animation gets > stuck or something and you are stuck with a greyed out DIV. An

Re: [Proto-Scripty] Re: Pulse effect sometimes stopping on darkened version

2009-12-24 Thread Walter Lee Davis
ttention(); break; default: break; } }); }); Hope this helps, Walter On Dec 24, 2009, at 2:19 AM, evilC wrote: > As an afterthought, I guess it is by design. > If you trigger it, it probably uses the current state as a starting &

Re: [Proto-Scripty] Re: Pulse effect sometimes stopping on darkened version

2009-12-24 Thread Walter Lee Davis
ssing the ID of the element as the queue name, you give each element its own stack of effects, keeping another effect from messing with it and giving each effect time to complete fully. Walter On Dec 24, 2009, at 3:00 PM, evilC wrote: > Thanks walter, though I am not sure I understand t

Re: [Proto-Scripty] Assistance with clicks

2010-01-06 Thread Walter Lee Davis
o.setOpacity(0.999); } }); combinator(); }, evalScripts: true

Re: [Proto-Scripty] Re: Insert or move existing element

2010-01-13 Thread Walter Lee Davis
objects into the page, only one at a time. If you wanted to insert all of the matching objects in a loop, then you could use: var myDivs = $$('.element_to_insert_after_foo'); myDivs.each(function(elm){ $('foo').insert({after: elm}); }); Walter On Jan 13, 2010, at 8:53 AM,

Re: [Proto-Scripty] Re: prototype 1.6.1, IE6: Object doesn't support this property or method, typeof Element=unknown

2010-01-14 Thread Walter Lee Davis
would not help you if the object didn't already exist in the browser's memory. Walter On Jan 14, 2010, at 6:14 AM, Carsten wrote: As said in the original post: It is the $() functions itsself which fails. $() calls Element.extent, and IE6 complains about Element to not support

Re: [Proto-Scripty] simple show / hide

2010-01-15 Thread Walter Lee Davis
This will hide all the things you're planning to show later (so you can remove all of the inline styles) -- but before the page displays in the browser so you won't see a flash of content. I'd really appreciate any help, as I'm banging my head off a wall at the mome

Re: [Proto-Scripty] Trying to toggle the content of elements

2010-01-29 Thread Walter Lee Davis
e two different elements (with distinct IDs), and then set them to switch back and forth so only one is ever visible at a time. BTW, which PHP framework is this code from? Walter On Jan 29, 2010, at 8:42 AM, Javier Garcia wrote: Hi, i have this code: Hello Bye Click here W

Re: [Proto-Scripty] getSelectorsByElement

2010-02-08 Thread Walter Lee Davis
on(elm){ console.log( elm.className ); }); If you want to get the classes as an array that you could iterate over, then just run the $w() function against the className to turn the whitespace-delimited list into a proper array. Walter On Feb 8, 2010, at 12:09 AM, webber wrote: hey all, Im new

[Proto-Scripty] Ajax Updater running from a DVD under IE8

2010-02-15 Thread Walter Lee Davis
s ring any bells for anyone? Is it going to be fix-able, or do you suspect it might be one of those IE "features"? Thanks in advance, Walter -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to th

Re: [Proto-Scripty] Ajax Updater running from a DVD under IE8

2010-02-16 Thread Walter Lee Davis
rom a document.observe to a Yahoo-style script block before /body, to no avail. Thanks, Walter On Feb 15, 2010, at 6:59 PM, Walter Lee Davis wrote: I have a site that gets distributed on DVD as a "portable library". IE8 users are complaining that an element I am loading into the home

Re: [Proto-Scripty] Ajax Updater running from a DVD under IE8

2010-02-16 Thread Walter Lee Davis
http://files.libertyfund.org/pll ). It works in IE6, Firefox, Chrome, and Safari on the PC, Firefox Chrome, and Safari on the Mac. It just rubs IE8 the wrong way -- but only when run from the DVD. Walter On Feb 16, 2010, at 12:19 PM, Rick.Wellman wrote: Um, maybe I'm whack, but... Doesn't an AJAX

Re: [Proto-Scripty] Ajax Updater running from a DVD under IE8

2010-02-16 Thread Walter Lee Davis
or Firefox on the PC when run locally (file:/// url) but fails to work in IE 8. IE8 shows an "active content" warning, then when I okay that, nothing further happens. IE6 shows the same warning, but once you okay it, everything works fine. Thanks in advance, Walter On Feb 16, 2

Re: [Proto-Scripty] Re: Ajax Updater running from a DVD under IE8

2010-02-17 Thread Walter Lee Davis
Thanks very much, this seems to fix things very neatly. Walter On Feb 16, 2010, at 12:33 PM, gwyohm wrote: hi walter, this seem to be a known issue on rails trac. http://dev.rubyonrails.org/ticket/8259 It only happens on file:/// protocol when native XmlHttpRequest is used which is as a

Re: [Proto-Scripty] Only fire event once on mouseover

2010-02-17 Thread Walter Lee Davis
s what the mousenter/leave observers do. Walter On Feb 17, 2010, at 4:40 PM, louis w wrote: Refer to the link below. I have a "dropdown" html element which has an event observer looking for mouseover. It's working, but it continuously fires mouseover events while you are mousin

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

2010-02-21 Thread Walter Lee Davis
to the elements. Thanks, Walter -- 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 ema

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

2010-02-22 Thread Walter Lee Davis
ould I get it to stop when it ran out of similar siblings? Thanks as always for any pointers. Walter On Feb 22, 2010, at 10:29 AM, Alex Wallace wrote: You'll want to leverage Prototype's nextElementSibling function. That function grabs element.nextSibling and traverses until it fin

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

2010-02-22 Thread Walter Lee Davis
Thanks very much. I was looking in the wrong place for the functionality I need. You've given me the bones I need to build on. Walter On Feb 22, 2010, at 11:07 AM, Alex Wallace wrote: I whipped up something that should handle the task, although I'm sure this could be optimized

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

2010-02-22 Thread Walter Lee Davis
uld leave me where I started. Thanks, Walter On Feb 22, 2010, at 5:46 PM, Matt Foster wrote: This is probably too obvious to be right but if you're simply looking for all of the paragraph tags at that level could you simply go up to the parent and select down from there? On Feb 22, 12:57

Re: [Proto-Scripty] Dashboard

2010-02-23 Thread Walter Lee Davis
There's at least two of these on Scripteka, have a quick search there for 'portal' or 'desktop' or similar. Walter On Feb 23, 2010, at 3:43 AM, gm wrote: Hello, I am interested in implementing a kind of Dashboard (not as complex as iGoogle but similar in

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

2010-02-23 Thread Walter Lee Davis
Wow, thanks very much Alex! Walter On Feb 23, 2010, at 11:28 AM, Alex Wallace wrote: Here's a slightly better version, as it crawls the tree itself instead of grabbing and filtering all of the element's nextSiblings(). Since it avoids the call to recursivelyCollect() it'

Re: [Proto-Scripty] Re: Error with Element.insert({Bottom

2010-02-26 Thread Walter Lee Davis
y_weider_komp_1')) ... before you will actually /have/ insert() to work with. Especially on IE, you can't count on elements being extended until you access them through $ or $$ or another Prototype "getter" like select(). Walter On Feb 26, 2010, at 2:08 PM, Dr. Underhook

Re: [Proto-Scripty] Re: Error with Element.insert({Bottom

2010-03-01 Thread Walter Lee Davis
extensions quite so perfectly (and fragile-ly). // in foo.html, which opens bar.html // include prototype.js first var baz = function(){ $('wieder_komp_1').insert( ... ); } // in bar.html top.opener.window.baz(); Walter On Mar 1, 2010, at 12:27 AM, ferengi wrote: Moin.. now

[Proto-Scripty] Why is there an implicit remove() in this method?

2010-03-03 Thread Walter Lee Davis
on to do: $('bar').update(this.down('p').remove()); ??? Thanks in advance, Walter -- 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...@

Re: [Proto-Scripty] Re: Why is there an implicit remove() in this method?

2010-03-03 Thread Walter Lee Davis
Aha. That makes sense. I was thinking it was doing more of an innerHTML sort of thing, updating with the actual HTML code, and I wasn't thinking object-wise. Walter On Mar 3, 2010, at 4:03 PM, T.J. Crowder wrote: Hi, But can anyone explain what my conceptual failure was here? Ele

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

2010-03-05 Thread Walter Lee Davis
screw up) while still offering an unsurprising result in a wide range of layout situations. Walter On Mar 5, 2010, at 8:08 AM, Eric wrote: Hi, All the proposed solutions are very nice example of coding, but however you may ask yourself this question: "If there is no easy way to do the pr

Re: [Proto-Scripty] make the Tablekit library to sort with the current sort order after page refresh

2010-03-15 Thread Walter Lee Davis
LivePipe Cookie extension[1] for Prototype for a really quick way to access the cookie without a lot of gymnastics. Walter 1. http://livepipe.net/extra/cookie On Mar 15, 2010, at 5:56 PM, albert kao wrote: My table columns are sorted by the Tablekit library (millstream.com.au/ upload/code/t

Re: [Proto-Scripty] Re: firing function after page load

2010-03-18 Thread Walter Lee Davis
There is such an event[1], but it's not very evenly applied across browsers. I suppose you could as an alternative fire a custom event and then listen for that, but "green"'s example is how I've always done things. Walter 1. DOMCharacterDataModified, found here:

  1   2   3   4   5   6   7   8   >