[Proto-Scripty] Re: IE8 compatibility

2009-03-23 Thread T.J. Crowder
> It might be new in the context of all versions of IE, but it can > hardly be a new bug in a browser that hasn't been released yet. ;-) *Obviously* I meant new to the IE line. (And IE8 was released on Thursday, although Microsoft's own Internet Explorer home page is a bit divided about it...)

[Proto-Scripty] Re: Prototype causes function with array/for...each to stop working

2009-03-23 Thread T.J. Crowder
Hi, The problem is here: > for(s in allDivs) The "for..in" construct isn't for looping through the elemnts of an array (although lots and lots of people have been mislead into thinking it is!), it's for looping through the properties of an object. Details, an explanation of why those loops beh

[Proto-Scripty] Prototype causes function with array/for...each to stop working

2009-03-23 Thread jazzylicious
Hi there, First of all, I have been working now with prototype in combination with scriptalous to create some animations on my website and it's working great and very simple! But, I just discovered that by including the prototype.js & scriptalous.js, the function shown below doesn't execute prop

[Proto-Scripty] Re: Prototype causes function with array/for...each to stop working

2009-03-23 Thread Chris Sansom
Oooh - don't say there's a post I can answer... At 02:12 -0700 23/3/09, jazzylicious wrote: >I might get some replys with: So you do use prototype, but don't use >it for everything??? I just couldn't find a way to do the same thing >in prototype. ... >var allDivs = new Array >("divreferenties",

[Proto-Scripty] Re: Prototype causes function with array/for...each to stop working

2009-03-23 Thread jazzylicious
Great, thanks for the super duper quick replies --~--~-~--~~~---~--~~ 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 un

[Proto-Scripty] Element.insert failed on IE

2009-03-23 Thread djice
Hi, I use an Ajax request for posting my form. The response of this request is a string which contains HTML "..". This html represents a row of a , my goal is to add this row to my table. So I use this code: firstRow = $('msg'+colorIndicator); response = xhr.responseText; firstRow.insert

[Proto-Scripty] Re: Prototype causes function with array/for...each to stop working

2009-03-23 Thread Maarten
Hi Jochem, You definitely want to look into the following functions: http://www.prototypejs.org/api/enumerable/invoke enables you to hide multiple elements at once, e.g.: $$(".referentie").invoke("hide"); // works if you'd add class="referentie" to the div elements you want to hide And instea

[Proto-Scripty] Re: Element.insert failed on IE

2009-03-23 Thread T.J. Crowder
Hi, Internet Explorer can be difficult about adding to tables using strings, but the current version of Prototype (1.6.0.3) has code to deal with it for you. Are you using 1.6.0.3? If I have a table with a row in it with the id "rowbefore", this code works fine for me on IE7: $('rowbefore'

[Proto-Scripty] Re: Shrinking JS

2009-03-23 Thread Richard Quadling
2009/3/20 Szymon Wilkołazki : > > >  2009/3/20 Jeztah : >> After a little playing ove the last couple of days i came up with a >> nice easy way of shrinking many js files on the fly into 1 file ... >> this will speed up load time heavily on heavy javascript loaded >> sites . the code is php an

[Proto-Scripty] Re: clonePosition - problem in IE and Opera

2009-03-23 Thread zero
anyone got some idea? Its bug or i do something wrong? --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: demo site is down.

2009-03-23 Thread david
Hi G. Sharon Yang, go to the specific page: http://wiki.github.com/madrobby/scriptaculous/demos ity refers to all previous demo, puzzle, shopping cart, effects, ... btw, dead link should have been removed. -- david On 19 mar, 17:39, "G. Sharon Yang" wrote: > yes, I know that link in github. I

[Proto-Scripty] Re: $$ utility method returns href value instead of anchor tag reference

2009-03-23 Thread Richard Quadling
2009/3/21 T.J. Crowder : > > Hi, > >> hmm, well, links[0] is returning a string, not the a object... > > No, it isn't.  Richard already answered your question:  Your alert > coerces the object into a string, which implicitly calls the toString > method on it, which (in the case of a link) returns

[Proto-Scripty] a problem with event.stop in FF2

2009-03-23 Thread doron
Does anyone know about a fix for this problem: Prototype.js event.stop (event) FF2 not working (http://www.ruby-forum.com/topic/146797) ? I have encountered this bug while migrating to Prototype 1.6.0.3 The error appeared in FF2. It works fine in IE6, and I am not sure about FF3 or Chrome. What

[Proto-Scripty] Re: a problem with event.stop in FF2

2009-03-23 Thread T.J. Crowder
Hi, I definitely successfully used Event#stop with FF2 in Prototype 1.6 at some point. Can you post a minimalist, but complete, example demonstrating the problem? (Perhaps to Pastie[1]) [1] http://pastie.org > which seems to add dummy function if we use IE. Not so much *dummy* functions, as

[Proto-Scripty] Stopping submit event

2009-03-23 Thread Chris Sansom
Being a good citizen, I changed: $('venform').onsubmit = venFormHandler; to: $('venform').observe ('submit', venFormHandler); However, venFormHandler() has a 'return false;' at the end (it runs an Ajax script and shouldn't submit the form conventionally), and this no longer works. I can't qu

[Proto-Scripty] Re: Stopping submit event

2009-03-23 Thread waldron.r...@gmail.com
in the form tag, add onsubmit="return false;" or if you want to keep it clean, in your js... document.observe('dom:loaded', function () { $('venform').setAttribute('onsubmit','return false'); }); this isn't tested, but give it a try Rick -Original Message- Date: Monday, March 23

[Proto-Scripty] Re: Stopping submit event

2009-03-23 Thread T.J. Crowder
Hi Chris, When you hook up the handler with Element#observe, it will get passed the event object as its first parameter (even on IE). Simply call the stop()[1] method on that object instance, e.g.: function venFormhandler(event) { event.stop(); /* ...do your ajaxy goodness... */ } [1

[Proto-Scripty] Stopping submit event

2009-03-23 Thread Chris Sansom
At 06:41 -0700 23/3/09, T.J. Crowder wrote: >function venFormhandler(event) { > > event.stop(); > > /* ...do your ajaxy goodness... */ >} That's the one! I was trying to be too complicated. Thank you. -- Cheers... Chris Highway 57 Web Development -- http://highway57.co.uk/ A censor is

[Proto-Scripty] scriptaculous dragdrop left percentage

2009-03-23 Thread Jay
Hi, Just noticed that if a draggable element uses a percentage in the style for 'left', a couple things don't seem to work right. http://ussda.demosphere.com/common/js/ps1.8.2/ prototype.js" language="JavaScript" type="text/javascript"> http://ussda.demosphere.com/common/js/ps1.8.2/ s

[Proto-Scripty] Re: Element.insert failed on IE

2009-03-23 Thread djice
Sorry, I forget to write de prototype version I use. This is the 1.6.0.3. My test is on IE 7. firstRow and response are good. I will continue to investigate the issue... On 23 mar, 11:47, "T.J. Crowder" wrote: > Hi, > > Internet Explorer can be difficult about adding to tables using > strings,

[Proto-Scripty] Is it a bug about getDimensions ?

2009-03-23 Thread Fang Yunlin
Hi, all, My use the prototype from http://www.prototypejs.org/assets/2008/9/29/prototype-1.6.0.3.js . I use the getDimensions function to get the size of the windows like this Get The Width And Height Of The Browser function on_window_resize() { var size = doc

[Proto-Scripty] Re: IE8 - new element className problem

2009-03-23 Thread Nate Smith
I was very happy to see this posted. I am having the exact same problem. Things seem to work fine in IE8's "Compatibility View." But, when I turn compatibility view off, I have the same problem you're describing here. Has anyone found a solution? On Feb 2, 8:31 am, Surendra Singhi wrote: > H

[Proto-Scripty] Re: Is it a bug about getDimensions ?

2009-03-23 Thread Alex Mcauley
yes there is a bug somewhere ... i was doing something the other day that required it.. and my work around was var dims=$(document.body).getDimensions(); this seemed to work well with all browsers i tested on (ie7,8,FF3,FF2,Safari -Win,Opera9) HTH Alex - Original Message -

[Proto-Scripty] Re: $$ utility method returns href value instead of anchor tag reference

2009-03-23 Thread tkane2000
thanks guys, that makes sense. I hacked around w/ it and found that the issue I'm running into was based on 2 things: 1. I'm selecting "gallery" as a class instead of an id (syntax error) 2. I'm running into an issue w/ IE in which I can't overwrite the onClick attribute. #2 isn't shown in this

[Proto-Scripty] Overwrite onClick in IE

2009-03-23 Thread tkane2000
...long story as to why I need to do this, but I have a set of links that already have onClick event handlers set and I need to overwrite them. If I could just get them to return false and do nothing else, I could use the observe method to the the rest. Below is an example of what I mean: The f

[Proto-Scripty] Adding Value to List Bug

2009-03-23 Thread vanq69
Hi all, I hope you can help. I have a bug when adding a value to my sortable list - it all works fine when data is present in the 2 text boxes, my issue is when there is no data. When the 2 text boxes are empty and I press the button to submit nothing happens UNTIL I enter any value into the bo