Re: [Proto-Scripty] not send data in URL?

2010-07-20 Thread Richard Quadling
On 20 July 2010 06:24, geoffcox wrote: > Hello > > I have this php code > > for ($count=0;$count echo " target='content'>BTEC First - Unit " . $units[$count] . "\n"; > } > > which sends the data to file index.php as part of the URL. > > Is it possible to use POST instead so that the path info is n

[Proto-Scripty] Re: Prototype and WYSIWYG editors weird FF bug

2010-07-20 Thread T.J. Crowder
Hi, I don't think it's possible to help with this without a lot more information. What's `editorDocument`, for instance? You said that the failure occurs in `setStyle`; so you're going to need to show us your call to `setStyle` at the very least (or your call to whatever else in Prototype called `

[Proto-Scripty] Re: Prototype and WYSIWYG editors weird FF bug

2010-07-20 Thread Gindi Bar Yahav
OK, sorry about the lack of details here is the define of editorDocument /** Iframe exists already? **/ if ( $("PearServicesEditor_" + this.editorID + "_IFrame") ) { this.editorFrame=

[Proto-Scripty] Effect.multiple and toggle

2010-07-20 Thread Febo
Hello, I'd like to use the toggle effect on multiple object at the same time I tried with Effect.multiple(['id_1','id_2','id_n'], Effect.toggle) but it doesn't work, also I don't know where/how to pass the 'appear' parameter I'm used to call toggle in this way: Effect.toggle('my_id_of_interest',

[Proto-Scripty] Re: Prototype and WYSIWYG editors weird FF bug

2010-07-20 Thread T.J. Crowder
Hi, And at what point does the error occur? One of the setStyle calls? Which one? I mean, I could guess, but guessing is a waste of time. -- T.J. On Jul 20, 1:33 pm, Gindi Bar Yahav wrote: > OK, sorry about the lack of details > here is the define of editorDocument > > /**             Iframe ex

[Proto-Scripty] Re: Prototype and WYSIWYG editors weird FF bug

2010-07-20 Thread Gindi Bar Yahav
OK, the bug in here setStyle: function(element, styles) { 2206 element = $(element); 2207 var elementStyle = element.style, match; 2208 if (Object.isString(styles)) { 2209 element.style.cssText += ';' + styles; 2210 return styles.include('opacity') ? 2211 element.setOpacity(styles.match(/opacity:\s

[Proto-Scripty] Re: Prototype and WYSIWYG editors weird FF bug

2010-07-20 Thread T.J. Crowder
Hi, I meant where in _your_ code (but that's still useful info), e.g., this call to setStyle: this.editorFrame.setStyle( 'border: 1px inset;' ); (BTW, the semicolon inside the quotes there is an error, although most browsers will ignore it.) ...or this one: this.editorFrame.setStyle( {

Re: [Proto-Scripty] Effect.multiple and toggle

2010-07-20 Thread Richard Quadling
On 20 July 2010 15:55, Febo wrote: > Hello, > I'd like to use the toggle effect on multiple object at the same time > I tried with > > Effect.multiple(['id_1','id_2','id_n'], Effect.toggle) > > but it doesn't work, also I don't know where/how to pass the 'appear' > parameter > > I'm used to call t

Re: [Proto-Scripty] Effect.multiple and toggle

2010-07-20 Thread Ralph Brickley
This is a revelation to me. I didn't know Effect had a multiple. Also, what is curry? My solution has been to tag those elements with a class, ie Then use $$('effects') to get each item and all effects... On each Sent from my iPhone On Jul 20, 2010, at 9:08 AM, Richard Quadling wrote: > On

Re: [Proto-Scripty] Effect.multiple and toggle

2010-07-20 Thread Richard Quadling
On 20 July 2010 17:59, Ralph Brickley wrote: > This is a revelation to me. I didn't know Effect had a multiple. Also, what > is curry? > > My solution has been to tag those elements with a class, ie class="effects"> > > Then use $$('effects') to get each item and all effects... On each > > Sent

[Proto-Scripty] Re: not send data in URL?

2010-07-20 Thread geoffcox
> You could have to create a form with am for each > unit and folder and a bit of JS to turn an into a form submitter - > or just use a button. > > If you want to use ajax, then the same mechanism - create the form, > but use an ajax submitter to process the forms. Thanks for your reply. Isn't

[Proto-Scripty] Morph and setTimeout

2010-07-20 Thread Martín Marqués
I'm trying to mix Effect.Morph and setTimeout() to enlarge a div and after the div finishes enlargening another div inside it appears (this is where I use setTimeout()). The problema is that I get a error and can't find out why. Here is the code: function expandir(id,newh){ new Effect.Morph('

Re: [Proto-Scripty] Morph and setTimeout

2010-07-20 Thread Ralph Brickley
JavaScript doesn't know what the +id is because it's within the double quotes. Do this instead > setTimeout("$('masinfo'"+id+").show()",500,id); > } Sent from my iPhone On Jul 20, 2010, at 12:59 PM, Martín Marqués wrote: > I'm trying to mix Effect.Morph and setTimeout() to enlarge a div and

Re: [Proto-Scripty] Morph and setTimeout

2010-07-20 Thread Walter Lee Davis
The setTimeout only knows what the value of id is when it is created, not when it is invoked. So it's telling you the truth. At the moment when the page loaded, there was no value for id, so there still isn't one inside of setTimeout's little bubble. There's a nice feature in all the Effect

RE: [Proto-Scripty] Morph and setTimeout

2010-07-20 Thread Rick . Wellman
I'm pretty sure Ralph's suggestion will work. I prefer to write this in a way which will hopefully highlight the potential "bug" to a less-experienced maintenance developer after I have moved onto a 6-digit consulting career that I run two-hours a day from the Bahamas (boy, sure hope my idea wo

RE: [Proto-Scripty] Morph and setTimeout

2010-07-20 Thread Rick . Wellman
Oops, already made a mistake; Make that: var cmd = "$('masinfo'" + id + ").show()"; setTimeout(cmd,500,id); -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Rick.Wellman Sent: Tuesday, July 20, 2010 3:42 PM

Re: [Proto-Scripty] Morph and setTimeout

2010-07-20 Thread Martín Marqués
2010/7/20 Rick.Wellman : > I'm pretty sure Ralph's suggestion will work.  I prefer to write this in a > way which will hopefully highlight the potential "bug" to a less-experienced > maintenance developer after I have moved onto a 6-digit consulting career > that I run two-hours a day from the B

Re: [Proto-Scripty] Morph and setTimeout

2010-07-20 Thread Martín Marqués
2010/7/20 Rick.Wellman : > Oops, already made a mistake;  Make that: > > var cmd = "$('masinfo'" + id + ").show()"; > setTimeout(cmd,500,id); Yeah, this is how I made it work, but it's not pretty at all. Walter gave me the beautiful afterFinish. Thanks Walter! -- Martín Marqués select 'martin.

Re: [Proto-Scripty] Morph and setTimeout

2010-07-20 Thread Ralph Brickley
AfterFinish!!! Brilliant. Sent from my iPhone On Jul 20, 2010, at 2:15 PM, Martín Marqués wrote: > 2010/7/20 Rick.Wellman : >> Oops, already made a mistake; Make that: >> >> var cmd = "$('masinfo'" + id + ").show()"; >> setTimeout(cmd,500,id); > > Yeah, this is how I made it work, but it's

Re: [Proto-Scripty] Re: not send data in URL?

2010-07-20 Thread Richard Quadling
On 20 July 2010 20:58, geoffcox wrote: > >> You could have to create a form with am for each >> unit and folder and a bit of JS to turn an into a form submitter - >> or just use a button. >> >> If you want to use ajax, then the same mechanism - create the form, >> but use an ajax submitter to pr

[Proto-Scripty] Re: Effect.multiple and toggle

2010-07-20 Thread Febo
Thanks Richard and Ralph, I'm studing the code but my feeling is that Effect.toggle can't handle the Object which is always passed by Effect.multiple as last parameter or let's say "effect". I don't know very much JavaScript, so I came up with this solution. I added a funciton to public/javascrip

[Proto-Scripty] Re: not send data in URL?

2010-07-20 Thread geoffcox
> That sort of thing. But I'd use a form and add an observer on the > submit. This would allow for graceful degradation. OK - thanks, Geoff -- 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 pr