Re: [Proto-Scripty] Re: Dynamic file upload input creation

2010-07-01 Thread Paul Kim
Yes, the way you would do this in prototype is to create an html element such as a button, link, input, etc and add an onclick event handler to that element. When the onclick event is invoked on that element, you would want to use Element.insert() to dynamically insert a new file input element to

Re: [Proto-Scripty] Do I stop observing events on element with Ajax.Autocompleter using Event.stopObserving()

2010-04-30 Thread Paul Kim
Thank you for your solution. Now my form removes Ajax.Autocompleter when I remove a form element. On Thu, Apr 29, 2010 at 11:49 PM, Sébastien Gruhier sgruh...@gmail.comwrote: Hi I'll add a Ajax.Autocompleter#release method like this. Ajax.Autocompleter.addMethods({ release: function() {

[Proto-Scripty] Error with Draggable or just the way I'm using it?

2010-04-17 Thread Paul
Hi all, I was wondering if anyone could help with an issue I'm seeing when trying to use Draggables with scriptaculous 1.8.1. My code is of the following form, where I loop through an array of DOM elements and create a Draggable providing the element's id: for (var i = 0; i els.length; i++) {

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

2010-02-22 Thread Paul Kim
Hi Walter, if you want to get all similar elements up to but not including the next head, I would use Prototype's Element.nextSiblings() to loop through all elements with the same tagName and break when the tagName is different. Here is a function I created just now that would hopefully do what

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

2010-02-22 Thread Paul Kim
; } On Mon, Feb 22, 2010 at 9:50 AM, Alex Wallace alexmlwall...@gmail.comwrote: Paul, one recommendation: store the results of element.nextSiblings() in a local variable outside of the loop. DOM traversals are pretty slow. Best, Alex On Mon, Feb 22, 2010 at 12:28 PM, Paul Kim kimba

Re: [Proto-Scripty] Re: How can I pause and resume PeriodicalExecuter?

2010-02-10 Thread Paul Kim
Hi, I was able to pause and resume PeriodicalExecuter without using your PeriodicalExecuter class. I ended up using the standard PeriodicalExecuter#stop method and resumed the PeriodicalExecuter by delaying the execution for 5 seconds using the Function#delay method and by binding it to the

Re: [Proto-Scripty] Multiple timed slideshows

2010-02-01 Thread Paul Kim
I don't know of any examples of what you are trying to achieve. However, it could be accomplished using PeriodicalExecuter and Effect.appear/Effect.fade. On Sun, Jan 31, 2010 at 12:16 PM, greyhound b...@greyhound-computing.comwrote: Hi everyone, I have been using the script library to create

Re: [Proto-Scripty] Re: Help with blindup/blinddown effect using mouseover/mouseout events

2010-01-13 Thread Paul Kim
. I don't think I would have been able to figure out this problem without your help so THANK YOU VERY MUCH! On Wed, Jan 13, 2010 at 11:13 AM, david david.brill...@gmail.com wrote: Hi Paul, sorry, I made a mistake, in your case, it return the Element and not a scriptaculous Effect Object. I

Re: [Proto-Scripty] Re: Help with blindup/blinddown effect using mouseover/mouseout events

2010-01-12 Thread Paul Kim
Hi David, thank you for your response and what you explained is exactly what I'm trying to do. I have tried your code sample, but I get an error from the Firebug console: effectInExecution.cancel is not a function. Here is the code that I have used: http://pastie.org/775288. It seems that

Re: [Proto-Scripty] Question on performance and SEO optimization regarding javascript to create elements

2010-01-08 Thread Paul Kim
Thanks for your opinion. I think I will take the DOM approach as well. On Fri, Jan 8, 2010 at 1:12 AM, Alex McAuley webmas...@thecarmarketplace.com wrote: Some SEO experts will argue that google for example will mark you down for hidden content in a page as it may think you are trying to

