[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] 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

[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

[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

[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 tr id=111td/ tdtd../td/tr. This html represents a row of a table, my goal is to add this row to my table. So I use this code: firstRow = $('msg'+colorIndicator); response =

[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 instead of:

[Proto-Scripty] Re: Shrinking JS

2009-03-23 Thread Richard Quadling
2009/3/20 Szymon Wilkołazki wilkola...@gmail.com:  2009/3/20 Jeztah webmas...@thecarmarketplace.com: 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

[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 t...@crowdersoftware.com: 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

[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.

[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 a

[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. !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http:// www.w3.org/TR/html4/loose.dtd html head script src=http://ussda.demosphere.com/common/js/ps1.8.2/

[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 t...@crowdersoftware.com wrote: Hi, Internet Explorer can be difficult about adding to

[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 head meta http-equiv=content-type content=text/html; charset=utf-8 / titleGet The Width And Height Of The

[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