[Proto-Scripty] Re: Rerouting Events

2009-02-04 Thread david
Hi, I think that every body has understand, but there is no way to do $ ('elem').click() on FF. This work on IE, and simulate a real click on the element, but it's not (I don't think !) in standard. And thanks, because I did not know it works in Safari. so you should have to use a tricks to use

[Proto-Scripty] Re: grabbing form values from multiple pages.

2009-02-04 Thread david
Hi sqaured, It seems, that you only transmit the value of the previous form to the DB, and for the third form to be generated, you need to pass first AND second one ! So this could be done in a couple of lines (I think). Give us your code, or a sample, we will surelly help. -- david On 2 fév,

[Proto-Scripty] Re: grabbing form values from multiple pages.

2009-02-04 Thread Richard Quadling
2009/2/4 david david.brill...@gmail.com: Hi sqaured, It seems, that you only transmit the value of the previous form to the DB, and for the third form to be generated, you need to pass first AND second one ! So this could be done in a couple of lines (I think). Give us your code, or a

[Proto-Scripty] Re: grabbing form values from multiple pages.

2009-02-04 Thread Richard Quadling
2009/2/4 Richard Quadling rquadl...@googlemail.com: 2009/2/4 david david.brill...@gmail.com: Hi sqaured, It seems, that you only transmit the value of the previous form to the DB, and for the third form to be generated, you need to pass first AND second one ! So this could be done in a

[Proto-Scripty] Re: grabbing form values from multiple pages.

2009-02-04 Thread Kevin Smith
Seeing as your using AJAX, why even bother with more than one page. You can do everything on one page. Richard Quadling wrote: 2009/2/4 Richard Quadling rquadl...@googlemail.com: 2009/2/4 david david.brill...@gmail.com: Hi sqaured, It seems, that you only transmit the value of the

[Proto-Scripty] Re: slideright

2009-02-04 Thread david
Hi kidbrax, try this code: body div id=1 style=width:100px;height:100px;background- color:red;overflow:hidden;border:2px solid blue; div id=2 style=width:100px;height:100px;position:relative;left: 0px;top:0px;background-color:red; this is my text - this is my text - this is my text -

[Proto-Scripty] Re: delayedobserver doesn't work with single character id

2009-02-04 Thread david
Hi kidbrax, do you have a live code i can use to test what you say? btw, I'm quite surprise that no one has ever use protopype functions to send query to Google ?? -- david On 3 fév, 20:36, kidbrax braxton.be...@gmail.com wrote: I am setting up a form to query our Google Mini.  Google's

[Proto-Scripty] Re: Who can tell me script.aculo.us's tree structure code like exploers?

2009-02-04 Thread david
Hi wangsuya, I've found that on Google. look at http://tafel.developpez.com/site/lang/en/samples.php it's a tree class based on prototype and scriptaculous. does it help?? -- david On 2 fév, 02:15, wangsuya wang.s...@gmail.com wrote: Dear everyone    I am trying to find tree structure

[Proto-Scripty] Re: Hash#filter returns an Array?

2009-02-04 Thread ColinFine
On Feb 3, 2:18 pm, T.J. Crowder t...@crowdersoftware.com wrote: Hi, Maybe filter should be an alias of findall for arrays, but shouldn't it really return a hash for hashes? FWIW (and it ain't much, I'm not a decision maker on Prototype stuff), in my opinion it would be an _extremely_

[Proto-Scripty] Event bubbling in prototype 1.6

2009-02-04 Thread Vladimir Ghetau
Hi , In 1.6 version of prototype is missing, reasons are provided in documentation. There's been long discussions on how this should be achieved, is there any common practice of handling event bubbling using prototype? Best Regards, Vladimir Ghetau

[Proto-Scripty] Re: Event bubbling in prototype 1.6

2009-02-04 Thread Peter De Berdt
On 04 Feb 2009, at 15:39, Vladimir Ghetau wrote: In 1.6 version of prototype is missing, reasons are provided in documentation. There's been long discussions on how this should be achieved, is there any common practice of handling event bubbling using prototype? We're using an extra

[Proto-Scripty] Re: div inside select/select tags?