Re: [Proto-Scripty] How can I observe elements with class=test_1, test_2, test_3 or first_test, second_test, third_test?

2009-12-31 Thread Paul Kim
Sorry, but I'm afraid your simple-but-not-smart way addresses the problem because I am observing elements with class, not id. On Thu, Dec 31, 2009 at 2:30 AM, Frédéric f...@gbiloba.org wrote: On jeudi 31 décembre 2009, kimbaudi wrote: Hi, I know how to observe elements with class=test.

Re: [Proto-Scripty] How can I observe elements with class=test_1, test_2, test_3 or first_test, second_test, third_test?

2009-12-31 Thread Paul Kim
That is a great solution if I have a few elements with class that starts with test_ or ends with _test. But what if I have 1,000 elements that start with test_ or ends with _test? Do you really want me to do this: $$(.'test_1', 'test_2', ... 'test_1000') or $$('first_test', 'second_test', ...

Re: [Proto-Scripty] How can I observe elements with class=test_1, test_2, test_3 or first_test, second_test, third_test?

2009-12-31 Thread Paul Kim
on the client Secondly. If you have to have 1000 elements on a single page that require observers -I- would go back to thee drawing board and rethink my application. Alex Mcauley http://www.thevacancymarket.com - Original Message - *From:* Paul Kim kimba...@gmail.com *To:* prototype

Re: [Proto-Scripty] How can I observe elements with class=test_1, test_2, test_3 or first_test, second_test, third_test?

2009-12-31 Thread Paul Kim
is a pastie to add onclick observers to elements with a class that has a suffix of _test: http://pastie.org/762433. Glad to know that Prototype supports CSS3 selectors for the $$ function. Cheers. On Thu, Dec 31, 2009 at 3:49 AM, Paul Kim kimba...@gmail.com wrote: Sorry, I was just suggesting

Re: [Proto-Scripty] setOpacity has no effect in IE8

2009-12-31 Thread Paul Kim
I do not experience your problem of having Element.setOpacity not working in IE8 w/o compatibility mode. Here is a pastie that demonstrates Element.setOpacity working in IE8: http://pastie.org/762888. If you view this in IE8 w/o compatibility mode, you will notice that the setOpacity makes the

[Proto-Scripty] Scriptaculous Drag Drop Sortables

2009-10-24 Thread Paul
even compensate your for your time, if you can show me my example working (via screencast video or something). for reference: http://wiki.github.com/madrobby/scriptaculous/sortable-create http://www.gregphoto.net/sortable/advanced/ Thanks Paul

[Proto-Scripty] How do I pass other parameters to Autocompleter?

2009-09-13 Thread Paul G
: { parameters: 'id='+myid } How can I pass the id as a query parameter in the 2nd Autocompleter? Thanks, Paul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email

[Proto-Scripty] Re: stopping the PeriodicalExecuter

2009-08-27 Thread Paul Kim
Wouldn't this work? var pe = new PeriodicalExecuter(function(pe) {outsideFunction();}, 3); pe.stop(); On Thu, Aug 27, 2009 at 1:06 AM, T.J. Crowder t...@crowdersoftware.comwrote: Hi, I've searched high low for this but I haven't been able to dig anything specific up about stopping the

[Proto-Scripty] Re: Which parameters to stopObserving are optional?

2009-08-19 Thread Paul E. G. Lynch
Okay, I do see it documented there. I was looking at the PDF version I downloaded a while ago, which is missing that part. I should have checked the online version first, but I didn't think of it. Thanks for your help, --Paul On Aug 18, 5:27 pm, T.J. Crowder t...@crowdersoftware.com

[Proto-Scripty] Which parameters to stopObserving are optional?

2009-08-18 Thread Paul Lynch
that way. Thanks, --Paul --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group

[Proto-Scripty] Re: Help! Is it possible to tell which element I invoked without the use of id attribute

2009-07-15 Thread Paul Kim
Thanks Alex, this was exactly what I was looking for: for(i=0;i=$$('#slidebtn li').length) { if(i==3) { alert('Got the 4th list element'); } - Paul On Tue, Jul 14, 2009 at 11:08 PM, Alex McAuley webmas...@thecarmarketplace.com wrote: You can collect the LI's under the UL like this if you

[Proto-Scripty] Help! Unable to defer function to run when interpreter is idle

2009-07-15 Thread Paul Kim
://icecreamcola.com/testing/ I have pasted the code in pastie.org: http://pastie.org/546795 Any help in the right direction would be most appreciated. - Paul K --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: Help! Unable to defer function to run when interpreter is idle

2009-07-15 Thread Paul Kim
, but instead wanted to prevent the fade/appear effects from triggering when the image is currently undergoing a fade/appear effect. Do you know if this is even possible? - Paul On Wed, Jul 15, 2009 at 7:28 AM, Mike Glen mike.g...@mindsweep.net wrote: Paul Kim wrote: Basically

[Proto-Scripty] Help! Is it possible to tell which element I invoked without the use of id attribute

2009-07-14 Thread Paul Kim
); // this will give me the src attribute value of the img element alert(element.src); }); }; The reason I want to return the nth index of the li element is so that I can pass that as an argument to a function. Any help in the right direction will be much appreciated. - Paul K

[Proto-Scripty] Re: Why does document.viewport.getDimensions() not work without a DOCTYPE?

2009-06-08 Thread Paul Kim
I guess this mean that I must use DOCTYPES when using Prototype. I was expecting Prototype to work consistently whether or not there was a DOCTYPE present. - Paul On Mon, Jun 8, 2009 at 11:07 AM, Alex McAuley webmas...@thecarmarketplace.com wrote: This has been discussed many times before

[Proto-Scripty] Re: Help! How to get document.body height using Element.getDimensions

2009-05-07 Thread Paul Kim
have tested the code on IE7, Firefox 3, Opera 9, and Safari 3 on my Windows Vista operating system. - Paul On Thu, May 7, 2009 at 9:54 AM, T.J. Crowder t...@crowdersoftware.com wrote: Hi Paul, Hmmm, that's not what it's documented to do. Looking at the code, it's clearly trying to give you

[Proto-Scripty] Re: Help! How to get document.body height using Element.getDimensions

2009-05-07 Thread Paul Kim
Hi T.J., I'm sorry for any confusion, but I was trying to get the dimension of the browser window this whole time. I misunderstood the body element dimension as being the same thing as the browser window dimension. - Paul K On Thu, May 7, 2009 at 10:02 AM, Paul Kim kimba...@gmail.com wrote

[Proto-Scripty] Re: Help! How to get document.body height using Element.getDimensions

2009-05-06 Thread Paul Kim
(Internet Explorer in particular), I thought there was a simple method in Prototype that could easily determine the body element's width and height. - Paul K On Wed, May 6, 2009 at 2:05 AM, T.J. Crowder t...@crowdersoftware.com wrote: Hi Paul, Just to add to that, I'm guessing the height

[Proto-Scripty] Re: AJAX

2009-02-15 Thread Paul
Thanks for all your help with this, I really don't know what was happening but changing the javascript files for new copies has fixed it for some reason - thanks for the advice though - its certainly prompted me to go and but exception handling in. Paul On Feb 12, 3:24 pm, disccomp discc

[Proto-Scripty] AJAX

2009-02-11 Thread Paul
-www-form-urlencoded': print(cgi.parse_header(self.headers.getheader('content- type'))) data = self.rfile print(data.data) Thank you for any help, I really appreciate it as I am totally stumped Paul

[Proto-Scripty] Re: AJAX

2009-02-11 Thread Paul
String('(' + this.header('X-JSON');)) */ In the javascript errors console I am getting a: Error: no element found Source File: http://127.0.0.1/ Line: 1 but am not sure if this is just due to me not sending a response. Sorry for a bit of a bitty post, and thankyou for your help so far, Paul P.S

