[Proto-Scripty] Re: .select on a combo

2009-09-20 Thread jacknife
hi, have you tried to use the Element class methods readAttribute/ writeAttribute instead that ordinary getAttribute/setAttribute? i recently experienced some issues using getAttribute to retrieve setted parameters. Federico On Sep 18, 7:33 pm, speedpac...@gmail.com speedpac...@gmail.com

[Proto-Scripty] Problem with insert ()

2009-09-20 Thread ohnesorge
Hey there, I've got a wired problem with insert (). Here is a snippet of my code: chkMsg = new Ajax.PeriodicalUpdater ('', '/ajax/chkmgs.php', { method: 'get', frequency: 2, decay: 1.5, onSuccess: function test (originalRequest) { var reg = /id=newMessage(\d+)/;

[Proto-Scripty] Re: Masked Input in Prototype

2009-09-20 Thread bjartekv
On Jul 29, 11:27 pm, Alex McAuley webmas...@thecarmarketplace.com wrote: why not just port the jquery one... wont take long ! Sorry for resurrecting this topic after two months. In case anyone comes to this thread looking for masked input for prototype (I know I did :-). I thought I'd mention

[Proto-Scripty] Re: Problem with insert ()

2009-09-20 Thread T.J. Crowder
Hi, Your regexp doesn't have the 'g' flag, so I suspect this is an endless loop: while (result = reg.exec($('messages').innerHTML)){ currentmessageids.push (result[1]); } Adding the 'g' flag should fix it.[1] Somewhat OT, but I would recommend grabbing innerHTML to a

[Proto-Scripty] walking the DOM

2009-09-20 Thread bill
I have little experience manipulating the dom other than using $( to get/set style elements so direct advice and a link for education would be appreciated. Overall, the problem I have is a bunch of stacked divs with different z-indexes. Sometimes the user will want to move a dive to the

[Proto-Scripty] Re: walking the DOM

2009-09-20 Thread T.J. Crowder
Hi Bill, If you make them all children of one container, then you can process them in a loop like so: var divsToSuppress, n; divsToSuppress = $('containerName').children(); for (n = divsToSuppress.length - 1; n = 0; --n) { divsToSuppress[n].setStyle({'zIndex': '4'}); // = Or

[Proto-Scripty] Re: A better way to check for an element.

2009-09-20 Thread Rick Waldron
Mislav's when() seems a bit redundant when called inside of document.observe('dom:loaded')... I think this topic would be interesting to discuss in the the proto-dev mailing list, ie. exceptions thrown for non-existant elements... i'd also like to see some kind of support for catching stupid

[Proto-Scripty] Re: A better way to check for an element.

2009-09-20 Thread Rick Waldron
Thats not to say that when() isn't pretty cool :) On Sun, Sep 20, 2009 at 9:00 AM, Rick Waldron waldron.r...@gmail.comwrote: Mislav's when() seems a bit redundant when called inside of document.observe('dom:loaded')... I think this topic would be interesting to discuss in the the

[Proto-Scripty] Re: including prototype dynamically, and observe:domloaded

2009-09-20 Thread Rick Waldron
If none of the above work... document.write('script type=text/javascript src=' http://somewhere/edu/is//prototype.js;\/script'); have you tried removing the extra / before prototype.js? On Fri, Sep 18, 2009 at 1:45 PM, Ngan Pham nganp...@gmail.com wrote: Hi jrochkind, I believe

[Proto-Scripty] Re: walking the DOM

2009-09-20 Thread bill
T.J. Crowder wrote: Hi Bill, If you make them all children of one container, then you can process them in a loop like so: var divsToSuppress, n; divsToSuppress = $('containerName').children(); for (n = divsToSuppress.length - 1; n = 0; --n) {

[Proto-Scripty] Re: walking the DOM

2009-09-20 Thread T.J. Crowder
Where xyz is the class name ? Yup. -- T.J. :-) On Sep 20, 2:47 pm, bill will...@techservsys.com wrote: T.J. Crowder wrote: Hi Bill, If you make them all children of one container, then you can process them in a loop like so:     var divsToSuppress, n;     divsToSuppress =

[Proto-Scripty] Re: walking the DOM

2009-09-20 Thread bill
T.J. Crowder wrote: Where xyz is the class name ? Yup. Thanks -- Bill Drescher william {at} TechServSys {dot} com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To

[Proto-Scripty] newbie - form submit

2009-09-20 Thread MEM
Hello all, I'd love to create a contact form using prototype and php. However, I want to make sure that, if the javascript is disable, the submission should be server side validated and submitted as well. If javascript is enable, the onclick event will trigger, hence, the js validation Will

[Proto-Scripty] Re: newbie - form submit

2009-09-20 Thread DJ Mangus
Never rely on client side validation, that's for convenience for your users, not security.First, make the functionality works (including security) without javascript. Then override the submit button with javascript by observing the submit. In that event code you submit the form via ajax, hide the

[Proto-Scripty] Prototype Selector Speed

2009-09-20 Thread Andy Daykin
Hello, I have been using prototype for a few months now, and so far I have enjoyed the functionality that it brings. However, I have noticed that it's speed is lacking. This makes me tentative to use prototype for a rather large project that I have been planning. To confirm this, I ran the