[Proto-Scripty] collapsible menu

2011-07-03 Thread Walter
Hi, I'd like to make a collapsible menu like this at the bottom of the page http://referer.us/3/8Pcya2 There shouldn't appear a scrollbar when expanding the menu but the content like the centered picture should be resized. I found the effect "Effect.SlideUp" but that changes the lower part of the

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Walter Lee Davis
LOL. Walter On Jul 3, 2011, at 6:06 PM, Phil Petree wrote: OK Figured it out... Problem 1) There is a nut loose behind the keyboard Problem 2) Pete's an idiot. On Sun, Jul 3, 2011 at 5:55 PM, Phil Petree wrote: I added a button called "Serialize" that calls a function called form_serial

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Phil Petree
Yeah, i found that code and will "prototype" it in the process... there are also a number of inline functions that will have to get moved to a .js file. first part is to make sure I get all the data to the server and then I'll clean up the client side. Walter you were a huge help and I really ap

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Walter Lee Davis
Do you agree that my test page shows the serialized multiple select input data? I think you need to strip your test page back and back until you find the moment where it works. Something, somewhere, probably outside of the script you've shown here, is causing this to go sideways. You have

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Phil Petree
OK Figured it out... Problem 1) There is a nut loose behind the keyboard Problem 2) Pete's an idiot. On Sun, Jul 3, 2011 at 5:55 PM, Phil Petree wrote: > I added a button called "Serialize" that calls a function called > form_serialize() which looks like this: > > function form_serialize() > {

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Phil Petree
I added a button called "Serialize" that calls a function called form_serialize() which looks like this: function form_serialize() { var formData = $('myform').serialize(); alert(formData); } At no time, with an option moved from availableOptions to selectedOptions or just using the one defaul

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Walter Lee Davis
Have a look at this test script: http://scripty.walterdavisstudio.com/testform.html I am using Form.serialize rather than Form.Element.serialize, but there shouldn't be any differences between those at a functional level. Note that the result is made URL-safe by Prototype, so the raw text

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Phil Petree
Thanks for the extra eyes Walter! For me the first process is to get it to work, then optimize it. In this case I had changed sectedOptions[] back to selectedOptions and added an just to test and make sure it wasn't something I was doing in the javascript... and the .php file just logs the varia

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Walter Lee Davis
Looking at your code, you're not using a Prototype-flavored accessor for your object, so it's probably not going to work the way I was explaining. If you get a reference to your form field with $ ('selectedOptions') rather than using the long-hand (harder to type) document.getElementById('se

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Phil Petree
I suspect you're right... its probably something really stupid... Here's the specific html for the two listboxes (see below for the rest): Step 4: Pick the distribution zone(s) Available Zones Destination Zones test

Re: [Proto-Scripty] managing zindex

2011-07-03 Thread Walter Lee Davis
Well, you could try this (probably very expensive) operation and see if it works for you: var max_z = 0; $$('div').each(function(elm){ var z = elm.getStyle('z-index'); max_z = (z <= max_z) ? max_z : z; }); If you can scope your $$ to a smaller universe, or use $ ('foo').select

[Proto-Scripty] managing zindex

2011-07-03 Thread kstubs
Any tips on managing zindex for a given page where many absolute positioned objects occur? Further, one object may expand and require a greater zindex of the object nearby, and of course the same is true of every object on the page. This is not as easy as managing a bunch of known objects, th

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Walter Lee Davis
On Jul 3, 2011, at 11:00 AM, Walter Lee Davis wrote: On Jul 3, 2011, at 6:39 AM, bill wrote: On 7/2/2011 6:29 PM, Walter Lee Davis wrote: On Jul 2, 2011, at 6:09 PM, Phil Petree wrote: When making the following ajax call: new Ajax.Updater( 'result', url, {method: 'post', parameters: $

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Walter Lee Davis
On Jul 3, 2011, at 6:39 AM, bill wrote: On 7/2/2011 6:29 PM, Walter Lee Davis wrote: On Jul 2, 2011, at 6:09 PM, Phil Petree wrote: When making the following ajax call: new Ajax.Updater( 'result', url, {method: 'post', parameters: $ ('myform').serialize(), onSuccess: fill_in, onFailure: a

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread bill
On 7/2/2011 6:29 PM, Walter Lee Davis wrote: On Jul 2, 2011, at 6:09 PM, Phil Petree wrote: When making the following ajax call: new Ajax.Updater( 'result', url, {method: 'post', parameters: $('myform').serialize(), onSuccess: fill_in, onFailure: ajax_err, on0: ajax_err}); I was wondering wh