[Proto-Scripty] After Ajax call page div not always updated.
Hello, I have created a checkout process for a webshop where each step is loaded through ajax. Now it appears that 1 in every 100 customers has problems loading the second step. They press a button to launch the ajax call, but the div which needs to get updated does not change. Ergo the customer cannot order and thinks the shop is broken. Do you guys have any clew on whats going on? Or maybe a workaround? Is this a caching problem. Prototype JavaScript framework, version 1.6.0.3 Scriptaculous Version 1.8.1 Thanks in advance, Vincent --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: KEY_DOWN event
Hi, If you want to know whether the control key was down when the mouse was clicked, then yes, the ctrlKey property of the mouse click event object is what you want. element.observe('click', function(event) { if (event.ctrlKey) { // Something cool here } } https://developer.mozilla.org/en/DOM/event.ctrlKey If you're looking to receive an event (separate from the click) when the control key is pressed, that varies quite a bit by browser: http://unixpapa.com/js/key.html But my impression is that you're just looking for it when the mouse is clicked, which is much more reliable. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Aug 25, 12:09 am, Ooypunk ooyp...@gmail.com wrote: Hi, I was looking for a way to capture a mouse-click plus ctrl-button. As I am using Prototype now for some time (it's great!), I thought Prototype could help me with this too. Sure, the manual is clear enough of how to capture a mouse-click event (that works fine here), but how about the ctrl-button? According to the manual, there's a list of key codes to be used (KEY_DOWN, for example), but there is no KEY_CTRL and there is nowhere to be found how they should be used. It says it's self explanatory, but for me it isn't. :( I think I can get it to work with event.ctrlKey, but I have a feeling, this is not the way. Thanks in advance. Ooypunk PS. I hope I made my problem clear enough, I know I'm not very good at explaining, especially because english is not my mother tongue. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: effect.Toggle 'Blind' to the right or left??
Effect.BlindUp() Effect.BlindDown() You will probably need to adjust your code if you want it to go up / down On the github page there is some code for left/right too Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Metajake yosf...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Tuesday, August 25, 2009 1:59 AM Subject: [Proto-Scripty] effect.Toggle 'Blind' to the right or left?? Howdy all, I'm brand new to Scripaculous. If there's a better place I can go to answer my question, please link me. I'm using the effect.Toggle 'blind' effect to reveal a submenu of links. My question is, can I reveal the hidden submenu in a direction other then just Down? Here is my example: http://www.jacobnorth.info When you click on Portfolio, I'd like the submenu to reveal itself, sliding to the Right. Thanks for your help. Jake --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: After Ajax call page div not always updated.
Could you post an example of your code to a pastie and send us the link - perhaps we can work out whats going on for you Alex Mcauley http://www.thevacancymarket.com - Original Message - From: vunky v.bak...@tyd-group.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Tuesday, August 25, 2009 9:24 AM Subject: [Proto-Scripty] After Ajax call page div not always updated. Hello, I have created a checkout process for a webshop where each step is loaded through ajax. Now it appears that 1 in every 100 customers has problems loading the second step. They press a button to launch the ajax call, but the div which needs to get updated does not change. Ergo the customer cannot order and thinks the shop is broken. Do you guys have any clew on whats going on? Or maybe a workaround? Is this a caching problem. Prototype JavaScript framework, version 1.6.0.3 Scriptaculous Version 1.8.1 Thanks in advance, Vincent --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: After Ajax call page div not always updated.
Hi Vincent, just a guess, do you check all received status in the AJAX request ? -- david On 25 août, 11:38, Alex McAuley webmas...@thecarmarketplace.com wrote: Could you post an example of your code to a pastie and send us the link - perhaps we can work out whats going on for you Alex Mcauleyhttp://www.thevacancymarket.com - Original Message - From: vunky v.bak...@tyd-group.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Tuesday, August 25, 2009 9:24 AM Subject: [Proto-Scripty] After Ajax call page div not always updated. Hello, I have created a checkout process for a webshop where each step is loaded through ajax. Now it appears that 1 in every 100 customers has problems loading the second step. They press a button to launch the ajax call, but the div which needs to get updated does not change. Ergo the customer cannot order and thinks the shop is broken. Do you guys have any clew on whats going on? Or maybe a workaround? Is this a caching problem. Prototype JavaScript framework, version 1.6.0.3 Scriptaculous Version 1.8.1 Thanks in advance, Vincent --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: effect.Toggle 'Blind' to the right or left??
Hi Jake, look at scriptaculous wiki: http://wiki.github.com/madrobby/scriptaculous/effect-blindup there is an exemple of a blind left. It could be simple to adapte. -- david On 25 août, 11:37, Alex McAuley webmas...@thecarmarketplace.com wrote: Effect.BlindUp() Effect.BlindDown() You will probably need to adjust your code if you want it to go up / down On the github page there is some code for left/right too Alex Mcauleyhttp://www.thevacancymarket.com - Original Message - From: Metajake yosf...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Tuesday, August 25, 2009 1:59 AM Subject: [Proto-Scripty] effect.Toggle 'Blind' to the right or left?? Howdy all, I'm brand new to Scripaculous. If there's a better place I can go to answer my question, please link me. I'm using the effect.Toggle 'blind' effect to reveal a submenu of links. My question is, can I reveal the hidden submenu in a direction other then just Down? Here is my example:http://www.jacobnorth.info When you click on Portfolio, I'd like the submenu to reveal itself, sliding to the Right. Thanks for your help. Jake --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: to InnerHTML or not to innerHTML?
david wrote: Hi molo, I think the innerHTML is the simpliest way to grab text inside a node. You could use prototype to do this, but treat your text node as a DOM node and use prototype traversal functions to get the node and verify its a text node. btw, not very interresting. On the inconstency of innerHTML method across browser, I think there is only on the way browser treat return inside an HTML file as or not as a text node, but if any other inconsistency exist, ligth my mind :) There's the textContent Property, too, which *is* inconsistent, especially regarding that it is called innerText in IE. I don't think it's part of any standard at all. I have sometimes used it like this: var text = elem.textContent || elem.innerText; It has the advantage of filtering out all non-text stuff. But that doesn't seem to be needed in this special case, so it's probably worthless for you. Just thought I'd mention it. Have fun Daniel On 24 août, 17:58, Alex McAuley webmas...@thecarmarketplace.com wrote: Sorry been a long day - i didnt read the message properly! Alex Mcauleyhttp://www.thevacancymarket.com - Original Message - From: Andy Daykin daykina...@gmail.com To: prototype-scriptaculous@googlegroups.com Sent: Monday, August 24, 2009 4:46 PM Subject: [Proto-Scripty] Re: to InnerHTML or not to innerHTML? I think he's asking how to get the innerHTML, not to set it. I actually ran into this problem a few days ago and decided to use innerHTML, but I was wondering too if there was a prototype way to do it. I have also heard that innerHTML is not consistent across browsers. -- From: Alex McAuley webmas...@thecarmarketplace.com Sent: Monday, August 24, 2009 10:13 AM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Re: to InnerHTML or not to innerHTML? Molo: getValue will get the value of an element not its innerHTML. http://www.prototypejs.org/api/element/update i would use update(); $('someNode').update('liMy lovely html/li'); Alex Mcauley http://www.thevacancymarket.com - Original Message - From: molo maurice_lowent...@ssga.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Monday, August 24, 2009 3:10 PM Subject: [Proto-Scripty] to InnerHTML or not to innerHTML? Is there an alternative to innerHTML for getting the text in a td element (or any element) in the code below? I tried value and getValue but that did not work Is there any reason not to use innerHTML. I seem to remember reading that it is not a standardized way of doing things? thead id=headman style= tr td class=TableHeaderAccount/td td class=TableHeaderShares/td td class=TableHeaderRestricted Shares/td td class=TableHeaderCostLocal/td td class=TableHeaderCostBase/td td class=TableHeader/ /tr /thead header = $('headman'); headerTd = header.select('td.TableHeader'); headerTd.each(function(e){ cell = e.innerHTML; row = row + cell + \t; }); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: KEY_DOWN event
OK, then I'll go with that. Thanks! Only thing left for me to complain is that I still don't know what names like KEY_DOWN are for, or how they should be used, and that there's nothing in the manual (hint). On Aug 25, 11:37 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, If you want to know whether the control key was down when the mouse was clicked, then yes, the ctrlKey property of the mouse click event object is what you want. element.observe('click', function(event) { if (event.ctrlKey) { // Something cool here } } https://developer.mozilla.org/en/DOM/event.ctrlKey If you're looking to receive an event (separate from the click) when the control key is pressed, that varies quite a bit by browser:http://unixpapa.com/js/key.html But my impression is that you're just looking for it when the mouse is clicked, which is much more reliable. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Aug 25, 12:09 am, Ooypunk ooyp...@gmail.com wrote: Hi, I was looking for a way to capture a mouse-click plus ctrl-button. As I am using Prototype now for some time (it's great!), I thought Prototype could help me with this too. Sure, the manual is clear enough of how to capture a mouse-click event (that works fine here), but how about the ctrl-button? According to the manual, there's a list of key codes to be used (KEY_DOWN, for example), but there is no KEY_CTRL and there is nowhere to be found how they should be used. It says it's self explanatory, but for me it isn't. :( I think I can get it to work with event.ctrlKey, but I have a feeling, this is not the way. Thanks in advance. Ooypunk PS. I hope I made my problem clear enough, I know I'm not very good at explaining, especially because english is not my mother tongue. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: ajax.request routine fails in IE
I checked now in ie 6 its OK tehere is no ie7 around :) Yuval On 8/25/09, Milko Kretschmann mi...@kretschmann.nl wrote: Hi Yuval, Ok, thanks very much. Does it also work under IE7 (6)? Milko. On Aug 25, 2009, at 6:01 AM, yuval dagan wrote: Hi Miko Yes, thats what I checked and it worked great here on ie8. Yuval On Mon, Aug 24, 2009 at 10:56 PM, Milko Kretschmann mi...@kretschmann.nlwrote: Hello Yuval, Thank you very much for checking. Did you also test the url: http://www.cartesians.com/geefeenster/enter_ajax.php If you change country under Delivery Address then the content of the popup behind State/Province should change (via ajax). Thanks again. Milko. On Aug 24, 2009, at 9:25 PM, yuval dagan wrote: hi I checked now at home with ie8 and it works great. I checked also the net renderer with same ie and it didnt worked Yuval On Mon, Aug 24, 2009 at 8:06 PM, Walter Lee Davis wa...@wdstudio.comwrote: Most of the NetRenderers of the world don't process JavaScript and Ajax, unless you spend like a sailor for BrowserCam (where you get to remote into an actual Windows desktop and drive it in real time). One of the reasons I bought a new MacBook Pro last year was so I could install VMWare 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 webbased IE renderer ( http://ipinfo.info/netrenderer/index.php ). Here I get a Request Failed message when testing IE6. IE7/8 does not render any result at all. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: After Ajax call page div not always updated.
Hi Alex, I am using this link %= link_to_remote image_tag(/images/site/ registreren_stap2.png, :border = 0), :url = { :controller = :checkout, :action = :create_client_account } % And this function def create_client_account render :update do |page| page[:login_screen].visual_effect :fade, :duration = 0.4 page.delay(0.6) do page.replace_html login_screen, :partial = checkout/ create_client_account page[:login_screen].visual_effect :appear, :duration = 0.4 end end end On Aug 25, 11:38 am, Alex McAuley webmas...@thecarmarketplace.com wrote: Could you post an example of your code to a pastie and send us the link - perhaps we can work out whats going on for you Alex Mcauleyhttp://www.thevacancymarket.com - Original Message - From: vunky v.bak...@tyd-group.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Tuesday, August 25, 2009 9:24 AM Subject: [Proto-Scripty] After Ajax call page div not always updated. Hello, I have created a checkout process for a webshop where each step is loaded through ajax. Now it appears that 1 in every 100 customers has problems loading the second step. They press a button to launch the ajax call, but the div which needs to get updated does not change. Ergo the customer cannot order and thinks the shop is broken. Do you guys have any clew on whats going on? Or maybe a workaround? Is this a caching problem. Prototype JavaScript framework, version 1.6.0.3 Scriptaculous Version 1.8.1 Thanks in advance, Vincent --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: effect.Toggle 'Blind' to the right or left??
Thank you both, very much! On Aug 25, 6:54 am, david david.brill...@gmail.com wrote: Hi Jake, look at scriptaculous wiki:http://wiki.github.com/madrobby/scriptaculous/effect-blindup there is an exemple of a blind left. It could be simple to adapte. -- david On 25 août, 11:37, Alex McAuley webmas...@thecarmarketplace.com wrote: Effect.BlindUp() Effect.BlindDown() You will probably need to adjust your code if you want it to go up / down On the github page there is some code for left/right too Alex Mcauleyhttp://www.thevacancymarket.com - Original Message - From: Metajake yosf...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Tuesday, August 25, 2009 1:59 AM Subject: [Proto-Scripty] effect.Toggle 'Blind' to the right or left?? Howdy all, I'm brand new to Scripaculous. If there's a better place I can go to answer my question, please link me. I'm using the effect.Toggle 'blind' effect to reveal a submenu of links. My question is, can I reveal the hidden submenu in a direction other then just Down? Here is my example:http://www.jacobnorth.info When you click on Portfolio, I'd like the submenu to reveal itself, sliding to the Right. Thanks for your help. Jake --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: ajax.request routine fails in IE
You need ietester :) http://www.my-debugbar.com/wiki/IETester/HomePage - Kev yuval dagan wrote: I checked now in ie 6 its OK tehere is no ie7 around :) Yuval On 8/25/09, *Milko Kretschmann* mi...@kretschmann.nl mailto:mi...@kretschmann.nl wrote: Hi Yuval, Ok, thanks very much. Does it also work under IE7 (6)? Milko. On Aug 25, 2009, at 6:01 AM, yuval dagan wrote: Hi Miko Yes, thats what I checked and it worked great here on ie8. Yuval On Mon, Aug 24, 2009 at 10:56 PM, Milko Kretschmann mi...@kretschmann.nl mailto:mi...@kretschmann.nl wrote: Hello Yuval, Thank you very much for checking. Did you also test the url: http://www.cartesians.com/geefeenster/enter_ajax.php If you change country under Delivery Address then the content of the popup behind State/Province should change (via ajax). Thanks again. Milko. On Aug 24, 2009, at 9:25 PM, yuval dagan wrote: hi I checked now at home with ie8 and it works great. I checked also the net renderer with same ie and it didnt worked Yuval On Mon, Aug 24, 2009 at 8:06 PM, Walter Lee Davis wa...@wdstudio.com mailto:wa...@wdstudio.com wrote: Most of the NetRenderers of the world don't process JavaScript and Ajax, unless you spend like a sailor for BrowserCam (where you get to remote into an actual Windows desktop and drive it in real time). One of the reasons I bought a new MacBook Pro last year was so I could install VMWare 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 webbased IE renderer (http://ipinfo.info/netrenderer/index.php ). Here I get a Request Failed message when testing IE6. IE7/8 does not render any result at all. -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required - http://blackjack.webutils.co.uk --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: ajax.request routine fails in IE
Ok. Thanks very much. Milko. On Aug 25, 2009, at 2:17 PM, yuval dagan wrote: I checked now in ie 6 its OK tehere is no ie7 around :) Yuval On 8/25/09, Milko Kretschmann mi...@kretschmann.nl wrote: Hi Yuval, Ok, thanks very much. Does it also work under IE7 (6)? Milko. On Aug 25, 2009, at 6:01 AM, yuval dagan wrote: Hi Miko Yes, thats what I checked and it worked great here on ie8. Yuval On Mon, Aug 24, 2009 at 10:56 PM, Milko Kretschmann mi...@kretschmann.nl wrote: Hello Yuval, Thank you very much for checking. Did you also test the url: http://www.cartesians.com/geefeenster/enter_ajax.php If you change country under Delivery Address then the content of the popup behind State/Province should change (via ajax). Thanks again. Milko. On Aug 24, 2009, at 9:25 PM, yuval dagan wrote: hi I checked now at home with ie8 and it works great. I checked also the net renderer with same ie and it didnt worked Yuval On Mon, Aug 24, 2009 at 8:06 PM, Walter Lee Davis wa...@wdstudio.com wrote: Most of the NetRenderers of the world don't process JavaScript and Ajax, unless you spend like a sailor for BrowserCam (where you get to remote into an actual Windows desktop and drive it in real time). One of the reasons I bought a new MacBook Pro last year was so I could install VMWare 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 webbased IE renderer (http://ipinfo.info/netrenderer/index.php ). Here I get a Request Failed message when testing IE6. IE7/8 does not render any result at all. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: to InnerHTML or not to innerHTML?
Thanks all I feel better now, I thought I may have missed something that everyone else knew about. I guess I'll stick with innerHTML Maurice --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: ? of format of evalScripts
var request=new Ajax.Updater('element','/url',{ method: 'post', evalScripts: true, parameters : { id: id, page: page } }); request=null; - works fine... Its probably a syntax error in your returning javascript Alex Mcauley http://www.thevacancymarket.com - Original Message - From: bill To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, August 25, 2009 2:26 PM Subject: [Proto-Scripty] ? of format of evalScripts My function is: new Ajax.Updater('showMessageDiv', 'mail/process_message.php', { parameters: $('showMessageDiv').down('form').serialize(true), onFailure: function(response) { alert (mail.js: failure to submit form - getmessage); } }); When I try to add evalScripts:true so I can download and evaluate scripts I get a syntax error, no matter what I try. Would someone please show me the correct format to add evalScripts:true the this function ? -- Bill Drescher william {at} TechServSys {dot} com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: ajax.request routine fails in IE
Hi Kev, Ok, but this works only under Windows. I use MacOS. Is there a comparable app for Mac? Milko. On Aug 25, 2009, at 3:03 PM, Kevin Porter wrote: You need ietester :) http://www.my-debugbar.com/wiki/IETester/HomePage - Kev yuval dagan wrote: I checked now in ie 6 its OK tehere is no ie7 around :) Yuval On 8/25/09, *Milko Kretschmann* mi...@kretschmann.nl mailto:mi...@kretschmann.nl wrote: Hi Yuval, Ok, thanks very much. Does it also work under IE7 (6)? Milko. On Aug 25, 2009, at 6:01 AM, yuval dagan wrote: Hi Miko Yes, thats what I checked and it worked great here on ie8. Yuval On Mon, Aug 24, 2009 at 10:56 PM, Milko Kretschmann mi...@kretschmann.nl mailto:mi...@kretschmann.nl wrote: Hello Yuval, Thank you very much for checking. Did you also test the url: http://www.cartesians.com/geefeenster/enter_ajax.php If you change country under Delivery Address then the content of the popup behind State/Province should change (via ajax). Thanks again. Milko. On Aug 24, 2009, at 9:25 PM, yuval dagan wrote: hi I checked now at home with ie8 and it works great. I checked also the net renderer with same ie and it didnt worked Yuval On Mon, Aug 24, 2009 at 8:06 PM, Walter Lee Davis wa...@wdstudio.com mailto:wa...@wdstudio.com wrote: Most of the NetRenderers of the world don't process JavaScript and Ajax, unless you spend like a sailor for BrowserCam (where you get to remote into an actual Windows desktop and drive it in real time). One of the reasons I bought a new MacBook Pro last year was so I could install VMWare 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 webbased IE renderer (http://ipinfo.info/netrenderer/index.php ). Here I get a Request Failed message when testing IE6. IE7/8 does not render any result at all. -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required - http://blackjack.webutils.co.uk --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: yes, but Mootoolls do that -ImageMenu-
Its just an accordian that uses mouseover/out Alex Mcauley http://www.thevacancymarket.com - Original Message - From: DJ Mangus To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, August 25, 2009 5:58 PM Subject: [Proto-Scripty] Re: yes, but Mootoolls do that -ImageMenu- Would be doable with script.aculo.us though I do not think anyone has done it yet. On Tue, Aug 25, 2009 at 9:41 AM, lvdesign mail...@lvdesign.com.fr wrote: Hello people, I find a very fancy animation, but i am not sure that we can transpose it with prototype. this is the file: http://www.phatfusion.net/imagemenu/ I don't find the coresponding's effects in scriptaculous lib. Or perhaps it's a combination. If someone has an idea, it will be great, meme if a piste... thanks a lot LV --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: yes, but Mootoolls do that -ImageMenu-
The Effect.Move and Effect.Morph could probably do the trick. From: Alex McAuley Sent: Tuesday, August 25, 2009 12:56 PM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Re: yes, but Mootoolls do that -ImageMenu- Its just an accordian that uses mouseover/out Alex Mcauley http://www.thevacancymarket.com - Original Message - From: DJ Mangus To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, August 25, 2009 5:58 PM Subject: [Proto-Scripty] Re: yes, but Mootoolls do that -ImageMenu- Would be doable with script.aculo.us though I do not think anyone has done it yet. On Tue, Aug 25, 2009 at 9:41 AM, lvdesign mail...@lvdesign.com.fr wrote: Hello people, I find a very fancy animation, but i am not sure that we can transpose it with prototype. this is the file: http://www.phatfusion.net/imagemenu/ I don't find the coresponding's effects in scriptaculous lib. Or perhaps it's a combination. If someone has an idea, it will be great, meme if a piste... thanks a lot LV --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: KEY_DOWN event
The down arrow. Perhaps the preceding key up, key left and key right options could have given you a clue... On Aug 25, 8:07 am, Ooypunk ooyp...@gmail.com wrote: OK, then I'll go with that. Thanks! Only thing left for me to complain is that I still don't know what names like KEY_DOWN are for, or how they should be used, and that there's nothing in the manual (hint). On Aug 25, 11:37 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, If you want to know whether the control key was down when the mouse was clicked, then yes, the ctrlKey property of the mouse click event object is what you want. element.observe('click', function(event) { if (event.ctrlKey) { // Something cool here } } https://developer.mozilla.org/en/DOM/event.ctrlKey If you're looking to receive an event (separate from the click) when the control key is pressed, that varies quite a bit by browser:http://unixpapa.com/js/key.html But my impression is that you're just looking for it when the mouse is clicked, which is much more reliable. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Aug 25, 12:09 am, Ooypunk ooyp...@gmail.com wrote: Hi, I was looking for a way to capture a mouse-click plus ctrl-button. As I am using Prototype now for some time (it's great!), I thought Prototype could help me with this too. Sure, the manual is clear enough of how to capture a mouse-click event (that works fine here), but how about the ctrl-button? According to the manual, there's a list of key codes to be used (KEY_DOWN, for example), but there is no KEY_CTRL and there is nowhere to be found how they should be used. It says it's self explanatory, but for me it isn't. :( I think I can get it to work with event.ctrlKey, but I have a feeling, this is not the way. Thanks in advance. Ooypunk PS. I hope I made my problem clear enough, I know I'm not very good at explaining, especially because english is not my mother tongue. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: yes, but Mootoolls do that -ImageMenu-
Hi, Thank you for this base of soluce. So, I begin with a slide menu picture witch using these Effects (move and morph) to anime. I thought with the .js of Moot, we could transposing with the right verbose in proto/scriptaculous. But this library is perhaps just to limited for this kind of animation? Sincerly, LV On Aug 25, 7:57 pm, Andy Daykin daykina...@gmail.com wrote: The Effect.Move and Effect.Morph could probably do the trick. From: Alex McAuley Sent: Tuesday, August 25, 2009 12:56 PM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Re: yes, but Mootoolls do that -ImageMenu- Its just an accordian that uses mouseover/out Alex Mcauleyhttp://www.thevacancymarket.com - Original Message - From: DJ Mangus To: prototype-scriptaculous@googlegroups.com Sent: Tuesday, August 25, 2009 5:58 PM Subject: [Proto-Scripty] Re: yes, but Mootoolls do that -ImageMenu- Would be doable with script.aculo.us though I do not think anyone has done it yet. On Tue, Aug 25, 2009 at 9:41 AM, lvdesign mail...@lvdesign.com.fr wrote: Hello people, I find a very fancy animation, but i am not sure that we can transpose it with prototype. this is the file:http://www.phatfusion.net/imagemenu/ I don't find the coresponding's effects in scriptaculous lib. Or perhaps it's a combination. If someone has an idea, it will be great, meme if a piste... thanks a lot LV --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] $H need help
I need to add to a hash id of an input and its value when I try to do var h = $H({}); h.update({ input.id: input.getValue() }); an error of bad syntax is generated how can I add an element to a hash which key is an input.id and value is an input.getValue()? Thanks --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: Ajax requests again
On 20 Aug., 17:15, Alex Mcauley webmas...@thecarmarketplace.com wrote: earlier on in the month i posted on how to do some things with Ajax requests genericaly like adding a loading message to all requests and i got a couple of responses but not many. I've been giving it alot of thought and i cam up with addMethods as a way to add some things to the Ajax Class... Could anyone give me an example of how to do this with addMethods - just a hello world will do then i can take it from there I am not sure I understand what you are trying to achieve (and I couldn't find the older topic you mention), but did you look at Ajax.Responders? [http://www.prototypejs.org/api/ ajax/responders] Timo --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: $H need help
var h = {}; h[input.id] = input.getValue(); Doesn't even need to be a $H(), just a regular JS object/hash. - Kev buda wrote: I need to add to a hash id of an input and its value when I try to do var h = $H({}); h.update({ input.id: input.getValue() }); an error of bad syntax is generated how can I add an element to a hash which key is an input.id and value is an input.getValue()? Thanks -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required - http://blackjack.webutils.co.uk --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: $H need help
Thanks for replay, but I Do need to add it to a $H object how to do it? Thanks ) On 26 авг, 00:14, Kevin Porter k...@9ballpool.co.uk wrote: var h = {}; h[input.id] = input.getValue(); Doesn't even need to be a $H(), just a regular JS object/hash. - Kev buda wrote: I need to add to a hash id of an input and its value when I try to do var h = $H({}); h.update({ input.id: input.getValue() }); an error of bad syntax is generated how can I add an element to a hash which key is an input.id and value is an input.getValue()? Thanks -- Kevin Porter Advanced Web Construction Ltdhttp://webutils.co.ukhttp://billiardsearch.nethttp://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required -http://blackjack.webutils.co.uk- Скрыть цитируемый текст - - Показать цитируемый текст - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] can I get a list of event listeners on an element?
Hi, Can I get a list of registered listeners/observers on an element? What I'm trying to do is dynamically replace an element with another element, but want to preserve the events. I don't want to resort to something like: new_element.onclick = old_element.onclick; as the prototype docs advise against using .onclick, .onmouseover etc. If prototype doesn't provide a way to do this, is there a bare JS way to do it (ie to get a list of events that were registered with addEventListener)? I googled but couldn't find this. regards, - Kev -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required - http://blackjack.webutils.co.uk --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: More useful clone method
Good luck with this, let us know if it works out. Quick glance at your code I can see an obvious error... var newElement = element.clone(true); //clone the node Element doesn't have a clone method. The native DOM element does have a cloneNode method though. -- http://positionabsolute.net On Aug 25, 2:15 pm, watermark86 watermar...@gmail.com wrote: I'm using 1.6.1rc3 to have access to Element.storage. I need to write a function that deep clones an element and copies the Element.observe events as well as the Element.Storage items with it. I've managed to write the code that can copy one or the other. The problem comes in when I try to do both (copy the storage items and the events.) I suppose due to Event.observe using the Element.storage item, I can't seem to have the items that I've stored with Element.store to copy while maintaining the Event.observe events that I've copied. I can copy the observe events or the element.store events, but not both. Below is some terrible code for review. Thanks for any help or insults. deepClone: function(element) { //deep clone node var newElement = element.clone(true); //clone the node //stop observing because of IE BS newElement.stopObserving(); //copy the item var registry = Element.retrieve(element, 'prototype_event_registry'); if (!Object.isUndefined(registry)) { registry.each( function(pair) { var eventName = pair.key, responders = pair.value; responders.each( function(r) { Element.observe(newElement, eventName, r.handler); }); }); } //for all of the descendants, copy the event handlers var srcdecend = element.descendants(); var dstdecend = newElement.descendants(); var numdecend = srcdecend.length; for(var i = 0; i numdecend; ++i) { //stop observing because of IE BS dstdecend[i].stopObserving(); //copy the registry var registry = Element.retrieve(srcdecend[i], 'prototype_event_registry'); if (!Object.isUndefined(registry)) { registry.each( function(pair) { var eventName = pair.key, responders = pair.value; responders.each( function(r) { Element.observe(dstdecend[i], eventName, r.handler); }); }); } } return newElement; } --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: $H need help
What do you mean by 'some pairs'? Looks like set() is what you want. What do you want your hash to look like before and after? - Kev buda wrote: Sorry for not full description of my task - I need to add some pairs to a hash - so set() doesnt hepl me :( On 26 авг, 01:18, Kevin Porter k...@9ballpool.co.uk wrote: Oops sorry! Posted without testing, I didn't realise you lost that assignment notation with a $H() hash. - Kev DJ Mangus wrote: what you want to do is h.set(input.id http://input.id, input.getValue()) Seehttp://www.prototypejs.org/api/hash/set 2009/8/25 Kevin Porter k...@9ballpool.co.uk mailto:k...@9ballpool.co.uk Same: var h = $H({}); h[input.id http://input.id] = input.getValue(); - Kev buda wrote: Thanks for replay, but I Do need to add it to a $H object how to do it? Thanks ) On 26 авг, 00:14, Kevin Porter k...@9ballpool.co.uk mailto:k...@9ballpool.co.uk wrote: var h = {}; h[input.id http://input.id] = input.getValue(); Doesn't even need to be a $H(), just a regular JS object/hash. - Kev buda wrote: I need to add to a hash id of an input and its value when I try to do var h = $H({}); h.update({ input.id http://input.id: input.getValue() }); an error of bad syntax is generated how can I add an element to a hash which key is an input.id http://input.id and value is an input.getValue()? Thanks -- Kevin Porter Advanced Web Construction Ltdhttp://webutils.co.ukhttp://billiardsearch.nethttp://9ballpool.co.uk http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required -http://blackjack.webutils.co.uk-Скрыть цитируемый текст - - Показать цитируемый текст - -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required - http://blackjack.webutils.co.uk -- Kevin Porter Advanced Web Construction Ltdhttp://webutils.co.ukhttp://billiardsearch.nethttp://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required -http://blackjack.webutils.co.uk- Скрыть цитируемый текст - - Показать цитируемый текст - -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required - http://blackjack.webutils.co.uk --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: $H need help
gah, just looked at the source, I was wrong about that, ignore the last message I sent. On Tue, Aug 25, 2009 at 4:41 PM, DJ Mangus d.man...@gmail.com wrote: if you feed set() an object it should set multiple key/value pairs at once. On Tue, Aug 25, 2009 at 4:32 PM, Kevin Porter k...@9ballpool.co.uk wrote: What do you mean by 'some pairs'? Looks like set() is what you want. What do you want your hash to look like before and after? - Kev buda wrote: Sorry for not full description of my task - I need to add some pairs to a hash - so set() doesnt hepl me :( On 26 авг, 01:18, Kevin Porter k...@9ballpool.co.uk wrote: Oops sorry! Posted without testing, I didn't realise you lost that assignment notation with a $H() hash. - Kev DJ Mangus wrote: what you want to do is h.set(input.id http://input.id, input.getValue()) Seehttp://www.prototypejs.org/api/hash/set 2009/8/25 Kevin Porter k...@9ballpool.co.uk mailto: k...@9ballpool.co.uk Same: var h = $H({}); h[input.id http://input.id] = input.getValue(); - Kev buda wrote: Thanks for replay, but I Do need to add it to a $H object how to do it? Thanks ) On 26 авг, 00:14, Kevin Porter k...@9ballpool.co.uk mailto:k...@9ballpool.co.uk wrote: var h = {}; h[input.id http://input.id] = input.getValue(); Doesn't even need to be a $H(), just a regular JS object/hash. - Kev buda wrote: I need to add to a hash id of an input and its value when I try to do var h = $H({}); h.update({ input.id http://input.id: input.getValue() }); an error of bad syntax is generated how can I add an element to a hash which key is an input.id http://input.id and value is an input.getValue()? Thanks -- Kevin Porter Advanced Web Construction Ltdhttp://webutils.co.ukhttp://billiardsearch.nethttp:// 9ballpool.co.uk http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required -http://blackjack.webutils.co.uk-Скрытьhttp://blackjack.webutils.co.xn--uk--eed4aej5ekцитируемый текст - - Показать цитируемый текст - -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required - http://blackjack.webutils.co.uk -- Kevin Porter Advanced Web Construction Ltdhttp://webutils.co.ukhttp://billiardsearch.nethttp://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required -http://blackjack.webutils.co.uk-Скрыть цитируемый текст - - Показать цитируемый текст - -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required - http://blackjack.webutils.co.uk --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: $H need help
I need to put into hash pairs: input1.id : input1.getValue inputN.id : inputN.getValue where N may be from 5 to 25 On 26 авг, 02:46, DJ Mangus d.man...@gmail.com wrote: gah, just looked at the source, I was wrong about that, ignore the last message I sent. On Tue, Aug 25, 2009 at 4:41 PM, DJ Mangus d.man...@gmail.com wrote: if you feed set() an object it should set multiple key/value pairs at once. On Tue, Aug 25, 2009 at 4:32 PM, Kevin Porter k...@9ballpool.co.uk wrote: What do you mean by 'some pairs'? Looks like set() is what you want. What do you want your hash to look like before and after? - Kev buda wrote: Sorry for not full description of my task - I need to add some pairs to a hash - so set() doesnt hepl me :( On 26 авг, 01:18, Kevin Porter k...@9ballpool.co.uk wrote: Oops sorry! Posted without testing, I didn't realise you lost that assignment notation with a $H() hash. - Kev DJ Mangus wrote: what you want to do is h.set(input.id http://input.id, input.getValue()) Seehttp://www.prototypejs.org/api/hash/set 2009/8/25 Kevin Porter k...@9ballpool.co.uk mailto: k...@9ballpool.co.uk Same: var h = $H({}); h[input.id http://input.id] = input.getValue(); - Kev buda wrote: Thanks for replay, but I Do need to add it to a $H object how to do it? Thanks ) On 26 авг, 00:14, Kevin Porter k...@9ballpool.co.uk mailto:k...@9ballpool.co.uk wrote: var h = {}; h[input.id http://input.id] = input.getValue(); Doesn't even need to be a $H(), just a regular JS object/hash. - Kev buda wrote: I need to add to a hash id of an input and its value when I try to do var h = $H({}); h.update({ input.id http://input.id: input.getValue() }); an error of bad syntax is generated how can I add an element to a hash which key is an input.id http://input.id and value is an input.getValue()? Thanks -- Kevin Porter Advanced Web Construction Ltdhttp://webutils.co.ukhttp://billiardsearch.nethttp:// 9ballpool.co.uk http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required -http://blackjack.webutils.co.uk-Скрытьhttp://blackjack.webutils.co.xn--uk--eed4aej5ekцитируемый текст - - Показать цитируемый текст - -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required - http://blackjack.webutils.co.uk -- Kevin Porter Advanced Web Construction Ltdhttp://webutils.co.ukhttp://billiardsearch.nethttp://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required -http://blackjack.webutils.co.uk-Скрыть цитируемый текст - - Показать цитируемый текст - -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required -http://blackjack.webutils.co.uk- Скрыть цитируемый текст - - Показать цитируемый текст - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: $H need help
Thanks everyone for your help ! :) On 26 авг, 03:16, DJ Mangus d.man...@gmail.com wrote: ok, h.update is correct if you want to send it multiple values at once, if you do not know exactly how many items you will be adding at once until runtime, you'd have to loop anyway to build the object to send to h.update. In that case just loop over them once and add to the hash Something like: $$('#contents').each(function(s) { h.set(s.identify(), s.getValue() ) }); On Tue, Aug 25, 2009 at 5:09 PM, buda www...@pochta.ru wrote: I need to put into hash pairs: input1.id : input1.getValue inputN.id : inputN.getValue where N may be from 5 to 25 On 26 авг, 02:46, DJ Mangus d.man...@gmail.com wrote: gah, just looked at the source, I was wrong about that, ignore the last message I sent. On Tue, Aug 25, 2009 at 4:41 PM, DJ Mangus d.man...@gmail.com wrote: if you feed set() an object it should set multiple key/value pairs at once. On Tue, Aug 25, 2009 at 4:32 PM, Kevin Porter k...@9ballpool.co.uk wrote: What do you mean by 'some pairs'? Looks like set() is what you want. What do you want your hash to look like before and after? - Kev buda wrote: Sorry for not full description of my task - I need to add some pairs to a hash - so set() doesnt hepl me :( On 26 авг, 01:18, Kevin Porter k...@9ballpool.co.uk wrote: Oops sorry! Posted without testing, I didn't realise you lost that assignment notation with a $H() hash. - Kev DJ Mangus wrote: what you want to do is h.set(input.id http://input.id, input.getValue()) Seehttp://www.prototypejs.org/api/hash/set 2009/8/25 Kevin Porter k...@9ballpool.co.uk mailto: k...@9ballpool.co.uk Same: var h = $H({}); h[input.id http://input.id] = input.getValue(); - Kev buda wrote: Thanks for replay, but I Do need to add it to a $H object how to do it? Thanks ) On 26 авг, 00:14, Kevin Porter k...@9ballpool.co.uk mailto:k...@9ballpool.co.uk wrote: var h = {}; h[input.id http://input.id] = input.getValue(); Doesn't even need to be a $H(), just a regular JS object/hash. - Kev buda wrote: I need to add to a hash id of an input and its value when I try to do var h = $H({}); h.update({ input.id http://input.id: input.getValue() }); an error of bad syntax is generated how can I add an element to a hash which key is an input.id http://input.id and value is an input.getValue()? Thanks -- Kevin Porter Advanced Web Construction Ltdhttp://webutils.co.ukhttp://billiardsearch.nethttp:// 9ballpool.co.uk http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required -http://blackjack.webutils.co.uk-Скрытьhttp://blackjack.webutils.co.xn--uk--eed4aej5ekцитируемый текст - - Показать цитируемый текст - -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required - http://blackjack.webutils.co.uk -- Kevin Porter Advanced Web Construction Ltdhttp://webutils.co.ukhttp://billiardsearch.nethttp://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required -http://blackjack.webutils.co.uk-Скрыть цитируемый текст - - Показать цитируемый текст - -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required -http://blackjack.webutils.co.uk-Скрыть цитируемый текст - - Показать цитируемый текст -- Скрыть цитируемый текст - - Показать цитируемый текст - --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Proto-Scripty] Re: can I get a list of event listeners on an element?
This question has been asked... but I've never seen a solid answer... maybe I just missed them. But if you're using version 1.6.1_rc3 (or any version with Element#getStorage() ) var _storage= $('element').getStorage(); console.log( _storage._object.prototype_event_registry._object ); (assumes you have firebug (or anything that supports a console.log() ) running.) On Tue, Aug 25, 2009 at 5:45 PM, Kevin Porter k...@9ballpool.co.uk wrote: Hi, Can I get a list of registered listeners/observers on an element? What I'm trying to do is dynamically replace an element with another element, but want to preserve the events. I don't want to resort to something like: new_element.onclick = old_element.onclick; as the prototype docs advise against using .onclick, .onmouseover etc. If prototype doesn't provide a way to do this, is there a bare JS way to do it (ie to get a list of events that were registered with addEventListener)? I googled but couldn't find this. regards, - Kev -- Kevin Porter Advanced Web Construction Ltd http://webutils.co.uk http://billiardsearch.net http://9ballpool.co.uk AJAX Blackjack - real-time multi-player blackjack game with no flash, java or software downloads required - http://blackjack.webutils.co.uk --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---