[Proto-Scripty] Re: Applying scriptaculous effects on CSS styles

2009-02-11 Thread david
Hi Eric, After writting the last post, a light bright in my mind! Why could it be impossible?? Stupid The very big difficulties is to be able to select the good class to change it's value. But look at this small test. It will change opacity from 1 to 0 to all black elements when clicking th

[Proto-Scripty] Re: AJAX

2009-02-11 Thread david
Sorry, missing the link: http://prototypejs.org/api/ajax/options -- david On 11 fév, 22:23, david wrote: > Hi paul, > > not sending a response to the ajax call let it think it's not > completed. I think the onException callback could help you in this > case?? But not really sure. > Let's have a

[Proto-Scripty] Re: AJAX

2009-02-11 Thread david
Hi paul, not sending a response to the ajax call let it think it's not completed. I think the onException callback could help you in this case?? But not really sure. Let's have a glance to the list of accessible callback, because there is no reason that you'll never have to handle an error. -- d

[Proto-Scripty] Re: AJAX

2009-02-11 Thread Paul
Just a quick edit: I've jsut added a response to be sent back and got the alert to display the response so that is fine, with the response tab in FireBug showing: This is a responsenull; /* !eval(new String('(' + this.header('X-JSON');)) */null; /* !eval(new String('(' + this.header('X-J

[Proto-Scripty] Re: AJAX

2009-02-11 Thread Paul
Hi, Thanks for all your help so far. I've added the callback function so now have: //

[Proto-Scripty] Re: Taboo Subject

2009-02-11 Thread seasoup
I'd say its a trade off of time & money vs market share. How important to the companies success is it to get that 5% market share with javascript turned off? Is it really worth spending twice as long on? Probably not, probably at most worth 5% of your time. Redirect them to a page telling them

[Proto-Scripty] Re: Javascript scope

2009-02-11 Thread david
Hi doug, Yes, give us a live demo, if possible. But what I read let me think that you would access to a variable in the main window from javascript coded inside a frame. This is possible but under certain restrictions for security reasons. Is that what you trying to do?? -- david On 11 fév, 1

[Proto-Scripty] Re: Applying scriptaculous effects on CSS styles

2009-02-11 Thread david
Hi Eric, To be more precise regarding you answer in the second post, there is actually no way to modify a CSS property and do a transition on a large number of elements. But things are changing, and there is webkit pushing the limit on web animation (or transition). the answer given from bminiha

[Proto-Scripty] Re: Firefox & document.getElementById

2009-02-11 Thread kouPhax
Perfect. I missed that part. James. On Feb 11, 3:03 pm, "T.J. Crowder" wrote: > Hi, > > Details here:http://prototypejs.org/learn/extensions > > (There's a link to that from the Element API documentation page.) > > HTH, > -- > T.J. Crowder > tj / crowder software / com > Independent Software E

[Proto-Scripty] Re: Javascript scope

2009-02-11 Thread T.J. Crowder
Hi, > I wonder if a div with style overflow:auto and a scrollbar on the side > could act similar to a frame. It shouldn't, no. > But, when I do an Ajax.Update of the lightbox div, and I have an > onclick on a button in that lightbox. The code attached to that > button can longer access the glo

[Proto-Scripty] Re: Firefox & document.getElementById

2009-02-11 Thread T.J. Crowder
Hi, Details here: http://prototypejs.org/learn/extensions (There's a link to that from the Element API documentation page.) HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Feb 11, 2:57 pm, kouPhax wrote: > Hello, > > I am confu

[Proto-Scripty] Firefox & document.getElementById

2009-02-11 Thread kouPhax
Hello, I am confused with something. I had a look and seen no other posts about this but everytime I do a document.getElementById in Firefox I automatically get a fully extended Element object. Not so in IE. Why is this happening? e.g. window.onload = function(){ document.getElementById(

[Proto-Scripty] Re: Prototype bug?

2009-02-11 Thread Jim Higson
On Wednesday 11 February 2009 05:06:55 RobG wrote: > The language is designed so you shouldn't need to care.  I think this > helps the argument of why functions like isString are not a good > idea.  If you want to test for specific properties or features of an > object, test for them.  Don't test

[Proto-Scripty] Re: Applying scriptaculous effects on CSS styles

2009-02-11 Thread ColinFine
On Feb 9, 2:49 pm, Eric wrote: > Hi, > > I apologize if my question is stupid (and it should be since I cannot > find any reference to this idea anywhere) but I was wandering if it > would be possible to use an effect on a CSS style definition instead > of a DOM object. The people who have ans

[Proto-Scripty] Re: Javascript scope

2009-02-11 Thread doug
Thanks for the advice every one. T. J. Crowder, I wonder if a div with style overflow:auto and a scrollbar on the side could act similar to a frame. I figured what makes things go wrong, but still not sure why. I bring up a lightbox similar to the one here: http://particletree.com/features/li

[Proto-Scripty] Re: Taboo Subject

2009-02-11 Thread Pete
I'm certainly no zealot when it comes to things like standards and accessibility, although I've found that they are worthy goals in the majority of projects I've worked on. I would be *very* wary of any client-side coding of the kind you described that is *absolutely* required for correct server-

[Proto-Scripty] multiple select tag auto select using inpalcecollectioneditor

2009-02-11 Thread ProtoUser
Hii all .. I was wondering how to set the auto select in a multiple selet tag. First of all didinot find any document regarding creating a multiple select tag using InPlaceCollectionEditor. If any please tell me. for the time being i am making the select tag as a multiple tag like this, //custo

[Proto-Scripty] Re: Javascript scope

2009-02-11 Thread T.J. Crowder
Hi Doug, > I don't really understand, for example why, if there is a variable > window.myvar, some Javascript code would not be able to access it... As far as I know, all code within the same document can access that property; it is global to the document because it's a property of the "window"

[Proto-Scripty] Re: AJAX

2009-02-11 Thread david
Hi paul, I can see at least one problem at the definition of the AJAX request. You don't have any callback to treat the response. You should have something like : new Ajax.Request("http://127.0.0.1/";, { method: "post", parameters: { data: Sortable.serialize("grou

[Proto-Scripty] Re: AJAX

2009-02-11 Thread Alex Mcauley
use firefox and firebug and see whats getting posted in the console log .. it should hell you to understand if Javascript is sending the data or not - Original Message - From: "Paul" To: "Prototype & script.aculo.us" Sent: Wednesday, February 11, 2009 12:53 AM Subject: [Proto-Scripty]

[Proto-Scripty] Re: Taboo Subject

2009-02-11 Thread Alex Mcauley
Thanks Pete ... Some core functions actually rely on JS (inline editing, Date picking and so on) ... i would have to code the site twice and have some extremely heavy server side restrictions in place for some stuff (at the moment i just use readonly="readonly" so i can not take user input and

[Proto-Scripty] Re: Possible prototype bug ?

2009-02-11 Thread Alex Mcauley
Thanks SWilk ... i saved myself the hassle and changed the classname it was looking for instead !! - Original Message - From: "SWilk" To: Sent: Tuesday, February 10, 2009 5:24 PM Subject: [Proto-Scripty] Re: Possible prototype bug ? > > Hey, > > I think you are missing the point of E

[Proto-Scripty] AJAX

2009-02-11 Thread Paul
Hi, I'm fairly new to AJAX, and I'm trying to send it to my Python server for the project that I'm doing, after doing a Sortable.serialize, but I'm getting no data at the other end - the problem being I'm not sure if it is the Python or the javascript which is causing the problem, so I was wonderi

[Proto-Scripty] Re: Taboo Subject

2009-02-11 Thread Pete
Hi Alex, Going beyond progressive enhancement, I'd take Google's approach with products like Maps and Gmail as great examples of extremely rich interfaces that are also done very well as "basic html." The end result for them is, in these rather extreme cases, actually coding the application *twi