2009-02-04 Thread eulerss
i think that your problem is in this line select id=box2 onchange=ajaxUpdater('ajax_day', '/ajax/ populate.php?show=daymonth=' + getsel('box2') div id='ajax_regions'/div /select as far as i know you cannot use a div inside a select, check this link for help

[Proto-Scripty] Re: grabbing form values from multiple pages.

2009-02-04 Thread Walter Lee Davis
Sorry, just tried this and realized that it won't work as written (getInputs only finds input tags, as you'd expect, not selects). Try this: var element=$$('#your_form select').find(function(elm){ Walter On Feb 4, 2009, at 9:23 AM, Walter Lee Davis wrote: var element =

[Proto-Scripty] Re: Using setStyle to change background-image

2009-02-04 Thread david
Hi Eric, why not using the global background parameter? try following exemple which work on FF and IE (at least): $('myDiv').setStyle({background:'transparent url(wait.png)'}); -- david On 3 fév, 20:48, Walter Lee Davis wa...@wdstudio.com wrote: The thing is, it doesn't evaluate each

[Proto-Scripty] Re: grabbing form values from multiple pages.

2009-02-04 Thread Squared
Walter, I could not get this to work, but, to be honest; I could have something else wrong, because I am not certain how this new approach is working exactly. (I am new to prototype AJAX). I don’t quite understand, or I am not following the logic.. Are we still using multiple pages? Is there

[Proto-Scripty] Aborting an ajax call

2009-02-04 Thread Red
I've built a chess game using Prototype's ajax wrappers. Sometimes, a server simply doesn't respond to a request that a user has made. You know how that works. You click on a link to a page and you don't get a response. You hit the stop button, click on the link again, and the pag shows up no

[Proto-Scripty] Re: Rerouting Events

2009-02-04 Thread solidhex
Thanks David, I'll see what I come up with ;) On Feb 4, 3:14 am, david david.brill...@gmail.com wrote: Hi, I think that every body has understand, but there is no way to do $ ('elem').click() on FF. This work on IE, and simulate a real click on the element, but it's not (I don't think !)

[Proto-Scripty] Re: grabbing form values from multiple pages.

2009-02-04 Thread Walter Lee Davis
Here's a local example that works in Firefox. http://pastie.org/379612 Save those three files somewhere and try it out. Here's an example that works with a server call (not tested): http://pastie.org/379637 I don't believe this will work in IE, you can't update the inner bits of a select

[Proto-Scripty] new Element(label), problem with 'for' attribute

2009-02-04 Thread Diodeus
IE seems to barf when setting the for attribute of a label with the element constructor: $(element).insert(new Element(label, { id:'something', for:'check1', className:'FBRadioLabelLeft' })) Should result in: label for=check1 id=something/label It seems IE thinks it's starting a for-loop or

[Proto-Scripty] Re: new Element(label), problem with 'for' attribute

2009-02-04 Thread Diodeus
Thanks, Walter, that worked. It does feel a little 'unnatural' though. :) On Feb 4, 4:21 pm, Walter Lee Davis wa...@wdstudio.com wrote: Did you try it with the names of the attributes quoted? {'id': 'foo', 'for':'bar', 'class':'baz'} Walter On Feb 4, 2009, at 4:13 PM, Diodeus wrote:

[Proto-Scripty] Re: new Element(label), problem with 'for' attribute

2009-02-04 Thread Walter Lee Davis
Hey, man, this is IE we're talking 'bout here... Of course it's unnatural! Walter On Feb 4, 2009, at 4:31 PM, Diodeus wrote: It does feel a little 'unnatural' though. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Proto-Scripty] validation for alphanumeric field/sequence

2009-02-04 Thread Michael
Hi - I want to use this validation for an alphanumeric field. return Validation.get('IsEmpty').test(v) || !/\W/.test(v) But I only want the field to be valid if the sequence is V3 or B40009 or J50008 (for example). It will be valid only for a few letter/ number sequences. I can't really

[Proto-Scripty] Re: grabbing form values from multiple pages.

2009-02-04 Thread Walter Lee Davis
I deliberately made the server side a sketch. I use a framework here that lets me write something that terse and get a result. If you would let me know what server environment you are working in, I can recommend some additional information. Walter On Feb 4, 2009, at 5:06 PM, Squared

[Proto-Scripty] Re: delayedobserver doesn't work with single character id

2009-02-04 Thread kidbrax
Unfortunately, I don't. It is on our intranet that is stuck behind a firewall. If I get a chance I will do a mockup externally. On Feb 4, 5:46 am, david david.brill...@gmail.com wrote: Hi kidbrax, do you have a live code i can use to test what you say? btw, I'm quite surprise that no one

[Proto-Scripty] Re: new Element(label), problem with 'for' attribute

2009-02-04 Thread Tobie Langel
You can also try: {id: 'foo', htmlFor:'bar', className:'baz'} On Feb 4, 10:46 pm, Walter Lee Davis wa...@wdstudio.com wrote: Hey, man, this is IE we're talking 'bout here... Of course it's   unnatural! Walter On Feb 4, 2009, at 4:31 PM, Diodeus wrote: It does feel a little 'unnatural'

[Proto-Scripty] Re: div inside select/select tags?

2009-02-04 Thread RobG
On Feb 4, 10:41 am, Richie M i...@linuxbox.co.uk wrote: Hi, I have a form with three drop down select boxes in it. I'd like the second box to populate when an option is selected in the first, and for the third to populate when an option is selected from the second. In the first select

[Proto-Scripty] Modifier Keys

2009-02-04 Thread tazz_ben
Forgive me if this is a dumb question and this is some simple property in script.aculo.us: I'm wondering if there is a way on a droppable to detect if the shift key is down when the object is dropped. I know that there is a property for shift key off of event, but I've only seen code examples

[Proto-Scripty] Re: Hash#filter returns an Array?

2009-02-04 Thread T.J. Crowder
Actually the code $H(originalHash.reject(...)) doesn't return the correct value. Ah, sorry 'bout that, should have tried it. Clearly I don't create hashes from arrays very often... ;-) -- T.J. On Feb 4, 8:49 pm, Brad bradavo...@gmail.com wrote: Actually the code