[Proto-Scripty] Re: JSON and $H() to get size of returned JSON data

2008-11-18 Thread Tobie Langel
if json.errors is an array, you don't need $A. $A is for iterables only (like dom node collections, for example). Best, Tobie On Nov 19, 5:01 am, "Jerod Venema" <[EMAIL PROTECTED]> wrote: > It looks like json.errors should be an array, right? > > var json = {"errors":[]} > > json.errors is an

[Proto-Scripty] Re: JSON and $H() to get size of returned JSON data

2008-11-18 Thread Jerod Venema
It looks like json.errors should be an array, right? var json = {"errors":[]} json.errors is an array...so $H(json.errors) is probably not what you want. Try $A(json.errors); You'll have to adjust your each as well... $A(json.errors).each(function(err){ console.log(err.anError); //outputs "a

[Proto-Scripty] Re: Creating New Dom elements with Prototype don't display in IE, hmm?

2008-11-18 Thread Ken Snyder
yes, with tables in IE, you have to explicitly attach tags to a not a - Ken Snyder On 11/18/08, Jonathan Rosenberg <[EMAIL PROTECTED]> wrote: > > Not much info to go on, but ... are you using tables? If so, did you > include tbody, tfoot & thead elements? > > -- > Jonathan Rosenberg > Found

[Proto-Scripty] Re: JSON and $H() to get size of returned JSON data

2008-11-18 Thread Tobie Langel
FWIW, you should be using response.responseJSON and setting the sanitizeJSON option of your ajax request to true. Would avoid evaluating the json object twice! Best, Tobie note: you'll need to set the mime-type of the response to 'application/ json' or the evalJSON option to 'force' On Nov 19

[Proto-Scripty] Re: JSON and $H() to get size of returned JSON data

2008-11-18 Thread kangax
On Nov 18, 6:48 pm, laf <[EMAIL PROTECTED]> wrote: > So I have this function. It toggles error messages after an AJAX call > for validation. It works fine in prototype 1.5, > but an upgrade to 1.6 has broken it and I have not been able to work > out why. > >     onFormSuccess : function(transport)

[Proto-Scripty] JSON and $H() to get size of returned JSON data

