[Proto-Scripty] Re: Using store with options and IE7
Hi, The `Option` constructor is provided by the browser and returns an HTMLOptionElement instance; since IE6 and IE7 don't allow prototypical extensions to these things[1], you have to run it through `$` (or `Element.extend`) to extend the element: function optionAdder(s) { var optIdx = $('mySelect').options.length; $('mySelect').options[optIdx] = $(new Option(s.text, s.val)); // <== Change is here $('mySelect').options[optIdx].store("meta", s.meta); } In contrast to `Option`, the `Element` constructor is provided by Prototype and does this for you automatically. [1] http://prototypejs.org/learn/extensions HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On May 28, 4:30 pm, blechler wrote: > Whilst flogging the horse that should be dead (IE7); I discovered that > I was unable to use Element.store on the options within a select: > > function optionAdder(s) { > var optIdx = $('mySelect').options.length; > $('mySelect').options[optIdx] = new Option(s.text, s.val); > $('mySelect').options[optIdx].store("meta", s.meta); //< > Object doesn't support this property or method > > } > > The above function works in IE8. This next function, on the other > hand, does work in IE7: > > function optionAdder(s) { > $('mySelect').appendChild(new Element('option', {"value":s.val, > "meta":s.meta}).update(s.text)); > > } > > In this case I use readAttribute instead of the retrieve method. Can > anyone offer insight as to why store doesn't work? -- 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: PeriodicalExecuter
Hi, All you need to do is make sure you have a reference to the PE, so you can call its stop function. The PE will pass a reference to itself into the function it's calling, so you can do this with arguments. Or you can just keep a reference to the PE when you create it, and later use that reference to stop it. Option 1: Use the argument the PE passes you: * * * * // No need for the extra wrapper function, the PE can call `checkAll` directly // and doing so gives us access to the argument //WAS: new PeriodicalExecuter(function() { checkAll() },30); new PeriodicalExecuter(checkAll, 30); // `checkAll` now gets the PE instance as an argument //WAS: function checkAll(){ function checkAll(pe){ for (i=1; i<=6; i++){ // pass it on to `check` check(i, pe); } } // `check` now receives the PE instance as an argument //WAS: function check(num){ function check(num, pe){ $('jetway0'+num).value ='...'; $('jetway0'+num).style.color='black'; new Ajax.Request("http://someIP:80"+num+"/somefile.jsp";, { onSuccess: function(transport) { if (transport.status == 200) { $('jetway0'+num).value ='Up'; $('jetway0'+num).style.color='green'; }else{ $('jetway0'+num).value ='Code: '+transport.status; $('jetway0'+num).style.color='olive'; } }, onFailure: function(){ $('jetway0'+num).value='Down'; $('jetway0'+num).style.color='red'; // Stop the PE pe.stop(); } }); } * * * * Option 2: Remember a reference when you create it (I wouldn't create a new global variable, though, which is what this does if all of this is at the top level of the file): * * * * // Remember a reference to the PE we're creating //WAS: new PeriodicalExecuter(function() { checkAll() },30); var theAjaxPE = new PeriodicalExecuter(function() { checkAll() },30); // Or, again, there's no need for that wrapper function, could be: //var theAjaxPE = new PeriodicalExecuter(checkAll, 30); function checkAll(){ for (i=1; i<=6; i++){ check(i); } } function check(num){ $('jetway0'+num).value ='...'; $('jetway0'+num).style.color='black'; new Ajax.Request("http://someIP:80"+num+"/somefile.jsp";, { onSuccess: function(transport) { if (transport.status == 200) { $('jetway0'+num).value ='Up'; $('jetway0'+num).style.color='green'; }else{ $('jetway0'+num).value ='Code: '+transport.status; $('jetway0'+num).style.color='olive'; } }, onFailure: function(){ $('jetway0'+num).value='Down'; $('jetway0'+num).style.color='red'; // Stop the PE theAjaxPE.stop(); } }); } * * * * HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On May 28, 4:11 pm, "Russell Keith" wrote: > I have a PeriodicalExecuter that is calling a function every so often > that makes several AJAX calls. I am not having any luck getting the > PeriodicalExecuter to stop via the onFailure callback in the Ajax call. > Is this possible? I see in the API doc that I can use stop() within the > PeriodicalExecuter to stop it, but how can I do this outside? > > new PeriodicalExecuter(function() { checkAll() },30); > > function checkAll(){ > > for (i=1; i<=6; i++){ > > check(i); > > } > > } > > function check(num){ > > $('jetway0'+num).value ='...'; > > $('jetway0'+num).style.color='black'; > > new Ajax.Request("http://someIP:80"+num+"/somefile.jsp";, { > > onSuccess: function(transport) { > > if (transport.status == 200) { > > $('jetway0'+num).value ='Up'; > > $('jetway0'+num).style.color='green'; > > }else{ > > $('jetway0'+num).value ='Code: > '+transport.status; > > $('jetway0'+num).style.color='olive'; > > } > > }, > > onFailure: function(){ > > $('jetway0'+num).value='Down'; > > $('jetway0'+num).style.color='red'; > > ** I want to stop the PeriodicalExecuter here > ** > > } > > }); > > } > > Russell -- 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] script.aculo.us Ajax AutoComplete - making it slide up...
Hi All, I've recently had to figure out how to make the Scriptaculous AutoComplete functionality make it's selection box appear above the input. It's not a very elegant solution so was wondering if anyone had created a nicer one. Basically I've hacked the controls.js file.. 1) I set a JS variable 'upDirection' to true on the page where the Autocompleter needs to slide up. 2) in controls.js I've changed it in two places... in baseInitialize after the line update.style.position = 'absolute'; // New Bit Start if (directionUp) { Position.clone(element, update, { setHeight: false, offsetLeft: -2, offsetTop: (0 - update.getDimensions().height) }); } else { Position.clone(element, update, { setHeight: false, offsetTop: element.offsetHeight }); } // New Bit End } and a similiar change in updateChoices: after the child node IF statement... } else { this.entryCount = 0; } // New Bit Start this.update.style.position = 'absolute'; if (directionUp) { Position.clone(this.element, this.update, { setHeight: false, offsetLeft: -2, offsetTop: (0 - this.update.getDimensions().height) }); } else { Position.clone(this.element, this.update, { setHeight: false, offsetTop: this.element.offsetHeight }); } Effect.Appear(this.update,{duration:0.15}); // New Bit End. this.stopIndicator(); this.update.scrollTop = 0; // RP - Part 3 of window jump fix this.index = 0; Has someone thought of a better way to do this? Perhaps one not involving hacking the changes.js file? Cheers Sukh -- 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] Ajax in IE7 vs. IE8
The code posted is all the code there is. It is a simple little script to check that it can access a specific page on several servers. The servers are behind a load balancer using port forwarding hence the port requirement. Port 801 goes to server1 and port 802 goes to server2 and so on. The code works great in IE8 and Firefox 3.6.3 but not IE7. If I remove the port it works in IE7 but all 6 requests are now checking a random server since port 80 using a round robin to split request amongst servers. From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Rick.Wellman Sent: Friday, May 28, 2010 4:30 PM To: prototype-scriptaculous@googlegroups.com Subject: RE: [Proto-Scripty] Ajax in IE7 vs. IE8 Sorry for this short reply which may not even be correct but... Usually the port number is considered part of the URL from the server session viewpoint so if you're trying to go back to a different port than the rest of your app uses, that could be a problem. [I may have butchered this explanation so someone able to use more specific jargon... feel free to help or even tell me I'm completely wrong.] From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Friday, May 28, 2010 4:24 PM To: prototype-scriptaculous@googlegroups.com Subject: RE: [Proto-Scripty] Ajax in IE7 vs. IE8 It appears that IE7 doesn't like the port number added to the URL. Any thoughts on how to get around this? I have to have the port numbers. From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Friday, May 28, 2010 3:08 PM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Ajax in IE7 vs. IE8 Ok this doesn't make any sense to me. The following code works in IE8 but not IE7. The Ajax calls never get fired according to my proxy software. I don't have the luxury of firebug since I am relegated to IE here at work. Any ideas? http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> .status{ margin-left: 10px; margin-right: 10px; width: 50px; } var secs = 10; document.observe('dom:loaded', function(){ $('secs').update(secs); checkAll(); new PeriodicalExecuter(function() { checkAll() },secs); }); function check(num){ $('jetway0'+num).value ='...'; $('jetway0'+num).style.color='black'; new Ajax.Request("http://10.0.0.5:80"+num+"/shared/login.jsp";, { onSuccess: function(transport) { $('jetway0'+num).value ='Up'; $('jetway0'+num).style.color='green'; }, onFailure: function(transport){ $('jetway0'+num).value='Down'; $('jetway0'+num).style.color='red'; } }); } function checkAll(){ for (i=1; i<=6; i++){ check(i); } } Checks every seconds. Jetway01: Refresh Jetway02: Refresh Jetway03: Refresh Jetway04: Refresh Jetway05: Refresh Jetway06: Refresh Refresh 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-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. -- 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.
RE: [Proto-Scripty] Ajax in IE7 vs. IE8
Sorry for this short reply which may not even be correct but... Usually the port number is considered part of the URL from the server session viewpoint so if you're trying to go back to a different port than the rest of your app uses, that could be a problem. [I may have butchered this explanation so someone able to use more specific jargon... feel free to help or even tell me I'm completely wrong.] From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Friday, May 28, 2010 4:24 PM To: prototype-scriptaculous@googlegroups.com Subject: RE: [Proto-Scripty] Ajax in IE7 vs. IE8 It appears that IE7 doesn't like the port number added to the URL. Any thoughts on how to get around this? I have to have the port numbers. From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Friday, May 28, 2010 3:08 PM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Ajax in IE7 vs. IE8 Ok this doesn't make any sense to me. The following code works in IE8 but not IE7. The Ajax calls never get fired according to my proxy software. I don't have the luxury of firebug since I am relegated to IE here at work. Any ideas? http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> .status{ margin-left: 10px; margin-right: 10px; width: 50px; } var secs = 10; document.observe('dom:loaded', function(){ $('secs').update(secs); checkAll(); new PeriodicalExecuter(function() { checkAll() },secs); }); function check(num){ $('jetway0'+num).value ='...'; $('jetway0'+num).style.color='black'; new Ajax.Request("http://10.0.0.5:80"+num+"/shared/login.jsp";, { onSuccess: function(transport) { $('jetway0'+num).value ='Up'; $('jetway0'+num).style.color='green'; }, onFailure: function(transport){ $('jetway0'+num).value='Down'; $('jetway0'+num).style.color='red'; } }); } function checkAll(){ for (i=1; i<=6; i++){ check(i); } } Checks every seconds. Jetway01: Refresh Jetway02: Refresh Jetway03: Refresh Jetway04: Refresh Jetway05: Refresh Jetway06: Refresh Refresh 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-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. -- 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] Ajax in IE7 vs. IE8
It appears that IE7 doesn't like the port number added to the URL. Any thoughts on how to get around this? I have to have the port numbers. From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell Keith Sent: Friday, May 28, 2010 3:08 PM To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Ajax in IE7 vs. IE8 Ok this doesn't make any sense to me. The following code works in IE8 but not IE7. The Ajax calls never get fired according to my proxy software. I don't have the luxury of firebug since I am relegated to IE here at work. Any ideas? http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> .status{ margin-left: 10px; margin-right: 10px; width: 50px; } var secs = 10; document.observe('dom:loaded', function(){ $('secs').update(secs); checkAll(); new PeriodicalExecuter(function() { checkAll() },secs); }); function check(num){ $('jetway0'+num).value ='...'; $('jetway0'+num).style.color='black'; new Ajax.Request("http://10.0.0.5:80"+num+"/shared/login.jsp";, { onSuccess: function(transport) { $('jetway0'+num).value ='Up'; $('jetway0'+num).style.color='green'; }, onFailure: function(transport){ $('jetway0'+num).value='Down'; $('jetway0'+num).style.color='red'; } }); } function checkAll(){ for (i=1; i<=6; i++){ check(i); } } Checks every seconds. Jetway01: Refresh Jetway02: Refresh Jetway03: Refresh Jetway04: Refresh Jetway05: Refresh Jetway06: Refresh Refresh 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-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] Ajax in IE7 vs. IE8
Ok this doesn't make any sense to me. The following code works in IE8 but not IE7. The Ajax calls never get fired according to my proxy software. I don't have the luxury of firebug since I am relegated to IE here at work. Any ideas? http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> .status{ margin-left: 10px; margin-right: 10px; width: 50px; } var secs = 10; document.observe('dom:loaded', function(){ $('secs').update(secs); checkAll(); new PeriodicalExecuter(function() { checkAll() },secs); }); function check(num){ $('jetway0'+num).value ='...'; $('jetway0'+num).style.color='black'; new Ajax.Request("http://10.0.0.5:80"+num+"/shared/login.jsp";, { onSuccess: function(transport) { $('jetway0'+num).value ='Up'; $('jetway0'+num).style.color='green'; }, onFailure: function(transport){ $('jetway0'+num).value='Down'; $('jetway0'+num).style.color='red'; } }); } function checkAll(){ for (i=1; i<=6; i++){ check(i); } } Checks every seconds. Jetway01: Refresh Jetway02: Refresh Jetway03: Refresh Jetway04: Refresh Jetway05: Refresh Jetway06: Refresh Refresh 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-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] Using store with options and IE7
Whilst flogging the horse that should be dead (IE7); I discovered that I was unable to use Element.store on the options within a select: function optionAdder(s) { var optIdx = $('mySelect').options.length; $('mySelect').options[optIdx] = new Option(s.text, s.val); $('mySelect').options[optIdx].store("meta", s.meta); //< Object doesn't support this property or method } The above function works in IE8. This next function, on the other hand, does work in IE7: function optionAdder(s) { $('mySelect').appendChild(new Element('option', {"value":s.val, "meta":s.meta}).update(s.text)); } In this case I use readAttribute instead of the retrieve method. Can anyone offer insight as to why store doesn't work? -- 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] PeriodicalExecuter
I have a PeriodicalExecuter that is calling a function every so often that makes several AJAX calls. I am not having any luck getting the PeriodicalExecuter to stop via the onFailure callback in the Ajax call. Is this possible? I see in the API doc that I can use stop() within the PeriodicalExecuter to stop it, but how can I do this outside? new PeriodicalExecuter(function() { checkAll() },30); function checkAll(){ for (i=1; i<=6; i++){ check(i); } } function check(num){ $('jetway0'+num).value ='...'; $('jetway0'+num).style.color='black'; new Ajax.Request("http://someIP:80"+num+"/somefile.jsp";, { onSuccess: function(transport) { if (transport.status == 200) { $('jetway0'+num).value ='Up'; $('jetway0'+num).style.color='green'; }else{ $('jetway0'+num).value ='Code: '+transport.status; $('jetway0'+num).style.color='olive'; } }, onFailure: function(){ $('jetway0'+num).value='Down'; $('jetway0'+num).style.color='red'; ** I want to stop the PeriodicalExecuter here ** } }); } Russell -- 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: How can I access an element from outside iframe
You can create a js function in the parent file, something like function myOpacity(){ new Effect.Opacity('element ID', { from: 1, to: 0.4, duration: 0.7});} when you need the opacity to execute, just call the function from de iframe this way parent.myOpacity(); hope this helps. On 27 mayo, 06:32, oSerX wrote: > Hello, > > I have a main php file including 4 iframes. From inside of one iframe > I want to access an ID element defined in the main php file. > > using Javascript I can use > "top.document.getElementByID('ID_of_the_element_I_want_to_acces').style.opa > city= > " > > , but ... I want to use scriptaculous effects to do EffectOpacity on > this element outside the current iframe ... > > i cannot do " .. onclick="new Effect.Opacity('element ID', { from: 1, > to: 0.4, duration: 0.7});" > > please help me ... how can I make Effect.Opacity to point to an > element in the main php file ?? > > Thank you. -- 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: How can I access an element from outside iframe
I think I solved the problem ... not sure yet ... Yesterday I compressed prototype.js using bananascript. I think it did something wrong inside the source code. Now it seems ok in Google Chrome also... at lease until now. -- 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: Blur, Focus, Event Delegation
Hi, as I said in this ticket, you can use this code: http://gist.github.com/162593 for bubbling focus/blur. I have been using it for months and never have a single problem with this approach :) -- 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: How can I access an element from outside iframe
I did what you told me ... it's working perfectly in Safari 4 and IE8, but ... in GoogleChrome i get the following message in the console "Uncaught TypeError: Object [object HTMLDivElement] has no method 'getOpacity'". - error in effects.js:line 357 ( "from: this.element.getOpacity() || 0.0," ). If i modify this to "this.element.style.opacity" it's working perfectly ... in prototype.js GetOpacity method is defined " ... getStyle: function(element, style) { element = $(element); style = style == 'float' ? 'cssFloat' : style.camelize(); var value = element.style[style]; if (!value || value == 'auto') { var css = document.defaultView.getComputedStyle(element, null); value = css ? css[style] : null; } if (style == 'opacity') return value ? parseFloat(value) : 1.0; return value == 'auto' ? null : value; }, getOpacity: function(element) { return $(element).getStyle('opacity'); }, " so ... is seems to me there is a problem with prototype.js and google chrome ... am I right ? -- 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.