[Proto-Scripty] Re: How to stop MS Internet Explorer from rendering hidden divs when page loads

2009-02-04 Thread Richard Quadling
2009/2/3 T.J. Crowder : > > Hi, > > If you apply the class names correctly, it won't flash on load. > > Obviously, you can do it with inline style as Richard suggested. I > tend to avoid inline style, instead prefering to mark content with > classes relevant to its structural purpose and then app

[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 : > > 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 su

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

2009-02-04 Thread Richard Quadling
2009/2/4 Richard Quadling : > 2009/2/4 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). >> >> Giv

[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 : > >> 2009/2/4 david : >> >>> Hi sqaured, >>> >>> It seems, that you only transmit the value of the previous form to the >>> DB, and

[Proto-Scripty] Re: slideright

2009-02-04 Thread david
Hi kidbrax, try this code: this is my text - this is my text - this is my text - this is my text - this is my text reset slide right slide left slide bottom slide top function doFire(elem){ elem=$(elem); var newEvt = ''; elem.fireEvent("click", newEvt); ale

[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 wrote: > I am setting up a form to query our Google Mini.  Google's default > parameter for the

[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 wrote: > Dear everyone > >    I am trying to find tree structure which has forlders li

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

2009-02-04 Thread Eric
Hi, and thanks for your help :o) This morning, I tried again, and for some (unknown) reason, it did work... :o/ Restarting FF seems to have smoothed things up (I am really puzzled since FF used to not have this IE syndrome...). For the ones which may be interested in this issue, it was FF3.0.5 o

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

2009-02-04 Thread Squared
Hi David, Thank you for the response. Here is some of the code I am using, and a little more as to what I am trying to accomplish... I am trying to set up three drop down lists, whose contests are dynamically generated based on the selection of the previous drop down. I have successfully done this

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

2009-02-04 Thread ColinFine
On Feb 3, 2:18 pm, "T.J. Crowder" 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_ bad idea for Ha

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

2009-02-04 Thread Walter Lee Davis
You could simply include it in your request. Try sending the entire form, not just one field, and then filter to discover the first empty or default select control to re-populate. function sendRequest() { new Ajax.Request("descriptions.php",{ parameters: $('your_form')

[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 li

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

2009-02-04 Thread david
Hi squared, I think you're problem is not so complex, but switching to AJAX is not transparent, and I personnally think that in much case it implies a complete rewrite of the application ==> In you're case, you should rewrite the logic of this 3 linked list fields because you can not use the logi

[Proto-Scripty] Re: inside tags?

2009-02-04 Thread eulerss
i think that your problem is in this line as far as i know you cannot use a div inside a select, check this link for help http://mmonreal.wordpress.com/2007/11/ On 4 feb, 00:16, "T.J. Crowder" wrote: > Hi Richie, > > > Now, > >   > >       > >   > > > , doesn't work... > > Th

[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 = $('your_form

[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 wrote: > The thing is, it doesn't evaluate each parameter to see which me

[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 ev

[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 probl

[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 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 !) in standard. > And t

[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 an

[Proto-Scripty] Re: Aborting an ajax call

2009-02-04 Thread Richard Quadling
2009/2/4 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 t

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

2009-02-04 Thread Brad
Actually the code $H(originalHash.reject(...)) doesn't return the correct value. Example: var originalHash = $H({'a':1,'b':2,'c':3,'d':4}); var newArray = originalHash.filter(function(i) { return i.value % 2; }) => $H(newArray) doesn't have the keys 'a' and 'c'. You have to call: newArray.inject(

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

2009-02-04 Thread Walter Lee Davis
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: > > IE seems to barf when setting the "for" attribute of a label with the > element constructor: > > $(element).insert(new Element("label", { id:'

[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: It seems IE thinks it's starting a for-loop or something. Is there a work-aroun

[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 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: > > > > > IE seem

[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 Goo

[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 wra

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

2009-02-04 Thread Squared
Walter, Thank you for the help! It was great to be able to see the code in action. I think I am starting to figure out and understand the process. The server one did not work though, and I am having trouble implementing this with what I am trying to achieve (with the lists being generated dynamica

[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 wrote:

[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 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 has ever use protopype

[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 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' > > thoug

[Proto-Scripty] Re: inside tags?

2009-02-04 Thread RobG
On Feb 4, 10:41 am, Richie M 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 box, I use onch

[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 wi

[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 wrote: > Actually the code $H(originalHash.reject(...)) doesn't return t