[Proto-Scripty] Re: Pulse effect sometimes stopping on darkened version
As an afterthought, I guess it is by design. If you trigger it, it probably uses the current state as a starting point. I guess what is needed is a way to tell it to stop the current animation if triggered again before it finishes, or ignore subsequent requests until the current animation is complete. I tried queueing effects, but had no luck. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Pulse effect sometimes stopping on darkened version
The app as a whole is complicated, but what is driving the effects isnt. It's simply html with a plain old link: link and the attractAttention function is a one-liner: function attractAttention(obj){ new Effect.Pulsate(obj, { pulses: 3, duration: 1}); } Apart from the "Click a Location Marker" link, which also moves the map etc. Basically, for a demo, rollover just the last link (My Locations) repeatedly. As I said, that effectively executes one line: new Effect.Pulsate($('pb_user_mylocs_button'), { pulses: 3, duration: 1}); It's clearly not my code. If you go to http://wiki.github.com/madrobby/scriptaculous/effect-pulsate and click the demo repeatedly, you get the same problem. On Dec 23, 8:54 pm, Walter Lee Davis wrote: > Can you make a cut-down example that shows only the trigger element > and the effect element? I tried looking at the source, and there's > just so much else going on in there that I don't know where to start. > Is that big lump of code in the middle (begins with unescape) what you > are 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. Any ideas > > on what I may be doing wrong or how I may work around it? > > >http://placebook.tv- hover the links in the instructions panel on the > > left repeatedly. > > > cheers > > > -- > > > 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, send email to > > prototype-scriptaculous+unsubscr...@googlegroups.com > > . > > For more options, visit this group > > athttp://groups.google.com/group/prototype-scriptaculous?hl=en > > . -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Problem with prototype parameters
Hi, You're supplying the parameters as a string, which means *you're* taking responsibility for URL-encoding them correctly[1] -- but you're not. I suggest letting Prototype handle the encoding, by supplying your parameters as an object: parameters: {name: $F('name')}, [1] http://prototypejs.org/api/ajax/options HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Dec 23, 4:49 pm, César wrote: > Hi I need some help: > > When you enter a character (?) As parameter returns me empty. I put > this example: > > In a text box with id = "name" entry = "Hi" and through this function: > > function sendRequest() { > new Ajax.Request("contact.php", > { > method: 'post', > parameters: 'name='+$F('name'), > onCreate : function startLoading() { > $('respuesta').innerHTML= ' width="16" height="16" align="absmiddle">'; > Form.Element.disable("Envia"); > }, > onComplete: function showResponse(req){ > $('respuesta').innerHTML= req.responseText; > Form.Element.enable("Envia"); > if(req.responseText == "success") { > $('mensaje_contacto').innerHTML= > 'success'; > } > } > > }); > } > > I return "Hi" satisfactorily. But if I enter "Hi?" I returned empty. > It seems that if I enter (?) Occurs an error in the parameter section. > How can I solve this?. I hope your help. Thank you very much. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Problem with prototype parameters
Hi I need some help: When you enter a character (?) As parameter returns me empty. I put this example: In a text box with id = "name" entry = "Hi" and through this function: function sendRequest() { new Ajax.Request("contact.php", { method: 'post', parameters: 'name='+$F('name'), onCreate : function startLoading() { $('respuesta').innerHTML= ''; Form.Element.disable("Envia"); }, onComplete: function showResponse(req){ $('respuesta').innerHTML= req.responseText; Form.Element.enable("Envia"); if(req.responseText == "success") { $('mensaje_contacto').innerHTML= 'success'; } } }); } I return "Hi" satisfactorily. But if I enter "Hi?" I returned empty. It seems that if I enter (?) Occurs an error in the parameter section. How can I solve this?. I hope your help. Thank you very much. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Pulse effect sometimes stopping on darkened version
Can you make a cut-down example that shows only the trigger element and the effect element? I tried looking at the source, and there's just so much else going on in there that I don't know where to start. Is that big lump of code in the middle (begins with unescape) what you are 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. Any ideas > on what I may be doing wrong or how I may work around it? > > http://placebook.tv - hover the links in the instructions panel on the > left repeatedly. > > cheers > > -- > > 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, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en > . > > -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Pulse effect sometimes stopping on darkened version
OK, I have largely fixed browser compatibility. I was using a firefox method to get the window size and it was breaking things for everyone else. I have now removed the browser check, so you should be able to access the site. Tthanks! On Dec 23, 3:09 pm, evilC wrote: > Hmm. > 'twas prototype that mis-identified, not me. It's a very simple > Prototype.browser.x check. > Whatever, I have changed it to a choice box now, so you dont have to > redirect. > Unfortunately, my site seems down at the moment, so I will have to > upload the new version. > > On Dec 23, 12:26 pm, Walter Lee Davis wrote: > > > 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 > > > mouseover of some help text. Sometimes, however, the animation gets > > > stuck or something and you are stuck with a greyed out DIV. Any ideas > > > on what I may be doing wrong or how I may work around it? > > > >http://placebook.tv-hover the links in the instructions panel on the > > > left repeatedly. > > > > cheers > > > > -- > > > > 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, send email to > > > prototype-scriptaculous+unsubscr...@googlegroups.com > > > . > > > For more options, visit this group > > > athttp://groups.google.com/group/prototype-scriptaculous?hl=en > > > . -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Prototype UI Carousel
Hi, I have a big problem with prototype UI Carousel. Instead of using the "next_button" and "previous_button", I need to access carousel elements from a menu. For example clicking a menu link inside i need the carousel to scroll to the fourth carousel element. Could it really be so that there is no possibility to scroll to a specific carousel element from a custom button? Only next and previous...? Actually I am using (or trying to use) the carousel to scroll the entire content on my page only showing one carousel item(width:960px) at a time. Should I try to use some other carousel instead(jquery..)? Thanks for all answers! -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: Pulse effect sometimes stopping on darkened version
Hmm. 'twas prototype that mis-identified, not me. It's a very simple Prototype.browser.x check. Whatever, I have changed it to a choice box now, so you dont have to redirect. Unfortunately, my site seems down at the moment, so I will have to upload the new version. On Dec 23, 12:26 pm, Walter Lee Davis wrote: > 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 > > mouseover of some help text. Sometimes, however, the animation gets > > stuck or something and you are stuck with a greyed out DIV. Any ideas > > on what I may be doing wrong or how I may work around it? > > >http://placebook.tv- hover the links in the instructions panel on the > > left repeatedly. > > > cheers > > > -- > > > 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, send email to > > prototype-scriptaculous+unsubscr...@googlegroups.com > > . > > For more options, visit this group > > athttp://groups.google.com/group/prototype-scriptaculous?hl=en > > . -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Pulse effect sometimes stopping on darkened version
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 > mouseover of some help text. Sometimes, however, the animation gets > stuck or something and you are stuck with a greyed out DIV. Any ideas > on what I may be doing wrong or how I may work around it? > > http://placebook.tv - hover the links in the instructions panel on the > left repeatedly. > > cheers > > -- > > 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, send email to > prototype-scriptaculous+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en > . > > -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
Re: [Proto-Scripty] Need immediate help closing one blind when another opens
I'm not a programmer either, but here's how I would solve your problem I assume that you have some function that does the "show info" stuff and that function is called whenever a click is made. So I would store in a global variable the name of the element that is "opened" But before you store this info, I would check if that variable has already some value which means that another element is opened and therefore you could close it But again, I'm not a pro, so forgive me if I this solution is not elegant Christophe Le 22 déc. 2009 à 19:23, Herb a écrit : > Hey everybody, > > I' m not a programmer. I need to be able to click on a link, have it > show info (blind, slide, appear) then have it close when another link > is closed. Like a toggle but with a different link. > > I've tried adapting the accordion: http://www.stickmanlabs.com/accordion/ > but I need to have my trigger links separate from the actual > accordion. > > If anybody could help me quickly, I'd be most appreciative. > > Herb > > -- > > 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...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/prototype-scriptaculous?hl=en. > > -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Re: instantiate class problem on IE
On Dec 23, 4:17 am, david wrote: > Hi Loris, > > I think that your trouble is normal, because IE don't allow to > instantiate method on native object. You might need to re-think that statement. From ECMA-262: "Native Object "A native object is any object supplied by an ECMAScript implementation independent of the host environment. Standard native objects are defined in this specification. Some native objects are built-in;others may be constructed during the course of execution of an ECMAScript program." Can you imagine the ramifications of IE not allowing native objects to have methods? :-) Perhaps you meant host object. But if that were true, most of Prototype.js would not work at all in IE. > Generally it's not a good idea to extend native objects because your > not sure that another JS will not use the same method name !! Perhaps you did mean host object. Yes, it's a bad idea to add *non- standard* properties to host objects. How do you reconcile that notion with the use of Prototype.js's $() function? -- Rob -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Need immediate help closing one blind when another opens
Hey everybody, I' m not a programmer. I need to be able to click on a link, have it show info (blind, slide, appear) then have it close when another link is closed. Like a toggle but with a different link. I've tried adapting the accordion: http://www.stickmanlabs.com/accordion/ but I need to have my trigger links separate from the actual accordion. If anybody could help me quickly, I'd be most appreciative. Herb -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
[Proto-Scripty] Prototype Form.serializeElements
Hello, I've run into a response performance problem with IE6. My form has a 4 scrollable tables that each contain up to 2000 check boxes (names: typeA, typeB, typeC, typeD). serialize() is taking a long time to process, so i was attempting to speed it up by only serializing the check boxes that I need by using: Form.serializeElements( $("frm").getInputs('checkbox', "typeA"), true); this works fine but i also want to serialize typeB and typeC. I need everything but typeD which happens to have the the greatest number of checkboxes. I tried creating an array for the check box names arChkBoxes = [ "typeA", "typeB", "typeC"]; var params = Form.serializeElements( $("frm").getInputs('checkbox', arChkBoxes ), true); Any help on the correct syntax or ideas on how to speed up the serialization is appreciated! -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.