[Proto-Scripty] sessionStorage values don't have String methods

2009-04-26 Thread Nikoh
I was wondering if anybody had come up against this. I'm trying out something using DOM Storage (only for browsers that have the feature such as FF, IE8, Safari 4) and noticed that the values coming out of them aren't decorated with the String methods. The most useful one to have is evalJSON

[Proto-Scripty] need help for this script which is working well in FF and not IE !

2009-04-26 Thread Fierfeu
Hi, I have a litle script which works well under FireFox and Opera but not with IE. this is it : $('A_text').update(texte); if (posX0) posX=0; if (posY0) posY=0; $('Ath').style.top=posX+px; $('Ath').style.left=posY+'px'; $('A_text').show();

[Proto-Scripty] Sortable lists

2009-04-26 Thread WLQ
So I've got a sortable list. Now what I want to do is to have ability to drop items on it. Like: being able to drop other items from other lists. Here's to create a sortable list: Sortable.create(tasksList, {tag:li}); So how can I drop other elements into it? Thanks, Yan

[Proto-Scripty] drag and drop problem

2009-04-26 Thread jojiju
Dear all, I have a problem in drag and drop in a code below. In two column layout, when I want to sort between two li vertically then sorting across the column occurs. for eg if I have the two column layout as - 12 34 Now if I move 2 to the lower row, I should get. 1 4

[Proto-Scripty] Re: Robert Penner's easing equations for Scriptaculous 1.8

2009-04-26 Thread Riccardo De Agostini
In any event, the expression -1 * x should always have the same outcome as the expression -x and the latter would be one fewer operations in ECMAScript terms (and even if the -1 is treated as a negative numeric literal the unary negation operation should be faster than the multiplication).

[Proto-Scripty] Re: sessionStorage values don't have String methods

2009-04-26 Thread T.J. Crowder
Hi, I wouldn't call it a bug in Prototype. I'd be tempted to call it a bug in the browser implementations but I'd have to get more into it. The spec says these things are strings (specifically DOMStrings), which I would expect a reasonable implementation to map to a JavaScript string. But

[Proto-Scripty] Re: sessionStorage values don't have String methods

2009-04-26 Thread T.J. Crowder
(Spectacular series of typing errors there, resulting in a premature send. Sorry.) ...they don't, as this sequence: var s; s = $('txtField').value window.sessionStorage.data = s; console.log('s.constructor == String? ' + (s.constructor === String));

[Proto-Scripty] Re: sessionStorage values don't have String methods

2009-04-26 Thread T.J. Crowder
*sigh* Not my morning. The *correct* code for the above: var s; s = $('txtField').value window.sessionStorage.data = s; console.log('s.constructor === String? ' + (s.constructor === String)); console.log('window.sessionStorage.data.constructor === String? ' +

[Proto-Scripty] Re: convert string to a number

2009-04-26 Thread RobG
On Apr 25, 3:37 pm, Ananth Raghuraman araghuram...@gmail.com wrote: Thanks for pointing me to the native functions! In the meantime I also found 1.8 has the Number object/function. The Number constructor is a built-in ECMAScript function. When called as a function, it does type conversion:

[Proto-Scripty] Prototypejs support for the Chrome browser

2009-04-26 Thread kstubs
Does anyone have relevant links or know of relevant discussions regarding this topic: prototypejs support in Chrome. I don't mean to seem misleading if I have the topic not quite right, I just know that my prototypejs code is not working in Chrome. Thanks, Karl..

[Proto-Scripty] Re: Ajax with charset iso-8859-1

2009-04-26 Thread Diodeus
Miguel, I am having a similar problem and have spent many hours looking for an answer.The answer I always get is: serve it as UTF-8, which requires the program answering the AJAX call to do the conversion. Unfortunately the system I am using does not allow me to do this and I need to support

[Proto-Scripty] Re: Effect.Appear doesn't work when in queue

2009-04-26 Thread Diodeus
function barcodeFlyToSimLeft(){ new Effect.Move('barcodeLeft',{x: -350, y: 200, mode: 'relative'}); new Effect.Shrink('barcodeLeft',{direction: 'center', queue: 'end', afterFinish: function(){Barcode('043396097742');}}); new Effect.Appear('barcodeLeft',{x: 0, y:0, duration: