[Proto-Scripty] Large Open Source Applications Using Prototype

2008-09-21 Thread Asciant
Hi, I was just wondering if anyone could think of any large open source apps currently using prototype / scriptaculous? I been having a look around but can't seem to find any, although I am sure that there are many out there. Cheers --~--~-~--~~~---~--~~ You rec

[Proto-Scripty] Re: Event.Observe and Dynamic Drop Downs

2008-09-21 Thread T.J. Crowder
Hi, > What I don't get is why the Drop Down change event fires only once, I don't think that's not what's happening. Look again at your code setting up the observer: > function init() > { >Event.observe('categoryval', 'change', alert('you changed the > category drop down')); > > } If you

[Proto-Scripty] Re: JSON for Novice

2008-09-21 Thread T.J. Crowder
Hi, There are several problems there. > var url = "ajax/addRole.php?newDefName=" +name+ "&type=" +type+; What if the name contains characters you can't use in a URL? You want to do some encoding there. Separately, you're doing too much encoding (and the wrong kind) -- why are you using "&" th

[Proto-Scripty] Re: array.each question

2008-09-21 Thread Spalx
Thank you kangax, What you`ve said about an object, what do you mean ? I`m currently a newbie in JavaScript (or atleast i`m not so into object oriented programming) and some things are really new for me. Thank you very much for your assistance. On Sep 21, 6:58 am, kangax <[EMAIL PROTECTED]> wrot

[Proto-Scripty] Form.serialize issue

2008-09-21 Thread jason maina
Hi all, Im trying to use form.serialize to harvest fields & their values but it return null. pars=Form.serialize('formid') form has 1table with textboxes & a select element. What could i be doing wrong? Thank you in advance jason -- Sent from Gmail for mobile | mobile.google.com --~--~---

[Proto-Scripty] Re: Form.serialize issue

2008-09-21 Thread T.J. Crowder
Hi, You'll have to give us more to work with. With problems where you think you're using the API correctly and you've checked the API docs to be sure, it's best to build a minimalist, self-contained example that demonstrates the problem. There are two reasons for this: 1. Usually, in the proce

[Proto-Scripty] Re: Form.serialize issue

2008-09-21 Thread jason maina
Problem solved name attribute was missing in controls. Thanx all the same ;-) On 9/21/08, jason maina <[EMAIL PROTECTED]> wrote: > Hi all, > Im trying to use form.serialize to harvest fields & their values but > it return null. > > pars=Form.serialize('formid') > form has 1table with textboxes &

[Proto-Scripty] Re: Event observing and memory

2008-09-21 Thread Mert Hurturk
'remove' function with an optional argument is very useful actually. Also I will try calling stopOberving() with just the element. Thank you all for your replies. On Sat, Sep 20, 2008 at 7:58 PM, kangax <[EMAIL PROTECTED]> wrote: > > On Sep 20, 4:48 am, "Mert Hurturk" <[EMAIL PROTECTED]> wrote: >

[Proto-Scripty] understanding how events are registered

2008-09-21 Thread Michael Russo
Hi, I am trying to register an event on an object. Basically, there is a pulldown, and based on the value, I want to display one of two elements, or if "none" is selected, hide them both. Here is my code: document.observe('dom:loaded', function() { Event.observe('select

[Proto-Scripty] Javascript disabled & security

2008-09-21 Thread jason maina
Lets assume javascript has been disabled on my machine & try running a page which uses prototype to get server side pages, i assume it will fail, what are the security concerns at this point? -- Sent from Gmail for mobile | mobile.google.com --~--~-~--~~~---~--~~

[Proto-Scripty] Re: understanding how events are registered

2008-09-21 Thread Justin Perkins
Let's see that HTML. --~--~-~--~~~---~--~~ 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-scriptaculous@googlegroups.com To unsubscribe from this group,

[Proto-Scripty] Re: Javascript disabled & security

2008-09-21 Thread Justin Perkins
On Sun, Sep 21, 2008 at 4:21 PM, jason maina <[EMAIL PROTECTED]> wrote: > what are the security concerns at this point? What do you mean? How does disabling JavaScript impact the secureness of a webpage? -justin --~--~-~--~~~---~--~~ You received this message bec

[Proto-Scripty] Re: Casting objects into Number

2008-09-21 Thread Gareth Evans
That particular bug bit me the other day, and then i finally understood why I hardly ever see parseInt being used in the wild, rather parseFloat is used. On Wed, Sep 17, 2008 at 3:18 AM, Eric <[EMAIL PROTECTED]> wrote: > > On Aug 29, 5:48 pm , kangax wrote: > > What about creating something like

[Proto-Scripty] Re: IE6 fires unexpectedly 'onclick' when pressing ENTER

2008-09-21 Thread Gareth Evans
>From memory, When a field in IE has enter pressed, the default button that is fired on enter press is the first defined button in the markup. You can block this event by clocking keypress where e.keyCode == 13 There's some other rules too, but i cant remember where I read this On Sat, Sep 13, 200

[Proto-Scripty] Re: Large Open Source Applications Using Prototype

2008-09-21 Thread Ken Snyder
On Sat, Sep 20, 2008 at 6:52 PM, Asciant <[EMAIL PROTECTED]> wrote: > > Hi, > > I was just wondering if anyone could think of any large open source > apps currently using prototype / scriptaculous? > > I been having a look around but can't seem to find any, although I am > sure that there are many

[Proto-Scripty] Re: Javascript disabled & security

2008-09-21 Thread jason maina
In relation to cross browser hacking. On 9/22/08, Justin Perkins <[EMAIL PROTECTED]> wrote: > > On Sun, Sep 21, 2008 at 4:21 PM, jason maina <[EMAIL PROTECTED]> wrote: >> what are the security concerns at this point? > > What do you mean? How does disabling JavaScript impact the secureness > of

[Proto-Scripty] Re: Large Open Source Applications Using Prototype

2008-09-21 Thread Asciant
That exactly what I was looking for thank you! On Sep 22, 10:16 am, "Ken Snyder" <[EMAIL PROTECTED]> wrote: > On Sat, Sep 20, 2008 at 6:52 PM, Asciant <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I was just wondering if anyone could think of any large open source > > apps currently using prototype

[Proto-Scripty] Re: Javascript disabled & security

2008-09-21 Thread Justin Perkins
On Sun, Sep 21, 2008 at 7:37 PM, jason maina <[EMAIL PROTECTED]> wrote: > > In relation to cross browser hacking. I think you'll be safe from cross-site scripting if JavaScript is disabled. --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Proto-Scripty] Re: Casting objects into Number

2008-09-21 Thread RobG
On Aug 29, 11:50 pm, Eric <[EMAIL PROTECTED]> wrote: > Hi, > > The new Number methods added by prototype are very nice, however since > I work with attributes of xml nodes, most of my values are in fact > strings containing numbers... :o( > > Therefor, something like: > var q=node.getAttribute("

[Proto-Scripty] Re: Casting objects into Number

2008-09-21 Thread RobG
On Sep 22, 12:49 pm, RobG <[EMAIL PROTECTED]> wrote: > On Aug 29, 11:50 pm, Eric <[EMAIL PROTECTED]> wrote: > > > Hi, > > > The new Number methods added by prototype are very nice, however since > > I work with attributes of xml nodes, most of my values are in fact > > strings containing numbers

[Proto-Scripty] How do I display the Chinese character using prototype

2008-09-21 Thread Allen
Hi: I try to display some chinese character from the request method. But it can not success display "BIG5" chinese character set from the request. Dose anyone face this problem before? If so, can you share how do you resolve this issue? Thanks Allen --~--~-~--~~~