[Proto-Scripty] Re: AJAX

2009-02-11 Thread Paul
-JSON');)) */ Thanks, Paul On Feb 11, 7:38 pm, Paul pauljeffer...@gmail.com wrote: Hi, Thanks for all your help so far. I've added the callback function so now have: SCRIPT type=text/javascript         // ![CDATA[         Sortable.create('group1',{tag:'div',dropOnEmpty: true, containment

[Proto-Scripty] Ajax.Request can open Firefox's Downloads window (??)

2009-02-05 Thread Paul Lynch
. Does anyone have any clues as to what the underlying cause might be? Thanks, --Paul p.s. Someone is bound to want to point out that using synchronous Ajax is a bad idea. I understand that. --~--~-~--~~~---~--~~ You received this message because you

[Proto-Scripty] Re: Debugging help / suggestions

2008-12-22 Thread Paul Lynch
customer that she is just imagining things-- but I don't recommend that. :-) --Paul On Dec 22, 12:05 pm, pedz pedz...@gmail.com wrote: I hope this is not too far off topic. I have a page that has a PeriodicalExecuter as well as Sound that plays a beep message.  One of my customers runs

[Proto-Scripty] Re: Help! Clicking on onclick event handler too quickly breaks Effect.BlindUp/Effect.BlindDown