2008-11-18 Thread laf
So I have this function. It toggles error messages after an AJAX call for validation. It works fine in prototype 1.5, but an upgrade to 1.6 has broken it and I have not been able to work out why. onFormSuccess : function(transport) { var json = transport.responseText.evalJSON(true

[Proto-Scripty] Re: Bug/Issue with autocompleter in IE7, first request doesn't appear, subsequent requests do

2008-11-18 Thread Joe Athman
We are having this exact same problem, although it only seemed to pop up with version 1.8.2. We have been using 1.8.1 just fine. Does anyone else see this? Joe On Nov 4, 4:28 pm, Tom <[EMAIL PROTECTED]> wrote: > I have found an issue with theautocompleterin IE7 where the first > issued request

[Proto-Scripty] Re: Creating New Dom elements with Prototype don't display in IE, hmm?

2008-11-18 Thread Jonathan Rosenberg
Not much info to go on, but ... are you using tables? If so, did you include tbody, tfoot & thead elements? -- Jonathan Rosenberg Founder & Executive Director, Tabby's Place http://www.tabbysplace.org/ > -Original Message- > From: prototype-scriptaculous@googlegroups.com [mailto:[EMAI

[Proto-Scripty] Re: new AjaxRequest.....

2008-11-18 Thread Ricardo Fontão Verhaeg
for the first case i was thinking of using a timeout call... should it work? :: Ricardo Verhaeg :: Bacharelado Ciências da Computação - USP - São Carlos (2005) On Tue, Nov 18, 2008 at 20:07, Ricardo Fontão Verhaeg <[EMAIL PROTECTED]>wrote: > thanks! > I was working (for studies purpouses) on a

[Proto-Scripty] Re: new AjaxRequest.....

2008-11-18 Thread Ricardo Fontão Verhaeg
thanks! I was working (for studies purpouses) on a hand made auto-complete with prototype, the idea was that if the user types too fast it will launch only the latest request not all of them. Another issue i was having.. is that if I trigger two or more requests that will work on the same element,

[Proto-Scripty] Multiple InPlaceEditors in a row

2008-11-18 Thread Felipe Lacerda
Hi there, folks. I'm a newcomer to scriptaculous, being exposed to it through symfony. Anyway, I'm trying to put several InPlaceEditors in the same row of a table and to toggle and/or submit them with an external control, a la .Net's DataGrid. I've successfully used the external control thingy to

[Proto-Scripty] Creating New Dom elements with Prototype don't display in IE, hmm?

2008-11-18 Thread Outpost
Hi, I am writing a simple calendar script. Using Prototype (1.6) I update the calendar's table creating and inserting new elements (TR, TD) for the days in to the DOM, applying Click Events to the TD along the way. The calendar works great on everything but IE(6,7), where the calendar simply dis

[Proto-Scripty] Re: Passing variables after an onComplete

2008-11-18 Thread Matt Foster
> No, its all POST methods being used here. > >>         new > >> Ajax.Updater('respanel','data/fetchrespanel.php',{method:'get'}); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" grou

[Proto-Scripty] Re: Updater from within an iframe

2008-11-18 Thread Matt Foster
Looking into the syntax, it executes the Element.update method on the container, as your container exists within the IFRAME, I'm assuming it doesn't have these extended methods. You could take two approaches from here. Extend the element before sending Ajax.Updater the reference or Use Ajax.Re

[Proto-Scripty] prototype/scriptaculous have resize images?

2008-11-18 Thread Miguel Beltran R.
Hi list prototype/scriptaculous have resize images? like http://extjs.com/deploy/dev/examples/resizable/basic.html -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida --~--~-~--~~~---~--~~ You recei

[Proto-Scripty] Re: Passing variables after an onComplete

2008-11-18 Thread Alex Mcauley
messy but if it a'int broke dont fix it is my motto !! - Original Message - From: "James Hoddinott" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 18, 2008 5:44 PM Subject: [Proto-Scripty] Re: Passing variables after an onComplete > > 2008/11/18 Matt Foster <[EMAIL PROTECTED]>: >> Wel

[Proto-Scripty] Re: Passing variables after an onComplete

2008-11-18 Thread James Hoddinott
2008/11/18 Matt Foster <[EMAIL PROTECTED]>: > Well if you're request method is GET and you're looking in POST, there > could be some issues, make sure you're using and expecting the same > method type on the client and the server. No, its all POST methods being used here. However, I do seem to ha

[Proto-Scripty] Re: new AjaxRequest.....

2008-11-18 Thread Alex Mcauley
or this method !! ... but be warned if you have other request asynchrnously in the page then they will start to become synchronous due to this But if you dont then this will work too Regards Alex - Original Message - From: "Matt Foster" <[EMAIL PROTECTED]> To: "Prototype & script.aculo.u

[Proto-Scripty] Re: Passing variables after an onComplete

2008-11-18 Thread Alex Mcauley
should parameters not be wrapped like so parameters : { f: v; } - Original Message - From: "James Hoddinott" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 18, 2008 12:56 PM Subject: [Proto-Scripty] Passing variables after an onComplete > > I'm stumped again :( I have the

[Proto-Scripty] Re: Updater from within an iframe

2008-11-18 Thread Ron Newman
Yep, tried that. I was trying to be SUBTLE by mentioning that it wanted a string as the first argument, but that's what I meant, that I tried assigning a var and then passing that. Seems it should work but it didn't. On Tue, Nov 18, 2008 at 10:11 AM, Matt Foster <[EMAIL PROTECTED]>wrote: > > >

[Proto-Scripty] Re: Updater from within an iframe

2008-11-18 Thread Matt Foster
> new parent.Ajax.Updater('target', './refresh.php5, { method: You're sending a string, try using a direct object reference... var ele = window.document.getElementById('target'); ele.innerHTML = "Loading..."; new parent.Ajax.Updater(ele, './refresh.php5, ... On Nov 17, 4:37 pm, ronman <[EM

[Proto-Scripty] Re: new AjaxRequest.....

2008-11-18 Thread Matt Foster
Instead of trying to keep the last reference to the XHR sent, just enforce a singleton style approach, such that the user can't request a refresh of data when a request is already pending. function fireAjax(){ if(Ajax.activeRequestCount == 0) new Ajax.Request(...); } --~--~--

[Proto-Scripty] Re: Passing variables after an onComplete

2008-11-18 Thread Matt Foster
Well if you're request method is GET and you're looking in POST, there could be some issues, make sure you're using and expecting the same method type on the client and the server. On Nov 18, 7:56 am, "James Hoddinott" <[EMAIL PROTECTED]> wrote: > I'm stumped again :( I have the following HTML w

[Proto-Scripty] Re: Event.observe doesn't work on window scroll event

2008-11-18 Thread Joe Moore
Well don't I feel foolish! That solved my problem. I guess I needed more coffee! Thanks, Joe On Mon, Nov 17, 2008 at 9:37 PM, kangax <[EMAIL PROTECTED]> wrote: > > On Nov 17, 12:16 pm, Joe Moore <[EMAIL PROTECTED]> wrote: > > I'm trying to use the bind to the windows.onscroll event with > > Eve

[Proto-Scripty] Re: new AjaxRequest.....

2008-11-18 Thread Mona Remlawi
Hi Ricardo, You need to evaluate the transport.readyState of the previous Ajax.Request, and accordingly decide what you want to do. Basically, 1|2|3 readyStates mean the the request is still in progress. If you want to abort the old request, just call myRequest.transport.abort(); and carry on wit

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-18 Thread Mona Remlawi
Hi Abel, Sorry I only skimmed through the thread here, so excuse me if my response comes irrelevant. Assuming forms is the array of forms you wanna submit, try the following: var paramsObj = forms.collect(function(f) {return f.serialize(false)}).join('&').toQueryParams(); this basically merges t

[Proto-Scripty] Re: Intellisense for prototype with Visual Studio 2008??

2008-11-18 Thread uniquegodwin
wow superbbb..,Thank you so much... eagerly waiting for this...Hope it gets released really soon On Nov 18, 2:16 pm, Christophe Porteneuve <[EMAIL PROTECTED]> wrote: > uniquegodwin a écrit : > > > Hello, > > Is there any signs of having intellisense for prototype in Visual > > Studio??...the

[Proto-Scripty] Passing variables after an onComplete

2008-11-18 Thread James Hoddinott
I'm stumped again :( I have the following HTML which is displayed whenever a ticket is loaded: ... Service is Blocked ... After that is loaded, the function loadIncidentAjax is called (via onComplete): function loadIncidentAjax() { //Elements within the incident new Ajax.Upda

[Proto-Scripty] Re: new AjaxRequest.....

2008-11-18 Thread Ricardo Fontão Verhaeg
Getting in the road with the question. I have assigned the Ajax.Request to a variable, but in the ajax request code i've add an onSuccess function to be called. This will be called multiple times if I make multiple requests? or just the last one will be completed? :: Ricardo Verhaeg :: Bacharelado

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-18 Thread Abel Figueiredo
I spoke too soon. There's a little problem. One of the forms contains a select option. When I click a button the merge function is called and the value shown should be the selected one, but it's the first one instead. At first I thought it could be something else and I've submitted that particu

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-18 Thread Abel Figueiredo
Thank you for your help. It's working as expected :-) On Nov 15, 3:32 am, kangax <[EMAIL PROTECTED]> wrote: > On Nov 14, 11:52 am, Abel Figueiredo <[EMAIL PROTECTED]> > wrote: > > > This solution. Is it for same-named form controls? My solution doesn't > > have same-named controls. > > > So with

[Proto-Scripty] Re: Intellisense for prototype with Visual Studio 2008??

2008-11-18 Thread Christophe Porteneuve
uniquegodwin a écrit : > Hello, > Is there any signs of having intellisense for prototype in Visual > Studio??...the same way it works for Jquery?? > > Is there any prototype.vsdoc.js file available?? There isn't for now. Prototype Core is resuming work on its PDoc system. Once it's up and ru

[Proto-Scripty] Re: Javascript error in IE6 for Effect.Highlight

2008-11-18 Thread scripter
Hey thanks. Its working fine now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe