[Proto-Scripty] Re: In a bind...

2008-11-06 Thread James Hoddinott
2008/11/5 kangax [EMAIL PROTECTED]: On Nov 4, 11:37 am, James Hoddinott [EMAIL PROTECTED] wrote: So I'm not entirely sure if this is a bind issue, a defer issue or something else that I'm unaware of. The scenario is this; the page loads, when this is done an Ajax.PeriodicalUpdater call is

[Proto-Scripty] Re: In a bind...

2008-11-06 Thread Alex Mcauley
James. I would suggest running a different listener on the 'li.clickinc' elements ... try something like this .. Event.observe(window,'load',function() { $$('li.clickinc').invoke('observe','click',function(e) { $('dmain').update('Updated text after clicking on '+this.id); });

[Proto-Scripty] Simple $( ) question

2008-11-06 Thread Scott
If I have an element: span id='foo'50/span Should I be able to say the following? var total = parseFloat($('foo')); Instead, I am getting a return value of: [object HTMLSpanElement] and parseFloat is returning NaN. Thanks in advance.

[Proto-Scripty] Re: In a bind...

2008-11-06 Thread James Hoddinott
2008/11/6 Alex Mcauley [EMAIL PROTECTED]: James. I would suggest running a different listener on the 'li.clickinc' elements ... try something like this .. Event.observe(window,'load',function() { $$('li.clickinc').invoke('observe','click',function(e) { $('dmain').update('Updated

[Proto-Scripty] Re: Simple $( ) question

2008-11-06 Thread Alex Mcauley
You need to get the contents of the element as $('foo') is the element itself .. innerHTML or innerTEXT should work ... var total=$('foo').innerTEXT; alert(parseFloat(total)); - Original Message - From: Scott [EMAIL PROTECTED] To: Prototype script.aculo.us

[Proto-Scripty] Re: Simple $( ) question

2008-11-06 Thread Luca Manganelli
Try: var total = parseFloat($('foo').innerHTML); On Thu, Nov 6, 2008 at 03:06, Scott [EMAIL PROTECTED] wrote: If I have an element: span id='foo'50/span Should I be able to say the following? var total = parseFloat($('foo')); Instead, I am getting a return value of: [object

[Proto-Scripty] Re: passing parameter

2008-11-06 Thread T.J. Crowder
Hi Victor, It depends entirely on what you're calling and how it's expecting to receive them. When calling an element's observe() method, for instance, this works: myelement.observe('click', function(evt) { /* ... */ }); ...but this doesn't: myelement.observe({ eventName:

[Proto-Scripty] Re: Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-06 Thread jak0lantash
Hi, Thank you for your respons. Yes I know this possibility. I though about it, but I can not use it... and I don't think the bind problem will be fix in that way ;) Because, if in your example, if I take the module-0 code and put it down between the 1 and 2. The binds will be broken too, aren't

[Proto-Scripty] Building a lazy loader

2008-11-06 Thread Alex Mcauley
Hi guys and gals ... today i am building a lazyLoader based on prototype Its already working except i assumed i could do a synchronous request so nothing further in the javascript function is executed untill the request has finished ... it seems that asynchronous : false; is not wokring

[Proto-Scripty] Re: Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-06 Thread T.J. Crowder
Hi, Yes I know this possibility. I though about it, but I can not use it... and I don't think the bind problem will be fix in that way ;) I'm pretty sure it will. Did you try it? I did a trivial test, and it worked fine. Here's my version of moveDown, which differs slightly from Rob's as

[Proto-Scripty] Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-06 Thread T.J. Crowder
Alex, For some reason your message came in as being in someone else's thread. Did you by any chance post to the group by clicking Reply in your email client (or in the GGroups web interface) and just changing the subject line? If so, please don't do that, GGroups is picking up the thread ID

[Proto-Scripty] Setting a div to decay on page load?

2008-11-06 Thread [EMAIL PROTECTED]
Not quite sure how to phrase this. I am a new scriptaculous user, I am comfortable using scriptaculous and prototype when I use the demos as a basis for what I am doing. However, I am working on adding ajax capabilities into a CMS that I have built. In some instances I have set a div with a

[Proto-Scripty] Re: Building a lazy Loader

2008-11-06 Thread Alex Mcauley
i want it to be transparent hence the syncronous request ... so the function that calls the dependencies waits to continue untill the scripts that it requires are loaded I have it inserting a script into the dom properly but if i try to call the function in the test script it doesnt work

[Proto-Scripty] Re: Setting a div to decay on page load?

2008-11-06 Thread Alex Mcauley
you can observe the window to load and set a timeout to execute Effect.Fade Regards Alex - Original Message - From: [EMAIL PROTECTED] To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Thursday, November 06, 2008 2:34 PM Subject: [Proto-Scripty] Setting a

[Proto-Scripty] Re: In a bind...

2008-11-06 Thread James Hoddinott
2008/11/6 T.J. Crowder [EMAIL PROTECTED]: [...] So you might consider event delegation instead. Put your click handler on the dticketlist element, and you don't have to do *anything* to hook up the individual ticket items: Events bubble up the DOM tree, and so a click on the ticket will

[Proto-Scripty] Re: In a bind...

2008-11-06 Thread T.J. Crowder
Hi James, Glad to help. One note: ...I hadn't realised that you could assign the 'click' to the holding div and it would be applied to the elements below it. Well, it's not really that it's *applied* to the elements below it. It's just that when an event is fired on an element (e.g., it's

[Proto-Scripty] contacting the www.prototypejs.org site administrator

2008-11-06 Thread Don T
Does anyone know who to contact about the contacting the www.prototypejs.org site Thanks Don T --~--~-~--~~~---~--~~ 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

[Proto-Scripty] Re: contacting the www.prototypejs.org site administrator

2008-11-06 Thread T.J. Crowder
Hi, If you see an error, probably best to file a ticket in Lighthouse; details here[1]. Even if it's not specifically the docs but (say) a broken link, that'll get routed to someone who can edit the site. Otherwise, anything we can help with here? The Core guys and various contributors tend

[Proto-Scripty] AJAX file upload using Prototype

2008-11-06 Thread Uzm
Hey, I've been looking for AJAX file upload script tutorials using Prototype, but didn't find anything about it. Actually, there isn't really a lot of sorting in case you're looking for AJAX file upload with none usage of Prototype. Could you, folks, help me with this problem?

[Proto-Scripty] Re: Building a lazy Loader

2008-11-06 Thread T.J. Crowder
Hi Alex, I could be completely misreading that code, and if I am, apologies in advance. It *looks* like you're trying to create a queue where you'll only load one script file at a time, and that you're first downloading each script via Ajax.Request and then separately appending a script tag to

[Proto-Scripty] Re: Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-06 Thread jak0lantash
Hi, You're right !!! It works fine... Perfect, thank you so much. I though the fault was comming from the innerHTML way, but I hasn't known about this next/ insert thing. I think I'm not so good in JavaScript ;) Just a test file : http://www.letroquet.eu/tests/module_inverse.html Now, I have to

[Proto-Scripty] Re: Building a lazy Loader

2008-11-06 Thread Alex Mcauley
yes thanks for the reply, i have removed evalScripts, i only put it in for a second to test i am going to put in a timeout to pause the script before it continues to return back to the function that calls it and see if that akes a difference ... if not i will go the async way and put a

[Proto-Scripty] Re: passing parameter

2008-11-06 Thread vtsuper
yes...this is my question Or are you asking which style to use when you're defining your own functions and classes? Both ways should be doing the same things...but what I want to know is what is the prototypejs developer will suggest us to use. On Nov 6, 8:52 pm, T.J. Crowder [EMAIL

[Proto-Scripty] Re: AJAX file upload using Prototype

2008-11-06 Thread Alex Mcauley
you cannot upload or download files with an XHR its impossible - Original Message - From: Uzm [EMAIL PROTECTED] To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Thursday, November 06, 2008 4:03 PM Subject: [Proto-Scripty] AJAX file upload using Prototype

[Proto-Scripty] Re: AJAX file upload using Prototype

2008-11-06 Thread Uzm
That's not quite true: http://www.seemysites.net/projFolder/uploader/ On Nov 6, 5:45 pm, Alex Mcauley [EMAIL PROTECTED] wrote: you cannot upload or download files with an XHR its impossible --~--~-~--~~~---~--~~ You received this message because you are

[Proto-Scripty] Problem with Effect.Move, Overflow:hidden and IE7

2008-11-06 Thread hectorvox
I'm using a div with overflow:hidden wrapped around another div that I move left and right (using Effect.Move) to create a scroll area effect. However, when the inner div which is being moved has an absolute (or relative) position applied to it it decides that it wants to ignore the

[Proto-Scripty] Re: AJAX file upload using Prototype

2008-11-06 Thread T.J. Crowder
you cannot upload or download files with an XHR its impossible That's not quite true: Yes, it is -- as far as it goes. (XHR can't do it, full stop.) But as you pointed out with your link, XHR not being able to do it doesn't mean you can't do cool things *other* ways. :-) If you can do the

[Proto-Scripty] Re: Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-06 Thread jak0lantash
Anyway, do you have a solution do that please ?? div id='one'One/div div id='two'Two/div Then div id='one'Two/div div id='two'One/div ??? Or maybe div id='position_one'div ='module_one'One/div/div div id='position_two'div ='module_two'Two/div/div Then div id='position_one'div

[Proto-Scripty] Ajax.Request and text/javascript = syntax errors in javascript

2008-11-06 Thread jaap.taal
I'm using Ajax.Request and receive a text/javascript content-type, but sometimes I make a syntax error in my javascript. The error is now silently ignored (at least that's what I think). Using firebug it doesn't show in my console window. new Ajax.Request('myscript.php', {

[Proto-Scripty] IE problem with multiple paralell morphings

2008-11-06 Thread jrmout
Hi! I developped a webpage for my string quartet, and as i had so many problems with IE i did 2 versions. I'll fuse them when both are ready. A version for non IE browsers: http://cuartetotoldra.com/toldrismo/prueba3enhanced.html and another one just for IE:

[Proto-Scripty] Re: Building a lazy Loader

2008-11-06 Thread Matt Foster
What are the drawbacks of requestings the JS file via Ajax.Request and stuffing the responseText inside the innerHTML property of a generated script element? Does it have the global scope restriction like eval? Does it cause a processing bottle neck for the client? Is it supported by all

[Proto-Scripty] Re: IE problem with multiple paralell morphings

2008-11-06 Thread Diodeus
I'm not experiencing the problem you describe. In IE the menu effect is quite smooth. On Nov 6, 2:06 pm, jrmout [EMAIL PROTECTED] wrote: Hi! I developped a webpage for my string quartet, and as i had so many problems with IE i did 2 versions. I'll fuse them when both are ready. A version

[Proto-Scripty] Re: Building a lazy Loader

2008-11-06 Thread Alex Mcauley
i wanted to build my own for POC and because i dont want it bloated ... - Original Message - From: buda [EMAIL PROTECTED] To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Thursday, November 06, 2008 7:17 PM Subject: [Proto-Scripty] Re: Building a lazy Loader

[Proto-Scripty] Re: Building a lazy Loader

2008-11-06 Thread Alex Mcauley
not sure on the drawbacks but i have had a good idea ... i am going to write a function to the bottom of the file and test it for calling.. once its callable then the file is ready in the dom and can be used - Original Message - From: Matt Foster [EMAIL PROTECTED] To: Prototype

[Proto-Scripty] Using Prototype from within an iframe

2008-11-06 Thread Walter Lee Davis
I have a file upload widget working perfectly on Safari 3 and Firefox 2 (both on Mac), and Firefox 3 on XP but dying horribly on IE6 SP3 on XP. Dying horribly is probably a bit harsh, the upload part works fine, and I am able to remove the stale file inputs from my layout, but I can't

[Proto-Scripty] Re: Action on innerHTML and bindAsEventListener doesn't work anymore

2008-11-06 Thread RobG
On Nov 7, 12:24 am, T.J. Crowder [EMAIL PROTECTED] wrote: Hi, Yes I know this possibility. I though about it, but I can not use it... and I don't think the bind problem will be fix in that way ;) I'm pretty sure it will.  Did you try it?  I did a trivial test, and it worked fine.  

[Proto-Scripty] Re: Using Prototype from within an iframe

2008-11-06 Thread Walter Lee Davis
On Nov 6, 2008, at 3:57 PM, Walter Lee Davis wrote: [snip] The filesList reference works, and I know that the element is being extended, because the remove() part works correctly. But no matter what I try to insert into filesList later (I even tried with a simple lihowdy/li to see if

[Proto-Scripty] Re: Building a lazy Loader

2008-11-06 Thread RobG
On Nov 7, 12:52 am, Alex Mcauley [EMAIL PROTECTED] wrote: i want it to be transparent hence the syncronous request Blocking the UI is hardly transparent. The lazy loading of scripts is a flawed strategy - it seems a good idea but if you think about the issues, you should realise that you'll

[Proto-Scripty] Re: Building a lazy Loader

2008-11-06 Thread RobG
On Nov 7, 5:45 am, Matt Foster [EMAIL PROTECTED] wrote: What are the drawbacks of requestings the JS file via Ajax.Request and stuffing the responseText inside the innerHTML property of a generated script element? It is not reliable across browsers, nor is assigning the source as a string