[Proto-Scripty] Re: Unoffiicial Prototype script.aculo.us wiki

2008-10-08 Thread T.J. Crowder
Hi Jan, Doh! Fixed now. The wiki was still marked private, and so the system wasn't letting you go to the second page. (It's not meant to require membership just for *viewing*.) Fixed now, sorry for the hassle! -- T.J. Crowder tj / crowder software / com On Oct 8, 8:22 am, Jan Hansen [EMAIL

[Proto-Scripty] Re: How to make an independent copy of an object?

2008-10-08 Thread T.J. Crowder
Hi, Object.clone is documented as being a shallow copy: http://www.prototypejs.org/api/object/clone Deep cloning is more complicated than it seems at first. A naive version would be along these lines: Object.extend(Object, { deepClone: function(source) { var result; var

[Proto-Scripty] Re: Unofficial Prototype FAQ is online

2008-10-08 Thread T.J. Crowder
Hi Richard, Seems you need higher permissions to edit! Just click the join link on the front page (or click link below). Only site members can edit. Joining the site is separate from joining WikiDot. http://proto-scripty.wikidot.com/system:join This (like moderating initial posts here) is to

[Proto-Scripty] Re: Unoffiicial Prototype script.aculo.us wiki

2008-10-08 Thread puckpuck
Given the recent blog post from the prototype core, is this wiki going to be endorsed by the core? We don't need them specifically to be controlling it, as the whole notion of a wiki is community contribution, but this is very long overdue, and I fear that unless you get core support, it will

[Proto-Scripty] Problem using tinyMCE in combination with protoype scriptacolous

2008-10-08 Thread es8ch
Hello, i get an error message in FF while using tinMCE editor (latest version). Output looks like too much recursion [Break on this error] return this.bodyElement || this.getDoc().body; tiny_mce_src.js (line 7881) too much recursion [Break on this error] var t = this, ed = t.editor, b = ed.g...

[Proto-Scripty] Detect element state in wrapper function

2008-10-08 Thread Garreth
Hi, I'd like to use the BlindDown and BlindUp effects in a single javascript wrapper. The script would detect the current state of the element and apply either the BlindDown or BlindUp effect accordingly. ie if its down, apply Up if its up, apply Down However, I can't find any way to detect

[Proto-Scripty] Re: Unofficial Prototype FAQ is online

2008-10-08 Thread T.J. Crowder
Sorry, fixing the subject line -- I seem to have left off an important bit! -- T.J. :-) --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: Unofficial Prototype FAQ is online

2008-10-08 Thread Richard Quadling
2008/10/8 T.J. Crowder [EMAIL PROTECTED]: Sorry, fixing the subject line -- I seem to have left off an important bit! -- T.J. :-) Seems you need higher permissions to edit! Permission error Oooops! Sorry, you can not edit this page. Only members of this site, site administrators and

[Proto-Scripty] Re: Getting Text Nodes of Elements

2008-10-08 Thread ColinFine
On Oct 7, 7:42 pm, Hector Virgen [EMAIL PROTECTED] wrote: Is there a Prototype way to get the descendants of an element that are only text nodes? Element.descendents() only returns elements. Thanks! -Hector It's neither Prototype nor part of a published API, but I have noticed that

[Proto-Scripty] Re: Detect element state in wrapper function

2008-10-08 Thread Walter Lee Davis
If it's visible, then it's been BlindDown'd. BlindUp removes the element from view. So a simple test for yourElement.visible() should do the trick. Walter On Oct 8, 2008, at 9:08 AM, Garreth wrote: Hi, I'd like to use the BlindDown and BlindUp effects in a single javascript wrapper.

[Proto-Scripty] Re: Getting Text Nodes of Elements

2008-10-08 Thread Søren Erland Vestø
This might not work in IE, as IE doesn't return textnodes in childNodes. /Søren On 07/10/2008, at 21.24, Hector Virgen wrote: Thanks! That should do the trick :) On Tue, Oct 7, 2008 at 12:12 PM, Justin Perkins [EMAIL PROTECTED] wrote: I think you will need to use the native methods to

[Proto-Scripty] Re: How to make an independent copy of an object?

2008-10-08 Thread Tobie Langel
True use-cases for deep-cloning are actually pretty rare. When bumping into such an issue, it's usually a good idea to look for a better coding pattern rather than to add complexity, augment memory consumption and worsen the performance by bringing out the big guns. I'm not sure what you are

[Proto-Scripty] Re: Unoffiicial Prototype script.aculo.us wiki

2008-10-08 Thread T.J. Crowder
Heya, Given the recent blog post from the prototype core, is this wiki going to be endorsed by the core? You never know. I actually hadn't seen Andrew's post before setting it up; we were both probably responding to the same issues. I suspect it'll totally depend on what their own plans

[Proto-Scripty] Re: OT: Another idea

2008-10-08 Thread Søren Erland Vestø
Regarding Intellisense in IDE's how does the planned PDoc tie into the OpenAjax initiative? - Søren On 08/10/2008, at 16.28, Brian Williams wrote: Since M$ is going to support jQuery in VS, perhaps we, the community, could start an initiative to develope a plugin for Eclipse to

[Proto-Scripty] Re: Getting Text Nodes of Elements

