[Proto-Scripty] inline Vs block

2009-07-09 Thread lun.ashis
hi everyone !! actually this may not be the appropriate questions for you guys but i know you ppl can answer this question. Can anyone describe me why the cumulativeOffset is different for the same element if we change its css display attribute to INLINE and BLOCK ? Before i was thinking

[Proto-Scripty] Re: Sortable lists don't drag smoothly with newer versions of scriptaculous

2009-07-09 Thread david
Hi Emily, I just try the exemple in lighthub, but with IE6 (the only browser I can use now), it work as expected for both exemple. Does the problem come with a particular browser? -- david On 8 juil, 05:26, emz452 emz...@gmail.com wrote: Hi there, I have a sortable UL list using

[Proto-Scripty] Re: process further

2009-07-09 Thread sathvik
Hi, I am a newbie too , but I think if processMe() is method of a class , u can call that method using 'this' like $('fullname').value = this.processMe(parameter); On Thu, Jul 9, 2009 at 8:07 AM, chrysanthe m chrysant...@gmail.com wrote: Hi David Thanks, but I think I one step further. I am

[Proto-Scripty] Re: Need explanation

2009-07-09 Thread david
Hi Jakir, What is the question ? -- david On 7 juil, 12:26, jakir jakkir.sha...@gmail.com wrote:  /* Based on Alex Arnell's inheritance implementation. */ var Class = {   create: function() {     var parent = null, properties = $A(arguments);     if (Object.isFunction(properties[0]))    

[Proto-Scripty] Form submit not working on IE

2009-07-09 Thread JC
Here's my function: function AutosaveForm(formthis){ var alertTimerid = 0; new Form.Observer('checkform', 0.3, function(){ clearTimeout (alertTimerid); alertTimerid = setTimeout (function(){ formthis.request({ onComplete: function(){alert('Form

[Proto-Scripty] Re: process further

2009-07-09 Thread T.J. Crowder
Hi, ...like this: $('fullName').value = json.fullName; for an returned parameter fullName and an html element ID of fullName. It would be helpful if you gave a more thorough explanation of what you're looking to do. But, just for the sake of an example, let's assume: 1. You are sending

[Proto-Scripty] Re: Form submit not working on IE

2009-07-09 Thread T.J. Crowder
Hi, I don't know what's wrong, but I do have a couple of observations for you -- they might help, you never know. 1. On this line: new Form.Observer('checkform', 0.3, function(){ Since the function is otherwise reusable for multiple forms, I wonder if you might want: new

[Proto-Scripty] Re: Each IE problem

2009-07-09 Thread ColinFine
On Jul 6, 3:00 pm, Celso cels...@gmail.com wrote: Why this only works in Firefox and not in IE? $$('input').each(function(e){         if(e.type == 'checkbox' e.checked)                 $('tr-'+e.id).morph('checked');         }); Thanks, Celso *Please* don't say doesn't work or

[Proto-Scripty] Re: Each IE problem

2009-07-09 Thread Walter Lee Davis
You could maybe do something less dependent on the local structure, using up(): $$('input[type=checkbox]:checked').each(function(e){ e.up('tr').morph('checked'); }); Walter On Jul 9, 2009, at 9:11 AM, ColinFine wrote: On Jul 6, 3:00 pm, Celso cels...@gmail.com wrote: Why this

[Proto-Scripty] Re: Getting the value of a selected option

2009-07-09 Thread ColinFine
Incidentally, (not answering your question, which TJ has done) $$('#theme_choice').each(function(elem){                                 if (elem.selected) alert(elem.text + ' ' + elem.value);                 }); $$('#something') while valid, is almost always wrong. It says give me a list

[Proto-Scripty] Re: Form submit not working on IE

2009-07-09 Thread JC
Ok so I modifed the function to suggestions on 1 and 2 just incase: function AutosaveForm(formthis){ var alertTimerid = 0; new Form.Observer(formthis, 0.3, function(){ clearTimeout (alertTimerid); alertTimerid = setTimeout (function(){ formthis.request({

[Proto-Scripty] Re: Drag and Drop problems

2009-07-09 Thread Mike
Alright, I am having some new troubles. I changed the elements to SPAN's, but now when a new element appears, the previous elements become un-draggable. Why is this happening? On Jun 30, 11:14 am, Alex McAuley webmas...@thecarmarketplace.com wrote: Seriously ? ... lol It needs everything to

[Proto-Scripty] Alternatives to Protosafe?

2009-07-09 Thread Diodeus
I am working on a content delivery solution. This would allow people to include some content on their page by adding a script tag. I would like to add some slickness to the content, so I would like to use Prototype. I'm looking for some suggestions to safely add Prototype to the target pages

[Proto-Scripty] Re: Alternatives to Protosafe?

2009-07-09 Thread Alex McAuley
You could check for the jQuery object - this will get round jQuery... if(jQuery) { .. } There must be prototype only objects/functions/classes you can test for in prototype I am not sure about other libraries but i think extjs uses the Ext. namespace and similar

[Proto-Scripty] Re: Alternatives to Protosafe?

2009-07-09 Thread Diodeus
I'd rather not test for conflicts, but rather to safely coexist. On Jul 9, 4:48 pm, Alex McAuley webmas...@thecarmarketplace.com wrote: You could check for the jQuery object - this will get round jQuery... if(jQuery) { .. } There must be prototype only

[Proto-Scripty] Re: Alternatives to Protosafe?

2009-07-09 Thread waldron.r...@gmail.com
Alex, he can just check for Prototype :) if ( Prototype ) { . } -Original Message- Date: Thursday, July 09, 2009 4:48:45 pm To: prototype-scriptaculous@googlegroups.com From: Alex McAuley webmas...@thecarmarketplace.com Subject: [Proto-Scripty] Re: Alternatives to Protosafe? You

[Proto-Scripty] Re: Alternatives to Protosafe?

2009-07-09 Thread Alex McAuley
Doh!... didnt think of that - Original Message - From: waldron.r...@gmail.com To: prototype-scriptaculous@googlegroups.com Sent: Thursday, July 09, 2009 9:58 PM Subject: [Proto-Scripty] Re: Alternatives to Protosafe? Alex, he can just check for Prototype :) if ( Prototype ) {

[Proto-Scripty] Re: Form submit not working on IE

2009-07-09 Thread Miguel Beltran R.
2009/7/9 JC mims1...@gmail.com Ok so I modifed the function to suggestions on 1 and 2 just incase: function AutosaveForm(formthis){ var alertTimerid = 0; new Form.Observer(formthis, 0.3, function(){ clearTimeout (alertTimerid); alertTimerid = setTimeout (function(){

[Proto-Scripty] Re: [OT] differences with content-type?

2009-07-09 Thread Miguel Beltran R.
The recommend content-type is 'applicacion/javascript' or 'application/ecmascript' 'text/javascript' and 'text/ecmascript' are obsolete http://www.rfc-editor.org/rfc/rfc4329.txt 2009/7/6 Miguel Beltran R. yourpa...@gmail.com If use in my code (using zope) response.setHeader('content-type',

[Proto-Scripty] Re: Sortable lists don't drag smoothly with newer versions of scriptaculous

2009-07-09 Thread emz452
Hi David, Thanks for that. I'm using firefox (the only browser I can use at the moment!) and while both examples will sort, the drag and drop feel is very different for each. I will try to get onto a Windows PC later today and test it out on IE, perhaps it is just a firefox issue. Cheers,

[Proto-Scripty] Re: Sortable lists don't drag smoothly with newer versions of scriptaculous

2009-07-09 Thread emz452
Okay, just went and tested on IE and you're right, they both work fine. Thanks - it's helped narrow down the problem :) On Jul 10, 10:02 am, emz452 emz...@gmail.com wrote: Hi David, Thanks for that. I'm using firefox (the only browser I can use at the moment!) and while both examples will