Re: [Proto-Scripty] Re: Prototype's evolution

2011-07-13 Thread Phil Petree
We've certainly had this discussion before and before weighing in I have to go on record as saying that I like Prototype! It has made quite a few things quite simple for me and I'm grateful for the work the authors have put into the product and even more grateful for the kind people who pitch in

Re: [Proto-Scripty] What's your favorite error status code?

2011-07-07 Thread Phil Petree
I tend to favor 1701 which is the bios generated error code for hard disk drive / controller failure which was stolen from startrek NCC-1701 (saucer, seperation, spin ups etc.) and when you got a 1701 error you were going no where! On Thu, Jul 7, 2011 at 7:42 AM, Walter Lee Davis

Re: [Proto-Scripty] Re: managing zindex

2011-07-04 Thread Phil Petree
In a non-web project I managed it with a circular buffer... top element was at the head of the buffer, bottom element was at the end. Moving an element from the middle to the top (or any other position) required deleting its position from the buffer, shifting all the other elements down and

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Phil Petree
; i++) { data += ','; data += optionList.item(i).value; } alert(data); } On Sat, Jul 2, 2011 at 6:29 PM, Walter Lee Davis wa...@wdstudio.com wrote: On Jul 2, 2011, at 6:09 PM, Phil Petree wrote: When making the following ajax call: new Ajax.Updater( 'result

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Phil Petree
with selectedOptions = Array('foo','bar','baz','boo')**. Walter On Jul 3, 2011, at 4:13 PM, Phil Petree wrote: I suspect you're right... its probably something really stupid... Here's the specific html for the two listboxes (see below for the rest): fieldset legendStep 4: Pick

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Phil Petree
the raw text has all of the illegal characters (the square brackets, particularly) converted to their UTF-8 escape sequences. Walter On Jul 3, 2011, at 5:04 PM, Phil Petree wrote: Thanks for the extra eyes Walter! For me the first process is to get it to work, then optimize

Re: [Proto-Scripty] ajax serialze listboxes

2011-07-03 Thread Phil Petree
there, particularly if this works in one browser and not another. Walter On 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() { var formData = $('myform').serialize(); alert

[Proto-Scripty] ajax serialze listboxes

2011-07-02 Thread Phil Petree
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 why my listbox contents were not showing up on the server... stepping through the Ajax.Updater call

Re: [Proto-Scripty] Sortable with 1,000 elements?

2011-06-30 Thread Phil Petree
Walter, I had the timeout problem on a script with a different purpose. What I did was hijacked the code here: http://www.mcfedries.com/JavaScript/timer.asp I created an array: var funcTimers[] and then modified the above code to insert into the array and each func started the timer on entry

Re: [Proto-Scripty] Sortable with 1,000 elements?

2011-06-30 Thread Phil Petree
being so heavy. It eschews the fancy animation effects for simple fast drag sorting. But my page (and client) are pretty wedded to that eye candy, so I guess Im stuck with that. Thanks, Walter On Jun 30, 2011, at 10:23 AM, Phil Petree wrote: Walter, I had the timeout problem

Re: [Proto-Scripty] Re: getElementByTagName - object doesn't support property...

2011-06-27 Thread Phil Petree
Thanks Matt. I sure didn't see that one! I took the weekend off (meaning I only worked about 6 hours each day! LOL) On Jun 24, 2011 11:10 AM, Matt Petrovic cyberbr...@gmail.com wrote: $F gets the value of a form element, not the element itself. You're feeding a string into that function, and

[Proto-Scripty] element is null - say what

2011-06-13 Thread Phil Petree
In Firefox 3.6.16 I have an Event.observe('ajzip', 'keyup', cities); and the first line of which tests to see if I have 5 digits entered in the zip code field and if so it makes an ajax call... works great in IE. When I press and release a key, my function cities gets called, it tests the length

Re: [Proto-Scripty] element is null - say what

2011-06-13 Thread Phil Petree
an object or an ID, but it won't work with just a name, except in IE, which has a serious bug in that corner. Walter On Jun 13, 2011, at 11:03 AM, Phil Petree wrote: In Firefox 3.6.16 I have an Event.observe('ajzip', 'keyup', cities); and the first line of which tests to see if I have 5

Re: [Proto-Scripty] element is null - say what

2011-06-13 Thread Phil Petree
, Jun 13, 2011 at 10:35 AM, Phil Petree phil.pet...@gmail.comwrote: Walter you made me doubt myself... LOL I've been integrating this new code with the old form and the id's are different in the old form but I had made those changes. Event.observe('ajzip', 'keyup', cities); label class='column

Re: [Proto-Scripty] element is null - say what

2011-06-13 Thread Phil Petree
to listen to. http://jsbin.com/odusi5/3 Walter On Jun 13, 2011, at 11:35 AM, Phil Petree wrote: Walter you made me doubt myself... LOL I've been integrating this new code with the old form and the id's are different in the old form but I had made those changes. Event.observe('ajzip

Re: [Proto-Scripty] new style pop up window

2011-06-12 Thread Phil Petree
It's a div... all you do is show/hide the div. You can put controls inside the div to perform various functions like next/previous which uses an ajax call to get the next or previous image. On Sun, Jun 12, 2011 at 8:45 AM, pedz pedz...@gmail.com wrote: The new window effect that Facebook has

Re: [Proto-Scripty] new style pop up window

2011-06-12 Thread Phil Petree
Lots of ways of doing this... make it as simple or as complex as you like! http://stackoverflow.com/questions/108461/how-do-i-pop-up-an-image-in-a-separate-div-on-the-mouseover-of-a-div-using-only-c http://javascript.internet.com/miscellaneous/popup-div.html

Re: [Proto-Scripty] Re: Ajax.Request not working with HTTPS and self signed certificates

2011-06-12 Thread Phil Petree
Hate to butt in here but did try setting an alert(ajax.transport.responseText) right after your ajax call? On Sun, Jun 12, 2011 at 6:28 PM, T.J. Crowder t...@crowdersoftware.comwrote: Hi, As I said in my post, the Ajax.Request call are in a HTML Application (HTA). Which is not a server

Re: [Proto-Scripty] how-to add option to select

2011-06-08 Thread Phil Petree
there after push all of the array items into the select again as a dynamic select object Regards, Bongani T Mabunda... Thanks -- *From: * Phil Petree phil.pet...@gmail.com *Sender: * prototype-scriptaculous@googlegroups.com *Date: *Tue, 7 Jun 2011 16:09:03 -0400

Re: [Proto-Scripty] how-to add option to select

2011-06-08 Thread Phil Petree
examples. Gives you a persistent URL and you can edit it and demo it right in the browser. Walter On Jun 8, 2011, at 3:19 PM, Phil Petree wrote: Where are ya'll posting the demo code? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

Re: [Proto-Scripty] how-to add option to select

2011-06-08 Thread Phil Petree
On Jun 8, 2011, at 3:49 PM, Phil Petree wrote: I looked at jsbin earlier and have actually tested some snippets there... however you can't (to my knowledge) upload your php code there. I wanted to stick all the source modules up. On Wed, Jun 8, 2011 at 3:28 PM, Walter Davis wa

[Proto-Scripty] how-to add option to select

2011-06-07 Thread Phil Petree
I've tried every option that I can find or figure out to add an option to a select using prototype or dom. What I have figured out is that when prototype 1.6.x is present normal dom functions dont SEEM work! ??? So how do you add an option to a select in prototype? ??? I have: var value = New

Re: [Proto-Scripty] Re: ajax.updater - json to fill select

2011-06-07 Thread Phil Petree
: [ { name: 'model 3' }, { name: 'model 4' } ] }, ] } Something like this? Greets, Johan On Fri, Jun 3, 2011 at 9:31 PM, Phil Petree phil.pet...@gmail.com wrote: Hey All! I'm biting the bullet and trying to break away from XML and go