2008-11-04 Thread Paul Kim
Hi Baglan, Thanks for pointing me in the right direction. Now it works perfectly! Thank you! - Paul On Tue, Nov 4, 2008 at 4:45 AM, Baglan [EMAIL PROTECTED] wrote: Sure, there's a feature called 'queues': http://github.com/madrobby/scriptaculous/wikis/effect-queues You can queue

[Proto-Scripty] Re: Sortable.create Issue with IE6 7

2008-10-31 Thread Paul Wesson
'; } That has resolved the issue by making the browser re-display the div. On Oct 30, 3:06 pm, Paul Wesson [EMAIL PROTECTED] wrote: I'm using a pretty basic example that works just find in FireFox but does not work in IE 6 or 7. Have a look at this sample (not mine, but is what I used to create my

[Proto-Scripty] Re: Effect.toggle slide doesn't work well with unordered/ordered list elements

2008-10-31 Thread Paul Kim
Thanks for the solution David. Do you have any idea why this worked for Opera when the ul element wasn't encapsulated inside a div element? - Paul On Fri, Oct 31, 2008 at 4:42 AM, david [EMAIL PROTECTED] wrote: Hi Paul, You'll have to change the HTML to: div class=menu h3 id=menu

[Proto-Scripty] Sortable.create Issue with IE6 7

2008-10-30 Thread Paul Wesson
grab the Group 2 heading and start to move it, you'll see the contents re-display properly. Does anyone have any ideas what is causing this in IE? Is there a CSS setting required somewhere or something? Is there something I should be doing in the onUpdate callback? Thanks Paul

[Proto-Scripty] Re: Prototype's setOpacity does not work consistently in all browsers

2008-10-27 Thread Paul Kim
trying to do is created an absolutely positioned div element with an opacity of 0.5 and insert it to the bottom of the body tag, not set the body tag itself with an opacity of 0.5. - Paul On Mon, Oct 27, 2008 at 1:20 AM, Tobie Langel [EMAIL PROTECTED]wrote: Element.extend(document.body

[Proto-Scripty] Re: Prototype's setOpacity does not work consistently in all browsers

2008-10-27 Thread Paul Kim
, setOpacity works the way it should. Thanks Tobie for your response. Without it, I don't think I would have caught that mistake. Sorry about that. - Paul On Mon, Oct 27, 2008 at 8:33 AM, Paul Kim [EMAIL PROTECTED] wrote: I don't think document.body.insert({bottom: newDiv}).setOpacity(0.5