[Proto-Scripty] Re: "Proper" error handling

2010-06-23 Thread T.J. Crowder
Hi, On Jun 24, 3:15 am, Jason 'XenoPhage' Frisvold wrote: > > In any given application, I tend to have a  wrapper around Prototype's > > ajax stuff with some problem-domain logic in it. That wrapper always > > checks for the `success` flag on calls and routes to the error handler > > if it's not

[Proto-Scripty] Re: extjs + prototype + myCalendar

2010-06-23 Thread doug
On Jun 23, 5:39 pm, doug wrote: > I am using extjs with prototype. I am using the calendar for extjs > located here: > > http://www.feyasoft.com/myCalendar?tab=download > > The calendar works just fine without the prototype adapter. When I use > it with prototype I get this error in Firefox: > >

Re: [Proto-Scripty] Re: "Proper" error handling

2010-06-23 Thread Jason 'XenoPhage' Frisvold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 22, 2010, at 2:45 AM, T.J. Crowder wrote: > The answer is in the question. :-) If it's a non-HTTP error, it > wouldn't be best practice to use an HTTP error code to represent the > error. (Not that HTTP status codes don't have a fair bit of scop

[Proto-Scripty] Issues with IE8, mousedown, mouseup -

2010-06-23 Thread max radin
Hi- I have a search widget class written in prototype that's been running fine for a couple of years now in FF and IE6+7. The user enters search parms, clicks a button and an ajax interaction (using jboss seam) retrieves data from a host server class (Java). The results are populated into a div an

[Proto-Scripty] extjs + prototype + myCalendar

2010-06-23 Thread doug
I am using extjs with prototype. I am using the calendar for extjs located here: http://www.feyasoft.com/myCalendar?tab=download The calendar works just fine without the prototype adapter. When I use it with prototype I get this error in Firefox: [Exception... "Component returned failure code: 0

[Proto-Scripty] Re: "Proper" error handling

2010-06-23 Thread Eric
I also have a similar method, but I use an Ajax responders to check the "error flag" and divert the processing to an alternative function when it is set. Since there is no Ajax.Responder for onSuccess, I use onCreate to wrap the error management code around the provided onSuccess option. I once co

Re: [Proto-Scripty] Re: Ajax.InPlaceEditor forces a textarea on items with linebreaks even if parameter "rows" is set to 1

2010-06-23 Thread Walter Lee Davis
I think it has to do this, otherwise the value would be truncated at the first linebreak by the browser. You would lose data, in other words, the moment you invoked the editor. Maybe not in all browsers, but certainly in more than a few. Walter On Jun 23, 2010, at 10:24 AM, Yaz wrote: Ca

[Proto-Scripty] Re: Ajax.InPlaceEditor forces a textarea on items with linebreaks even if parameter "rows" is set to 1

2010-06-23 Thread Yaz
Can anyone confirm this? On May 25, 4:26 pm, Yaz wrote: > Here's a test case. > > http://yazmedia.com/sandbox/inplaceeditor.php > > Happens in Firefox only, IE8 renders the single line element fine. > > Shouldn't the InPlaceEditor "rows" parameter override the auto- > textarea feature? > > Using

Re: [Proto-Scripty] onChange event fire programatically

2010-06-23 Thread Walter Lee Davis
The change event is triggered by the field receiving focus, changing value from whatever the defaultValue was, and then losing focus. Maybe you could step through those events within the function that's currently only changing the picker. Or use a synthetic event, and have onchange on the p

[Proto-Scripty] onChange event fire programatically

2010-06-23 Thread Hari
Hi, I have simple select box Volvo Audi and my Javascript $('myCars').observe('change', doSomething); function doSomething(){ alert('doSomething'); } In My code I want to programatically select "audi"... for which i do $('myCars').value="audi"; // also tried other options like ma