Re: [Proto-Scripty] how-to add option to select

2011-06-07 Thread Phil Petree
-hand methods, they are at least known to work in most browsers: menu = $('mySelectList'); menu.options[menu.options.length] = new Option('Label','value'); Walter On Jun 7, 2011, at 4:09 PM, Phil Petree wrote: I've tried every option that I can find or figure out to add an option

Re: [Proto-Scripty] how-to add option to select

2011-06-07 Thread Phil Petree
Matt Walter, You are both right... Ajax.Updater is, apparently, trying to update the select AFTER it calls onSuccess and since it is incapable of updating a select it was thereby overwritting my adds... no problem, once I figured that out, I just added in a div id='results' and let the updater

[Proto-Scripty] ajax.updater - json to fill select

2011-06-03 Thread Phil Petree
Hey All! I'm biting the bullet and trying to break away from XML and go to json. I using Ajax.Updater to call cities.php which looks up the available cities for a given zip code (yes there can be more than one city - my zip has 4 possibilities!) and return those in a select How do these need to

Re: [Proto-Scripty] Re: template causing throw/catch

2011-04-18 Thread Phil Petree
` (not `name`) ajowner. `id` values MUST be unique on the page[1] [1] http://www.w3.org/TR/html5/elements.html#the-id-attribute HTH, -- T.J. :-) On Apr 18, 3:43 pm, Phil Petree phil.pet...@gmail.com wrote: TJ You're right... it's showing the element as undefined but I'm not sure why.. HTML

[Proto-Scripty] template causing throw/catch

2011-04-17 Thread Phil Petree
Using Prototype version 1.6.1 (I know everyone is up to 1.7 but we can't upgrade at this time) Code looks like this: var selectThis; var radioTemplate = new Template('input[type=radio][name=#{selectID}][value=#{selectValue}]'); var bValue = 1; // this is actually set from the rc of a function

Re: [Proto-Scripty] template causing throw/catch

2011-04-17 Thread Phil Petree
:52 PM, Phil Petree wrote: Using Prototype version 1.6.1 (I know everyone is up to 1.7 but we can't upgrade at this time) Code looks like this: var selectThis; var radioTemplate = new Template('input[type=radio][name=#{selectID}] [value=#{selectValue}]'); var bValue = 1; // this is actually

Re: [Proto-Scripty] template causing throw/catch

2011-04-17 Thread Phil Petree
to pause a beat before $('bar') will access the element from your page after you've inserted it. Walter On Apr 17, 2011, at 2:52 PM, Phil Petree wrote: Using Prototype version 1.6.1 (I know everyone is up to 1.7 but we can't upgrade at this time) Code looks like this: var selectThis; var

Re: [Proto-Scripty] Accordian Menu using prototype.js

2011-04-03 Thread Phil Petree
is a DT and each sub-navigation link is contained within a DD. It's the natural structure to match the content, after all. Then apply your accordion effect so that the DTs are the trigger, and the DDs are exposed or hidden accordingly. Walter On Apr 1, 2011, at 10:35 PM, Phil Petree wrote

[Proto-Scripty] Accordian Menu using prototype.js

2011-04-01 Thread Phil Petree
Can ANYONE tell me where to find a functionong Accordian _MENU_??? I have Accordian V2.0 but I dont see any way to implement that as a functioning menu, just an accordian effect on a page. I also found the code by Brian Crescimanno but the same thing, its a great accordian effect but definately

[Proto-Scripty] image carousel / auto-rotation

2011-03-22 Thread Phil Petree
Hey Gang! I've been look for a free, cheap and easy image carousel using prototype.js - before you fling me a link or two, I've looked at whats out there and they either dont do what I want OR they are overkill. Here's the scoop: Client's home page has a 920x200 image of his cities skyline that

Re: [Proto-Scripty] Re: IE stack overflow

2011-03-16 Thread Phil Petree
Every time that I have had a stack overflow its been because of a continuous, recursive call (same function gets continually called inside a loop until there is no more room on the stack to make another call (stack gets depleted hence the stack overflow)). On Wed, Mar 16, 2011 at 9:13 AM, Walter

Re: [Proto-Scripty] Next dumb question

2011-02-18 Thread Phil Petree
That's a great question and I have often wondered that myself. When I view source, I expect to see the source for whats on my screen, not the original html file. Thinking through the process, reveals a practical answer: In a normal process, the original code is downloaded from the server,

Re: [Proto-Scripty] How to find no of months between two dates in the format of (MMM YYYY)

2011-02-02 Thread Phil Petree
Start here: http://www.w3schools.com/jsref/jsref_obj_date.asp Convert the 1st month to a digit such as Feb = 2 Convert the 2nd month to a digit such as Mar = 3 Create a date variable for the 1st month as: var d1 = new Date(year, MM1, day, hours, minutes, seconds, milliseconds); Create a date

Re: [Proto-Scripty] Javascript Problem

2011-01-09 Thread Phil Petree
Your domain is unreachable... On Sat, Jan 8, 2011 at 5:54 PM, sm69 shimon@gmail.com wrote: Hi, I am interested to join this group. As i am new Javascript.I faced a problem with my website.There should be a rollover effect on the menus.But it doesn't work properly.Would you guys tell me

Re: [Proto-Scripty] Ajax - multiple messages on the same connection?

2011-01-04 Thread Phil Petree
There was some discussion of this for html 6 then for awile it looked like they were gonna drop it and then it came back. Latest doc is here: http://dev.w3.org/html5/eventsource/ But dont expect support anytime soon... On Mon, Jan 3, 2011 at 10:22 AM, sol solmy...@gmail.com wrote: Hi, We

[Proto-Scripty] Prototype ajax based grid control

2011-01-03 Thread Phil Petree
Hi All! I need to implement an ajax based edit in place grid control for a management console (admin side of a site). Essentially, each row will have fields formatted as: STRING, STRING, BOOL, BOOL, BOOL, DATE, STRING and admins could change any or all of these fields. Any suggestions on an

Re: [Proto-Scripty] Re: Internet Explorer menu issue

2010-12-19 Thread Phil Petree
Why dont you pop the source up so we can see it... On Sun, Dec 19, 2010 at 11:13 AM, livewire9174 markmch...@gmail.com wrote: Hi everybody, I think my code is cleaned up now, however , I still have the same problem, does anybody have any suggestions? Thanks On Dec 18, 10:00 pm, Walter

Re: [Proto-Scripty] Internet Explorer menu issue

2010-12-18 Thread Phil Petree
Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; .NET4.0C) Timestamp: Sat, 18 Dec 2010 16:42:17 UTC Message: Object required Line: 80 Char: 3

Re: Risky delay (was: Re: [Proto-Scripty] Re: Prototype / IE6 issue (bug?))

2010-11-18 Thread Phil Petree
-browser.html -- T.J. :-) On Nov 17, 2:07 pm, Phil Petree phil.pet...@gmail.com wrote: There comes a time in every products life cycle when you must choose which core products (e.g. browsers etc.) and platforms you will support. In the case of ie6, with less than 5% of all page views

Re: Risky delay (was: Re: [Proto-Scripty] Re: Prototype / IE6 issue (bug?))

2010-11-17 Thread Phil Petree
must support our users needs. Unfortunately our biggest customers are public sector workers with the major browser in their environment being IE6. Online figures tell half a story On Nov 17, 2:07 pm, Phil Petree phil.pet...@gmail.com wrote: There comes a time in every products life cycle when

Re: Risky delay (was: Re: [Proto-Scripty] Re: Prototype / IE6 issue (bug?))

2010-11-17 Thread Phil Petree
Amen! Well said Richard! On one site we did, we detected ie6 and did a redirect to ie6.domain.com On Wed, Nov 17, 2010 at 10:02 AM, Richard Quadling rquadl...@gmail.comwrote: On 17 November 2010 14:43, Phil Petree phil.pet...@gmail.com wrote: I know there are exceptions to every rule

Re: [Proto-Scripty] Re: Guidance Needed: Math manipulatives project

2010-11-17 Thread Phil Petree
16, 3:44 pm, Phil Petree phil.pet...@gmail.com wrote: Not sure why the color shifts... but: Create a color shift table (array of color shift values): Create a property array for each element (triangle, square, circle): this would contain, among other things (length of each side, original

Re: [Proto-Scripty] Guidance Needed: Math manipulatives project

2010-11-16 Thread Phil Petree
Not sure why the color shifts... but: Create a color shift table (array of color shift values): Create a property array for each element (triangle, square, circle): this would contain, among other things (length of each side, original color, current color, etc. etc. etc.) If mouse click AND ctrl

[Proto-Scripty] Toggle checkboxes???

2010-10-17 Thread Phil Petree
OK, I have a form where the first row of the first colum is a checkbox designed to toggle the checked/unchecked state of all the other checkboxes in the form (select all/select none). Problem is, the state of the checkbox with the onclick state is not getting changed. The rest of the check boxes

Re: [Proto-Scripty] Toggle checkboxes???

2010-10-17 Thread Phil Petree
in the order (or that there should be any difference). On Sun, Oct 17, 2010 at 1:22 PM, Jarkko Laine jarks...@gmail.com wrote: Hi Phil, On 17.10.2010, at 18.15, Phil Petree wrote: OK, I have a form where the first row of the first colum is a checkbox designed to toggle the checked/unchecked state

Re: [Proto-Scripty] Re: Stack overflow... ???

2010-10-14 Thread Phil Petree
On Oct 14, 1:54 am, Phil Petree phil.pet...@gmail.com wrote: Hey All! In my html doc I have a series of images... one for aol, yahoo, gmail, facebook etc. and each image in written like this: img src='images/aol.png' border='0' onclick='setSelect(thSelect, aol);'/ In my javascript file I

[Proto-Scripty] Stack overflow... ???

2010-10-13 Thread Phil Petree
Hey All! In my html doc I have a series of images... one for aol, yahoo, gmail, facebook etc. and each image in written like this: img src='images/aol.png' border='0' onclick='setSelect(thSelect, aol);'/ In my javascript file I have setSelect defined like this: function setSelect(strID,

Re: [Proto-Scripty] Re: Microsoft announced new useful plugins on JQuery - what about prototype?

2010-10-06 Thread Phil Petree
Jquery is succeeding because they are building a consolidated (all-in-one-place) community with forums for dicussions of varied topics, a single place to download plugins etc. Prototype may be the better framework but he with the larger community will ultimately prevail and this is a lesson that

[Proto-Scripty] Variables in $$() ?????

2010-09-25 Thread Phil Petree
I've hit this in two seperate places and not exactly sure why... (I think its the 18 hour days, 7 days a week... g) If value is hard set with '3' the following works: $$(input[type=radio][name='type'][value='3'])[0].writeAttribute(checked, checked); However, if we use a variable (selectThis) and

Re: [Proto-Scripty] Variables in $$() ?????

2010-09-25 Thread Phil Petree
-Original Message- *From:* prototype-scriptaculous@googlegroups.com [mailto: prototype-scriptacul...@googlegroups.com] *On Behalf Of *Phil Petree *Sent:* Saturday, September 25, 2010 7:46 AM *To:* prototype-scriptaculous@googlegroups.com *Subject:* [Proto-Scripty] Variables

Re: [Proto-Scripty] Variables in $$() ?????

2010-09-25 Thread Phil Petree
Founder Executive Director Tabby's Place http://www.tabbysplace.org -Original Message- *From:* prototype-scriptaculous@googlegroups.com [mailto: prototype-scriptacul...@googlegroups.com] *On Behalf Of *Phil Petree *Sent:* Saturday, September 25, 2010 7:46 AM *To:* prototype

Re: [Proto-Scripty] Variables in $$() ?????

2010-09-25 Thread Phil Petree
='type'][value=' + selectThis + ']) ? Am 25.09.2010 14:41, schrieb Phil Petree: Jonathan, Thanks for that but like most things in the prototype documentation, it lacks the type of clarity that I can understand. IOW, I can read the documentation, scratch my head and say huh? I leave

Re: [Proto-Scripty] Re: Variables in $$() ?????

2010-09-25 Thread Phil Petree
software / com www / crowder software / com On Sep 25, 2:21 pm, Phil Petree phil.pet...@gmail.com wrote: David, although your suggestion doesn't throw any errors, it doesnt work either... kinda wierd as I thought it would... and it would have been MUCH simpler to implement too! On Sat

Re: [Proto-Scripty] AJAX callbacks are not executed atomically?

2010-09-24 Thread Phil Petree
If you want a() to finish before b() and b() to finish before c() then you will have to daisy chain in the onComplete code. On Fri, Sep 24, 2010 at 3:21 PM, JoJo tokyot...@gmail.com wrote: I have several lines of code that I want to run atomically (no context switches to other code). Please

Re: [Proto-Scripty] Re: AJAX callbacks are not executed atomically?

2010-09-24 Thread Phil Petree
. On Fri, Sep 24, 2010 at 3:56 PM, JoJo tokyot...@gmail.com wrote: I don't need A to finish before B. I need A's callbacks to not be cut off by B's instantiation. On Sep 24, 12:44 pm, Phil Petree phil.pet...@gmail.com wrote: If you want a() to finish before b() and b() to finish before c

Re: [Proto-Scripty] Execute a function after another one

2010-09-22 Thread Phil Petree
Try daisy chaining them... let the onComplete of one function initiate the ajax call for the next query. // initiate the first ajax Query function ajaxFuncFirst(url) { url = url +.php; new Ajax.Updater( 'result', url, {method: 'post', parameters: $('myform').serialize(), onSuccess:

Re: [Proto-Scripty] Re: Nested Ajax.Updater

2010-09-16 Thread Phil Petree
I've been thinking about this... kinda nagging at me in the back of my mind... Why not use AJAX to make a SOAP call? The SOAP call would make the call to the fbapi completely transparent. One article here: http://www.ibm.com/developerworks/webservices/library/ws-wsajax/ On Thu, Sep 16, 2010 at

Re: [Proto-Scripty] Works in webkit browsers but fails in IE and Firefox

2010-09-11 Thread Phil Petree
Worked/displayed fine on my i.e... except that everytime I clicked the the box scooted to the right until it went off the ride side of the screen. LOL On Fri, Sep 10, 2010 at 3:43 PM, SpaceTripStudios c.lynn.willi...@gmail.com wrote: Hey there, I'm a noob to web development and even more so

[Proto-Scripty] prototype mysql ajax forms generator

2010-09-09 Thread Phil Petree
I just finished RC1 of a prototype.js based form generator which will read a table from a mysql database and generate all the necessary files (html, javascript, php) to allow you to read, update or insert records into a table. This isn't a be all end all tool but it gets the job done and leaves

[Proto-Scripty] Prototype XML bug???

2010-09-08 Thread Phil Petree
Essentially, you have to reference the XML data in node order, if you try to reference the first node AFTER you have referenced all the other nodes, the first node gets returned as empty. Take an XML data set defined as: data statusOK/status record22/record useridbart/userid

Re: [Proto-Scripty] Re: Prevent enter from submitting form

2010-08-31 Thread Phil Petree
the password field I don't want to prevent the registration submit from executing. Thanks. On Aug 23, 2:51 am, Phil Petree phil.pet...@gmail.com wrote: you would need to check an onClick= within the input type=submit On Sun, Aug 22, 2010 at 7:37 PM, jhaagmans jaap.haagm

Re: [Proto-Scripty] Re: Trouble getting Form.EventObserver to work

2010-08-26 Thread Phil Petree
Independent Software Consultant tj / crowder software / comwww.crowdersoftware.com On Aug 23, 12:36 am, Phil Petree phil.pet...@gmail.com wrote: Hey All! I'm trying to implement a Form.EventObserver that will change a message within the form. By default the message says

Re: [Proto-Scripty] Re: Trouble getting Form.EventObserver to work

2010-08-23 Thread Phil Petree
it how often to check the form for changes. It happens that your use case *is* the example used on Form.Observer: http://api.prototypejs.org/dom/form/observer/ HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 23, 12:36 am, Phil

Re: [Proto-Scripty] Prevent enter from submitting form

2010-08-22 Thread Phil Petree
how are you calling this from the form? On Sat, Aug 21, 2010 at 4:56 AM, jhaagmans jaap.haagm...@gmail.com wrote: Hi, I'm using a RedBox to display an AJAX registration/login form. The problem with RedBox is that you can't use two forms inside a RedBox. I'm not sure why that is, but it just

[Proto-Scripty] Trouble getting Form.EventObserver to work

2010-08-22 Thread Phil Petree
Hey All! I'm trying to implement a Form.EventObserver that will change a message within the form. By default the message says: These are your current settings. and when a key is pressed I want the message to get changed to say Click the Save button to save your new settings. I have the function

Re: [Proto-Scripty] Re: Prevent enter from submitting form

2010-08-22 Thread Phil Petree
you would need to check an onClick= within the input type=submit On Sun, Aug 22, 2010 at 7:37 PM, jhaagmans jaap.haagm...@gmail.com wrote: Using an onkeypress action on the password field. Thanks! On Aug 23, 1:17 am, Phil Petree phil.pet...@gmail.com wrote: how are you calling this from

Re: [Proto-Scripty] Re: prototype to populate select box via ajax

2010-08-17 Thread Phil Petree
' id='btnGo' value='Go' brselect id='selectbox'/select hr div id='log'/div /body /html * * * * HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 16, 10:00 pm, Phil Petree phil.pet...@gmail.com wrote: I've looked everywhere

Re: [Proto-Scripty] Re: prototype to populate select box via ajax

2010-08-17 Thread Phil Petree
Here is a completed function that will populate a select box with data in an XML format (XML format below): // fill the select dropdown list box // @ajax response (transport as returned above) // @id of the select field (defaults to elFieldName // @xml_data_node_name (our dataset uses 'state')

Re: [Proto-Scripty] Re: How do I get updater onSuccess response to function()

2010-08-10 Thread Phil Petree
T.J., Thanks for that... my confusion came in trying to declare the onSuccess or onFailure functions with the transport parameter... I had no idea that 'transport' would be passed regardless... once that was cleared up, it seems to be working fine! On Sun, Aug 8, 2010 at 4:23 AM, T.J. Crowder

[Proto-Scripty] Best way to determine error codes

2010-08-10 Thread Phil Petree
When using the updater / onFailure event, what is the best way to determine what the actual error is? What I came up with was this: function ajax_err(transport) { alert(An AJAX error occurred: +transport.statusText); } But it seems like its not detailed enough... -- You received this

<    1   2