[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread laurin1
Like I said, this code works just fine in IE, but in Chrome, it does not work. >$aEle = $('TicketOptions').getElementsByClassName('LoadChecks'); >$aEle.each(function($s){ >if($s != $sEle) $s.checked = false; >}); No error in the browser, but the JS debugg

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread Ken Snyder
See my comments below. - Ken Snyder On Fri, Nov 14, 2008 at 2:17 PM, laurin1 <[EMAIL PROTECTED]>wrote: > > I'm sorry. My brain is fried, it works on arrays with simple values, > but not arrays with Objects IN them. Mispoke. > > For instance, in IE and in Chrome, this works fine: > >$a = n

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread kangax
On Nov 14, 4:17 pm, laurin1 <[EMAIL PROTECTED]> wrote: > I'm sorry. My brain is fried, it works on arrays with simple values, > but not arrays with Objects IN them. Mispoke. > > For instance, in IE and in Chrome, this works fine: > > $a = new Object(); > > $a['testme1'] = 'tested1'

[Proto-Scripty] Re: using eval inside Ajax Request

2008-11-14 Thread kangax
On Nov 14, 7:03 pm, Namotco <[EMAIL PROTECTED]> wrote: > Sorry, should be: > > eval("someVar=function() {     this.elm=$('outputs');    }; s=new > someVar(); s.innerHTML='test';"); Omitting `var` is generally a bad idea. Either use `var` or assign to a property directly (as in `window.foo = 'bar'

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-14 Thread kangax
On Nov 14, 11:52 am, Abel Figueiredo <[EMAIL PROTECTED]> wrote: > This solution. Is it for same-named form controls? My solution doesn't > have same-named controls. > > So with this i can send the return from mergeForms... as my > parameters, right? Yes. Just pass it as many forms as you need. [

[Proto-Scripty] Re: using eval inside Ajax Request

2008-11-14 Thread Namotco
Sorry, should be: eval("someVar=function() { this.elm=$('outputs');}; s=new someVar(); s.innerHTML='test';"); alert($('outputs').innerHTML); // not 'test' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[Proto-Scripty] Re: Browser Support List?

2008-11-14 Thread RobG
On Nov 15, 6:18 am, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > Thanks, TJ. That's a really good point, but unfortunately many of our > clients use old Macs with IE 5.5. I would still like to provide them with > some basic Javascript UI enhancements. Does that mean I would have to write > nativ

[Proto-Scripty] Re: using eval inside Ajax Request

2008-11-14 Thread Namotco
Interesting, I've never done that before. What about this: eval("someVar=function() { this.elm=$('getElm'); this.elm.innerHTML='test'; };"); alert($('getElm').innerHTML); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[Proto-Scripty] Re: Portal Interface

2008-11-14 Thread disccomp
Thanks, now that there is a working link, others may actually be able to get to it. ;) --~--~-~--~~~---~--~~ 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 prototyp

[Proto-Scripty] Re: Portal Interface

2008-11-14 Thread Brian Williams
i think googlecode is fine, i'm just saying that the svn repos is a bit messed up this link does not work http://scriptaculous-portal-extender.googlecode.com/svn/trunk/scriptaculous-portal-extender-read-only this link does http://scriptaculous-portal-extender.googlecode.com/svn/trunk%20scriptacu

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread laurin1
I'm sorry. My brain is fried, it works on arrays with simple values, but not arrays with Objects IN them. Mispoke. For instance, in IE and in Chrome, this works fine: $a = new Object(); $a['testme1'] = 'tested1'; $a['testme2'] = 'tested2'; $a['testme3'] = 'tested

[Proto-Scripty] Re: Portal Interface

2008-11-14 Thread disccomp
I asked for info on where it would be best to collaborate on this and no one offered any suggestions. What/where do you suggest? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread Alex Mcauley
thats my point each is an array ittrerator no ? http://www.prototypejs.org/api/array/each - Original Message - From: "laurin1" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.us" Sent: Friday, November 14, 2008 8:56 PM Subject: [Proto-Scripty] Re: Chrome, Object

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread laurin1
It works fine on arrays, if that is what you are asking. On Nov 14, 2:39 pm, "Alex Mcauley" <[EMAIL PROTECTED]> wrote: > each does an array itterator no ? > > > > - Original Message - > From: "laurin1" <[EMAIL PROTECTED]> > To: "Prototype & script.aculo.us" > Sent: Friday, November 14, 2

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread Alex Mcauley
each does an array itterator no ? - Original Message - From: "laurin1" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.us" Sent: Friday, November 14, 2008 8:29 PM Subject: [Proto-Scripty] Chrome, Object and each() > > Apparently, this does not work? I get this error message when I tr

[Proto-Scripty] Chrome, Object and each()

2008-11-14 Thread laurin1
Apparently, this does not work? I get this error message when I try it: uncaught exception TypeError: Object # has no method 'each' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.

[Proto-Scripty] Re: Browser Support List?

2008-11-14 Thread Hector Virgen
Thanks, TJ. That's a really good point, but unfortunately many of our clients use old Macs with IE 5.5. I would still like to provide them with some basic Javascript UI enhancements. Does that mean I would have to write native Javascript for them? -Hector On Fri, Nov 14, 2008 at 8:31 AM, T.J. Cro

[Proto-Scripty] Re: Portal Interface

2008-11-14 Thread Brian Williams
hate to be a downer, but yer SVN repos is a bit hokey... just an FYI On Fri, Nov 14, 2008 at 12:37 PM, disccomp <[EMAIL PROTECTED]> wrote: > > Update: > Setup the project at > http://code.google.com/p/scriptaculous-portal-extender/ > ( svn checkout > http://scriptaculous-portal-extender.googlec

[Proto-Scripty] Re: questions about memory leaks

2008-11-14 Thread Tobie Langel
Of course, you'd save yourself all of this trouble by using event delegation[1]. :) Best, Tobie [1] http://proto-scripty.wikidot.com/faq#delegation On Nov 14, 2:04 pm, bluezehn <[EMAIL PROTECTED]> wrote: > Yep cheers T.J. This all makes alot of sense. Nice to understand > everything rather tha

[Proto-Scripty] Re: Portal Interface

2008-11-14 Thread disccomp
Update: Setup the project at http://code.google.com/p/scriptaculous-portal-extender/ ( svn checkout http://scriptaculous-portal-extender.googlecode.com/svn/trunk/ scriptaculous-portal-extender-read-only ) An example page is provided. Counter intuitively it works as expected under IE 7 & 8. But no

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-14 Thread Abel Figueiredo
This solution. Is it for same-named form controls? My solution doesn't have same-named controls. So with this i can send the return from mergeForms... as my parameters, right? On Nov 13, 5:26 pm, kangax <[EMAIL PROTECTED]> wrote: > On Nov 13, 11:13 am, Abel Figueiredo <[EMAIL PROTECTED]> > wrote

[Proto-Scripty] Re: Browser Support List?

2008-11-14 Thread T.J. Crowder
Hi, > Does anyone know if IE 5.5 for the Mac is supported? IE 5.5 for the Mac isn't even supported by Microsoft. :-) They EOL'd it a couple of years ago. -- T.J. Crowder tj / crowder software / com On Nov 14, 4:08 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > Thanks, I didn't see that. I wa

[Proto-Scripty] Re: Browser Support List?

2008-11-14 Thread Hector Virgen
Thanks, I didn't see that. I was looking for a link on the homepage. Does anyone know if IE 5.5 for the Mac is supported? -Hector On Fri, Nov 14, 2008 at 4:12 AM, T.J. Crowder <[EMAIL PROTECTED]>wrote: > > Hi, > > The list on the download page[1] is up-to-date, isn't it? If any > knows that th

[Proto-Scripty] Re: Attaching onload event while creating new img tag

2008-11-14 Thread Diodeus
Ah, That is much cleaner. Thank you. On Nov 13, 6:18 pm, kangax <[EMAIL PROTECTED]> wrote: > On Nov 13, 3:43 pm, Diodeus <[EMAIL PROTECTED]> wrote: > > > > > I've been dynamically building a slideshow based on a list of image > > filenames. I use the following code to create thumbnails: > > > $('

[Proto-Scripty] Re: node.select in IE7

2008-11-14 Thread AlannY
Thanks. It works. The problem is solved ;-) On Nov 14, 12:03 pm, "Mona Remlawi" <[EMAIL PROTECTED]> wrote: > Hi Alann, > > I believe the problem is that you are using the variable name to be > the same as the ID of the element. > IE tends to support referencing an element with its ID. > Ex: > >

[Proto-Scripty] Re: node.select in IE7

2008-11-14 Thread AlannY
Yes. You are right, I'm using the same ID in different elements. I'll check your method. tnx. On Nov 14, 12:03 pm, "Mona Remlawi" <[EMAIL PROTECTED]> wrote: > Hi Alann, > > I believe the problem is that you are using the variable name to be > the same as the ID of the element. > IE tends to suppo

[Proto-Scripty] Re: questions about memory leaks

2008-11-14 Thread bluezehn
Yep cheers T.J. This all makes alot of sense. Nice to understand everything rather than just go about doing things in a certain way because it's the "done" thing! On Nov 14, 11:02 am, "T.J. Crowder" <[EMAIL PROTECTED]> wrote: > Hi, > > > My tactic is going to be to stop defining them inline, ther

[Proto-Scripty] Re: Ajax.Responders

2008-11-14 Thread Alex Mcauley
sorry my original code was wrong .. http://pastie.org/314784 The code above actually says 2 requests when there should only be 1 !!! Here is a better example i cant recreate the problem entirely as it needs a few periodical updaters to be going on in the background but when they are

[Proto-Scripty] Re: Ajax.Responders

2008-11-14 Thread Alex Mcauley
here is a pastie of the test i ran in Firefox at least http://pastie.org/314776 Regards Alex - Original Message - From: "T.J. Crowder" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.us" Sent: Friday, November 14, 2008 12:02 PM Subject: [Proto-Scripty] Re: Ajax.Responders Hi,

[Proto-Scripty] Re: Ajax.Responders

2008-11-14 Thread Alex Mcauley
sure, i will do it now - Original Message - From: "T.J. Crowder" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.us" Sent: Friday, November 14, 2008 12:02 PM Subject: [Proto-Scripty] Re: Ajax.Responders Hi, > When creating an Ajax.Updater for instance if you use the method > onComp

[Proto-Scripty] Re: Browser Support List?

2008-11-14 Thread T.J. Crowder
Hi, The list on the download page[1] is up-to-date, isn't it? If any knows that that information is inaccurate, please raise a ticket in Lighthouse[1] with the details (including how you know!) and I'll fix it post haste. [1] http://www.prototypejs.org/download [2] http://www.prototypejs.org/co

[Proto-Scripty] Re: Ajax.Responders

2008-11-14 Thread T.J. Crowder
Hi, > When creating an Ajax.Updater for instance if you use the method > onComplete in the Ajax.Options then it never unloads the Request from > the Ajax.Responders counter Can you put together a small, self-contained test page demonstrating the issue, post it to Pastie[1], and link to it f

[Proto-Scripty] Re: prototype-1.6.0.3 line1212 'if (params = Object.toQueryString(params))' is correct ?

2008-11-14 Thread josi
I've also seen this "bug", it's producing a warning in firefox-console if config is set to javascript.options.strict == true; Also jslint produces a "Expected a conditional expression and instead saw an assignment"-warning for this. this is not very nice style, in my opinion, but it works. On Nov

[Proto-Scripty] Ajax.Responders

2008-11-14 Thread Jeztah
Just to let everyone know i may have found a little bug in the Ajax.Responders .. or maybe it is mean to to this way When creating an Ajax.Updater for instance if you use the method onComplete in the Ajax.Options then it never unloads the Request from the Ajax.Responders counter If you don

[Proto-Scripty] Re: evalScripts problem

2008-11-14 Thread Alex Mcauley
http://prototypejs.org/api/ajax/updater Read the section on evalScripts .. it explains a little bit about this kind of thing Regards Alex - Original Message - From: "Ehsun" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.us" Sent: Friday, November 14, 2008 8:32 AM Subject: [Proto-

[Proto-Scripty] Re: questions about memory leaks

2008-11-14 Thread T.J. Crowder
Hi, > My tactic is going to be to stop defining them inline, therefore not > causing a closure... Yeah, I mean, it's not something you need to be paranoid about at all, just something to keep in the back of your mind when you're dealing with large numbers of things. Small numbers of things are

[Proto-Scripty] Re: questions about memory leaks

2008-11-14 Thread bluezehn
Thanks T.J., very useful. I'm defining a lot of closures for my event handlers, ie, defining the functions for them inline (element.observe('click', function() { bla bla bla });), which are probably therefore using far too much memory. My tactic is going to be to stop defining them inline, therefo

[Proto-Scripty] Re: evalScripts problem

2008-11-14 Thread Ehsun
On Nov 14, 3:45 am, Robert Zotter <[EMAIL PROTECTED]> wrote: > Ehsun, > > Can you post some code so we can get a better understanding of what > you are trying to accomplish. > > Off the top of my head though it sounds like you may want to look into > scope > binding.http://www.prototypejs.org/api

[Proto-Scripty] Re: evalScripts problem

2008-11-14 Thread Ehsun
On Nov 14, 6:30 am, RobG <[EMAIL PROTECTED]> wrote: > On Nov 14, 7:39 am, Ehsun <[EMAIL PROTECTED]> wrote: > > > I've create an Object in my pages script tags, something like this: > > > a = new A(); > > > and when I want to call a method of a in the script which is actually > > the ajax content

[Proto-Scripty] Re: node.select in IE7

2008-11-14 Thread Mona Remlawi
Hi Alann, I believe the problem is that you are using the variable name to be the same as the ID of the element. IE tends to support referencing an element with its ID. Ex: then 'bla' would refer to div#bla element. Now back to your example, do you have multiple elements? That will cause IE to

[Proto-Scripty] Re: periodicupdater stop

2008-11-14 Thread Mona Remlawi
Hi Jan-erik, You need to initialize your global counter to 0 so that counter+1 would increment correctly. Also you need to move myAjax to be a global variable, to be able to access myAjax.stop() -- mona [EMAIL PROTECTED] On Fri, Nov 14, 2008 at 9:56 AM, jeaswe <[EMAIL PROTECTED]> wrote: > > How

[Proto-Scripty] Re: evalScripts problem

2008-11-14 Thread Ehsun
I find out this solution too. I think returning value is not an important thing! What is the current mechanism of eval() right now? On Nov 14, 6:56 am, kangax <[EMAIL PROTECTED]> wrote: > On Nov 13, 10:30 pm, RobG <[EMAIL PROTECTED]> wrote: > > > On Nov 14, 7:39 am, Ehsun <[EMAIL PROTECTED]> wrot

[Proto-Scripty] periodicupdater stop

2008-11-14 Thread jeaswe
How do I apply a stop to a running periodic updater? The below does not stop it! var counter; function periodic() { var myAjax = new Ajax.PeriodicalUpdater ('meny','../TJx/meny.php'+'?rand='+new Date().getTime(),{method: 'post',frequency:10.0,decay:2, onSuccess: function(t

[Proto-Scripty] Re: node.select in IE7

2008-11-14 Thread AlannY
Not works for me too ;-( $$('div.number').each(function (node) { var edit = node.select('a#edit')[0]; if( edit ) { ... } }); It works in Firefox and Safari and NOT works in IE ;-( On Nov 14, 12:29 am, "Gabriel Gilini" <[EMAIL PROTECTED]> wrote: > On Thu, Nov 13, 2008 at 4:17