[Proto-Scripty] update from 1.5.1.1 to 1.6.0.2

2010-03-19 Thread Christoph Z.
I'd like to usetwo different open source projects which are using prototype. Lightbox ist using version 1.6.0.2 and a scrollbar tool (http://www.jools.net/projects/javascript/scrollable- divs/) is using 1.5.1.1 What functions are diffent in these version and need to be changed? -- You received t

[Proto-Scripty] Re: Event.prototype is null or not an object error in IE8

2010-03-19 Thread T.J. Crowder
Hi, These days, for any advanced scripting you really need to have a doctype on the page to ensure that browsers are in standards mode (IMHO). Specifically in this case, putting a doctype on the page corrects the problem (I don't know why). You also need to put something in the body, or you'll hav

[Proto-Scripty] best cookie library

2010-03-19 Thread albert kao
What is the best cookie library built on Prototype? I found "Cookie Jar" - http://www.lalit.org/lab/jsoncookies Is it the best? -- 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-scripta

Re: [Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-19 Thread green
Hi Stefan, IE problem has been cleared by T.J. Crowder in this thread: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/840c2418c566b624?hl=en. It's actually a problem of my test html page, not relevant to the javascript.

Re: [Proto-Scripty] Re: Event.prototype is null or not an object error in IE8

2010-03-19 Thread green
Hi T.J, thank you very much! On Fri, Mar 19, 2010 at 6:35 PM, T.J. Crowder wrote: > Hi, > > These days, for any advanced scripting you really need to have a > doctype on the page to ensure that browsers are in standards mode > (IMHO). Specifically in this case, putting a doctype on the page > cor

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-19 Thread lars_stecken
Hey Green, I am not an expert in JS coding, but maybe this helps: I removed the "prototype" from Event.prototype.key and now IE 8 seems to work properly. With one exception: it is not possible to initialize the copied form fields - Firefox still works fine. Maybe you can have another look into the

Re: [Proto-Scripty] update from 1.5.1.1 to 1.6.0.2

2010-03-19 Thread Franck WATTEAU
Hi, You can easily check the compatibility between scrollbar tool & prototype 1.6 with : http://www.prototypejs.org/2008/2/12/deprecation-js-easing-the-1-5-1-6-transition Franck, On Thu, Mar 18, 2010 at 11:50 PM, Christoph Z. wrote: > I'd like to usetwo different open source projects which are

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-19 Thread lars_stecken
Hm, that's odd, because I could reproduce the error on my page with IE 8. I have all the requirements (DOCTYPE and all) in my code and still got the error. How could removing the "prototype" have helped in my case? On 19 Mrz., 12:07, green wrote: > Hi Stefan, > > IE problem has been cleared by T.

Re: [Proto-Scripty] Effect.Fade/Effect.Appear

2010-03-19 Thread bernard wolsieffer
Update: I changed things up a bit: Note that I removed the from the page definition. Now, the changes in code: function loadPage(s) { Effect.Fade('root', {duration:1.5}); if ($('contentFrame')) { $('contentFrame').remove(

Re: [Proto-Scripty] Effect.Fade/Effect.Appear

2010-03-19 Thread Christophe Decaux
I haven't look thoroughly at your issue, but seems to me that you have to queue those two effects. Otherwise, they try to happen together. I ran a while ago into the same issue. When you lauch an effect, javascript doesn't wait for it. Remaining code is executed immediately. So either you look at

Re: [Proto-Scripty] Effect.Fade/Effect.Appear

2010-03-19 Thread bernard wolsieffer
Very good. Thanks. I'll give it a shot. On 3/19/2010 9:20 AM, Christophe Decaux wrote: I haven't look thoroughly at your issue, but seems to me that you have to queue those two effects. Otherwise, they try to happen together. I ran a while ago into the same issue. When you lauch an effect, java

Re: [Proto-Scripty] Effect.Fade/Effect.Appear

2010-03-19 Thread bernard wolsieffer
Woohoo! Works pretty well, although, i'm not sure that I did it completely correctly. I had to put the Effect.Appear inside the afterFinish for the Effect.Fade... otherwise, nothing showed up. Now all I have to do is generalize the buttons to use this... merci boucoups. bernard On 3/19/2010 9:

Re: [Proto-Scripty] Effect.Fade/Effect.Appear

2010-03-19 Thread Christophe Decaux
You got it, this is exactly how I managed it Christophe Le 19 mars 2010 à 17:23, bernard wolsieffer a écrit : > Woohoo! Works pretty well, although, i'm not sure that I did it completely > correctly. I had to put the Effect.Appear inside the afterFinish for the > Effect.Fade... otherwise, nothin

[Proto-Scripty] Dynamically adding javascript which creates a UI object

2010-03-19 Thread 99miles
When the dom is loaded, I call this method where I try to insert a CalendarDateSelect into an existing div tag, but it's not working: function loader() { var newScript = document.createElement('script'); newScript.type = 'text/javascript'; newScript.innerHTML = 'new Cale

[Proto-Scripty] Re: Dynamically adding javascript which creates a UI object

2010-03-19 Thread T.J. Crowder
Hi, I think I'm misunderstanding, why do you need to use script to create a script tag with inline script? Wouldn't it work just to do the work directly? E.g.: function loader() { new CalendarDateSelect( $('cds_placeholder_105hd1').previous(), { embedded: true,

[Proto-Scripty] Re: Dynamically adding javascript which creates a UI object

2010-03-19 Thread 99miles
Well, I'm inserting it into a div node so it knows where to be layed out. Basically I have: document.observe('dom:loaded', function() { loader(); }); So if loader() just consists of what you have, it doesn't know where to be drawn. So, neither of these attempts result in the calendar bei

[Proto-Scripty] Re: Dynamically adding javascript which creates a UI object

2010-03-19 Thread T.J. Crowder
Hi, > Well, I'm inserting it into a div node so it knows where to be layed > out. Rushing out the door, but: Where a script tag is in the page only matters during initial page load, and then only 1) in terms of the order in which the scripts in the various tags get executed, and/or 2) if the scr

[Proto-Scripty] Re: Dynamically adding javascript which creates a UI object

2010-03-19 Thread 99miles
Wow, I got it! It turns out that the calendar relies on having a hidden field in the div where i add the calendar. Once you explained what exactly '(\'cds_placeholder_105hd1\').previous()' was doing I just set it back to $('date_area') which I had tried before, but then I added the hidden input fi

[Proto-Scripty] $() selector returns href instead of object

2010-03-19 Thread polygone
Hey everyone, I've run into this problem, before, but can't remember what I did to solve it. I am using the $() selector to grab an anchor tag. I've even tried the vanilla version and it still returns the href. Here is an example document.observe("dom:loaded", function(){ alert($('

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-19 Thread lars_stecken
Ok, I figured that now I am getting errors in FF on buttons which are caught with the default case in the _chrFromEvent. The mask is still working though - I could just comment this line "chr = event.key();" , right? Am I breaking any functionality by doing this? On 19 Mrz., 12:07, green wrote:

[Proto-Scripty] sleep or delay not working in IE 7 on windows XP

2010-03-19 Thread albert kao
I like to have a sleep or delay function in javascript. The Prototype library 1.6.1 has a delay function. It is working well in Firefox or Chrome but not IE 7 on windows XP. Please help (I cannot use newer version of windows). function sleep() { } sleep.delay(0.1); -- You received this message b

[Proto-Scripty] Re: $() selector returns href instead of object

2010-03-19 Thread polygone
I can't figure out, for the life of me, why this did this, but it seems work, now. I apologize. -- 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-scriptacul...@googlegroups.com. To uns

[Proto-Scripty] Re: prototype 1.6.1 problem with internet exporer 8 (ie8)

2010-03-19 Thread dreeh
thank you for your reply. i've found the problem. in some strange cases, i was trying to set netative width/height pixel values to an element with setStyle. but the great ie8 will not handle it. regards, denny On 18 Mrz., 11:25, "T.J. Crowder" wrote: > For the avoidance of doubt: Yes, I was usi

[Proto-Scripty] Re: sleep or delay not working in IE 7 on windows XP

2010-03-19 Thread T.J. Crowder
Hi, I'm sorry, your question isn't very clear. 1. What is it you're actually trying to achieve? Forget mechanisms, what is is you want to *do*? 2. Function#delay works just fine in IE7 under XP. What it it you're expecting it to do, and what is it doing instead? 3. Your quoted code doesn't do a

[Proto-Scripty] Re: prototype 1.6.1 problem with internet exporer 8 (ie8)

2010-03-19 Thread T.J. Crowder
Hi, > ...i was trying to set > netative width/height pixel values to an element with setStyle. but > the great ie8 will not handle it. Negative...width and height?! Those aren't valid[1][2]. What would they mean? [1] http://www.w3.org/TR/CSS2/visudet.html#propdef-width [2] http://www.w3.org/TR/c

[Proto-Scripty] File Loading Best Practives

2010-03-19 Thread greg
Hi All, I was wondering if anyone had advice or opinions on how best to load a bunch of files into a page. I have one page that has numerous widgets that replace a . Right now I use a synchronous (gasp!) GET. The reason is purely for simplicity. I need the data before I can build my select. I

[Proto-Scripty] Help! IE Problem

2010-03-19 Thread Ralph Brickley
Hello All! I'm having an extraordinarily hard time with IE again... My situation is I have a preview window that opens up, changes a with tinyMCE and then makes an ajax request to catch some HTML and load it into the . I'm testing it sending back a single byte, 1. The deal? Firefox shows

[Proto-Scripty] Help! IE Problem Update

2010-03-19 Thread Ralph Brickley
As an update, you can view the problem here: http://www.topsoftdesignstudio.com/eznewsletter/newsletter.php?page=newslett er&action=send Click the Preview link. Ralph Brickley Owner logotrans 435 NE Evans St Ste 115 - P.O. Box 510 McMinnville, OR 97128 (503) 857-7898 Cell |

RE: [Proto-Scripty] Help! IE Problem

2010-03-19 Thread Ralph Brickley
I've narrowed this down to a Javascript/Prototype problem. When I call the request_template function I provide it the current value of the drop down select box through $('Template').value, which is from a ... form field. request_template($('Template').value, $('template_preview_box')); if I

RE: [Proto-Scripty] Help! IE Problem

2010-03-19 Thread Ralph Brickley
Nevermind Simple misunderstanding of asynchronous.. too many hours typing ... Ralph Brickley Owner logotrans 435 NE Evans St Ste 115 - P.O. Box 510 McMinnville, OR 97128 (503) 857-7898 Cell | (503) 472-7914 Office | (800) 986-0276 Fax www.topsoft