[Proto-Scripty] Simple Prototype call runs in FF, but not IE

2009-12-17 Thread Jason
I'm attempting to use Prototype to build an AJAX-based die roller program. This is my first foray into Prototype and AJAX, and most of this was put together using the examples on the Prototype site, as well as a few others found around the web. Nothing elaborate. What I ended up with was a tool

[Proto-Scripty] An invalid or illegal string was specified code: 12 with protoaculous1.8.3

2009-12-17 Thread Wen
Hi I was trying to use protoaculous1.8.3.min.js like I did before in my template, include it in the following format script src=scripts/ protoaculous.1.8.3.min.js charset=iso-8859-1 type=text/javascript/script but then I got the error message Error: uncaught exception: [Exception... An invalid

[Proto-Scripty] Issues with drag and drop using Sortable on IE

2009-12-17 Thread abhi
Hi, I am using the Sortable for drag and drop for the first time and the drag and drop works great on Firefox, Safari and Chrome but i am having the following issues on IE. 1) On dragging and dropping an element the element does not get released from the cursor. 2) On dragging the element to an

[Proto-Scripty] Re: Simple Prototype call runs in FF, but not IE

2009-12-17 Thread T.J. Crowder
Hi Jason, It looks like you're trying to use MooTools and Prototype on the same page. Unless you've hacked one or both of them, I'm pretty sure they can't co-exist. HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Dec 16, 7:47 pm,

[Proto-Scripty] Re: Extending a class

2009-12-17 Thread david
Hi Greg, While reading my answer, I missed sometyhing :(( You could not use unser*ialize with the $F utility ? $F is an alias for Form.Element.Methods.getValue and it return a string, not an extend object like the $() function. So output of $F is a string, and if you want to use the unserialize

[Proto-Scripty] Re: Issues with drag and drop using Sortable on IE

2009-12-17 Thread david
Hi Abhi, If you'll have code, it could be great. so we can catch the error :)) -- david On 17 déc, 01:15, abhi abhi...@gmail.com wrote: Hi, I am using the Sortable for drag and drop for the first time and the drag and drop works great on Firefox, Safari and Chrome but i am having the

[Proto-Scripty] Re: An invalid or illegal string was specified code: 12 with protoaculous1.8.3

2009-12-17 Thread david
Hi Wen, Are you sure about the charset value on the script tag ?? couldn't you delete it ? I'm not sure it will resolve your trouble, but it can. Next, do you have a live exemple or the link to protoculous 1.8.3. -- david. On 16 déc, 22:39, Wen wenchen@gmail.com wrote:  Hi I was trying

[Proto-Scripty] Re: Multiple prototype calls

2009-12-17 Thread david
Hi cannonballer , First why do you need two prototype on the same page, if you need to modify a behaviour of a particular method, just use the magic wrap() function's method. To answer to your question, I'm not sure it's so easy to put prototype two times in your pages. -- david On 15 déc,

[Proto-Scripty] Re: Using cropping on images and affects

2009-12-17 Thread david
Hi Ralph, if you want to do the text effect on the 2 differents box on the exemple you 'll give us ? In fact I don't understand why you'll need to crop the image ? CSS can do it for you with the overflow:visible; property. I perhaps miss something :(( but I think you could do such an effect

Re: [Proto-Scripty] Re: Issues with drag and drop using Sortable on IE

2009-12-17 Thread Abhijat Thakur
Hi David, Enclosed is the code. When i say element can be dragged to open position i mean that in the sortable area if there is an open position the draggable item can be placed there and it does not snap back to its original position. FF, Chrome and Safari does that. Enclosed is the code.

[Proto-Scripty] Prototype with Raphael

2009-12-17 Thread code1n
hello everyone. i'm trying to use raphael svg graphic library with prototype there is a question wich is troubeling me - how to extend svg elements with prototype? For example, i use this code: r = Raphael($(container), 300, 300); c = r.circle(100, 100, 50); c.attr('fill', 'red');

[Proto-Scripty] Re: Multiple prototype calls

2009-12-17 Thread cannonballer
Hi David, Thanks for replying. We have a page which calls in a saje.js in the header, and this file contains the prototype code. We have now just recently tried to embed facebook connect into our pages - the way it works is a user will try and submit a comment to an article, and at the same

[Proto-Scripty] attach one observer for many events to an element

2009-12-17 Thread buda
What is the best way to attach one observer to many events for examle: I need to attach an observer to input element to validate input value for 'change' and 'paste' events -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to

[Proto-Scripty] Re: attach one observer for many events to an element

2009-12-17 Thread T.J. Crowder
Hi, Just reuse the same handler for multiple events: function handler(event) { /* ... */ } element .observe('change', handler) .observe('paste', handler); If you need to bind, do that first so you're not creating unnecessary extra functions: var Thingy =

[Proto-Scripty] Re: callback decoration

2009-12-17 Thread Eric
Hi Sergio, I am not sure what you mean by make the bind but here is an example doing what you ask using ajax responders: Ajax.Responders.register({ onCreate: function(ar) { ar.options.onSuccess = ar.options.onSuccess || Prototype.emptyFunction; ar.options.onSuccess =

Re: [Proto-Scripty] Re: Issues with drag and drop using Sortable on IE

2009-12-17 Thread Abhijat Thakur
Hi, I changed the code and the behavior is still the same on IE. One more issue that i noticed on IE is that when we drag an item, the only way to release is by double click. When the item gets released the onUpdate callback is never called. div class=favorite_bling_reorder_wrapper div

Re: [Proto-Scripty] Issues with drag and drop using Sortable on IE

2009-12-17 Thread Abhijat Thakur
Hi. This is fixed. I looked at Zoltan post and i was including prototype.js twice in my page which was breaking on IE. Thanks for all the help. Abhi On Wed, Dec 16, 2009 at 4:15 PM, abhi abhi...@gmail.com wrote: Hi, I am using the Sortable for drag and drop for the first time and the drag

[Proto-Scripty] Re: attach one observer for many events to an element

2009-12-17 Thread buda
thanks for samples On 17 дек, 17:40, T.J. Crowder t...@crowdersoftware.com wrote: Hi, Just reuse the same handler for multiple events:     function handler(event) { /* ... */ }     element         .observe('change', handler)         .observe('paste', handler); If you need to bind, do

[Proto-Scripty] Multi-dimensional JSON passed in an Ajax request?

2009-12-17 Thread Ian R
So ok, I have this JSON string I'm trying to pass as a post. From my object's toJSON() method, I get this string: { anonymous_element_1: { class: required, msg: }, anonymous_element_2: { class: required, msg: }, public_phone: {

Re: [Proto-Scripty] Re: attach one observer for many events to an element

2009-12-17 Thread Alex Wallace
A faster method would be to attach a single observer for all of the inputs. Something like: var InputsObserver = Class.create({ initialize : function(){ $(input-wrapping-element).observe(click, this.inputsClickHandler.bindAsEventListener(this)); }, clickHandler : function(event){ var

[Proto-Scripty] Re: Multi-dimensional JSON passed in an Ajax request?

2009-12-17 Thread T.J. Crowder
Hi, Ajax.Updater (and the rest) don't claim to post object graphs to the server, and in fact they don't. They only pass name-value pairs, because they're doing normal HTTP GETs or POSTs, which are based on name-value pairs. HTTP doesn't know anything about JSON. If you want to pass an object

[Proto-Scripty] Re: Firefox's inline JS execution order

2009-12-17 Thread JoJo
How does dom:ready prevent multiple executions of the same script? On Dec 16, 6:16 am, Alex McAuley webmas...@thecarmarketplace.com wrote: Why not attach the widget code to dom:ready Alex Mcauleyhttp://www.thevacancymarket.com - Original Message - From: JoJo tokyot...@gmail.com

[Proto-Scripty] Re: Firefox's inline JS execution order

2009-12-17 Thread T.J. Crowder
Hi, Script tags are executed in strict document order on all browsers (unless the `defer` attribute is put on the script tag), not least because the scripts might output to the document inline via `document.write` -- and so order of execution is critical. (The `defer` attribute changes that by