2008-10-08 Thread Hector Virgen
Maybe there's a better way to approach my problem. I have a nested unordered list that contains an image (icon) and some text in each LI. I want to extract just the text part of the LI without the image. ul li id=fooimg src=icon.png alt= /Foo/li li id=barimg src=icon.png alt= /Bar

[Proto-Scripty] Re: Getting Text Nodes of Elements

2008-10-08 Thread Brian Williams
you could put the text in a span element that should make it loads easier On Wed, Oct 8, 2008 at 11:31 AM, Hector Virgen [EMAIL PROTECTED] wrote: Maybe there's a better way to approach my problem. I have a nested unordered list that contains an image (icon) and some text in each LI. I want

[Proto-Scripty] Re: Form works in Opera Firefox but not in IE and partially in Chrome Safari

2008-10-08 Thread Justin Perkins
Can you create a simple page that displays this problem? It is very hard to debug/view your code on the live site. Also, at this point I consider Chrome a novelty but obviously you want things to work in IE and Safari might be a priority too. -justin

[Proto-Scripty] Re: Form works in Opera Firefox but not in IE and partially in Chrome Safar

2008-10-08 Thread Justin Perkins
In Safari, when I change the first drop-down, the second and third drop-downs are updated but the second one remains disabled. Is that your intention or is that the bug you are describing? -justin --~--~-~--~~~---~--~~ You received this message because you are

[Proto-Scripty] Re: Form works in Opera Firefox but not in IE and partially in Chrome Safari

2008-10-08 Thread Mondane
On 8 okt, 18:36, Mondane [EMAIL PROTECTED] wrote: On 8 okt, 17:52, Justin Perkins [EMAIL PROTECTED] wrote: Can you create a simple page that displays this problem? It is very hard to debug/view your code on the live site. Also, at this point I consider Chrome a novelty but obviously

[Proto-Scripty] Re: Effect.Fade and Effect.Appear

2008-10-08 Thread Hector Virgen
Correction (but still untested): $$('a.ajaxable').invoke('observe', 'click', handleAjaxClick); -Hector On Wed, Oct 8, 2008 at 11:09 AM, Hector Virgen [EMAIL PROTECTED] wrote: I'm not sure how you'd do this with CakePHP's helper, but I think the basic idea is you want to set up an observer for

[Proto-Scripty] Re: Getting Text Nodes of Elements

2008-10-08 Thread Hector Virgen
Thanks for the all of the suggestions. Any chance something like this can be added into Prototype for cross-browser compatibility and ease of use? -Hector On Wed, Oct 8, 2008 at 10:57 AM, solidhex [EMAIL PROTECTED] wrote: You can also use Prototype's methods for removing white space,

[Proto-Scripty] Re: How to make an independent copy of an object?

2008-10-08 Thread buda
I really need to have a separate copy of an object - they are small and it needn't to have heavy computations and consume a lot of memory On 8 окт, 17:16, T.J. Crowder [EMAIL PROTECTED] wrote: True use-cases for deep-cloning are actually pretty rare. I'll second that. I'm not sure what

[Proto-Scripty] Re: Ajax.Autocomplete Questions

2008-10-08 Thread ericindc
Walter, I had given up on this and switched to jQuery's version of autocompleter, but seeing how I hate jQuery I'm back at it again. I'm working with my SAs to get Firefox/Firebug installed to take a peak behind the scenes. I just noticed that hitting any non-character button also seems to

[Proto-Scripty] Re: Ajax Autocomplete in PHP Loop

2008-10-08 Thread kevandju
Example of what HTML looks like if a user chooses to add 3 channels: tr class=records td align=leftinput type=checkbox class=form name=addch[] value=0 checked/td td align=leftinput type=text class=form name=hlp_chan_num[] size=5 value=2/td td align=leftinput type=text class=form

[Proto-Scripty] Re: Ajax Autocomplete in PHP Loop

2008-10-08 Thread Hector Virgen
The problem is that each of your input boxes have the same ID. All instance of the Autocompleter are being attached to that ID, and the DOM only returns the first one. On Wed, Oct 8, 2008 at 12:42 PM, kevandju [EMAIL PROTECTED] wrote: Example of what HTML looks like if a user chooses to add 3

[Proto-Scripty] Re: Ajax Autocomplete in PHP Loop

2008-10-08 Thread kevandju
This is why i'm using the paramName function, because they all have to be the same for them to be in a loop. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group,

[Proto-Scripty] Re: Ajax Autocomplete in PHP Loop

2008-10-08 Thread kevandju
Hector, Thank you so much!! I'm so glad I finally posted this problem on the forum. It worked perfectly. Not sure how I ever had this working before, I must have done something similar in the past and removed it. --~--~-~--~~~---~--~~ You received this

[Proto-Scripty] Re: Drag-n-drop: Scriptaculous automatically writing inline style?

2008-10-08 Thread lfortin
Hi jmanry, I don't know if this can help you, but if you use a deferred or delayed function when trying to change the left value, or class, like this: onEnd: function(draggable, event) { (function() { $(this).setStyle({ left: whatever }).addClassName('whatever');

[Proto-Scripty] Re: Getting Text Nodes of Elements

2008-10-08 Thread solidhex
The DOM methods for manipulating text nodes are pretty fail safe these days, once you clean up the white space. If you're creating the HTML chunks dynamically, it's much easier to use insert and update methods, but for cases where you need to access existing text nodes, Prototype currently