[Proto-Scripty] element is null suggestion

2010-09-09 Thread Brian Marquis
In numerous places throughout the Prototype library, the element parameter is extended and overwritten. This code typically resembles the following code: someMethod: function(element) { element = $(element); return element.someOtherMethod(); } For me, at least, this makes debugging more

RE: [Proto-Scripty] Re: element is null suggestion

2010-09-09 Thread Brian Marquis
, Brian Marquis br...@quotepro.com wrote: In numerous places throughout the Prototype library, the element parameter is extended and overwritten. This code typically resembles the following code: someMethod: function(element) {   element = $(element);   return element.someOtherMethod

RE: [Proto-Scripty] Re: hash.__properties is undefined

2010-11-08 Thread Brian Marquis
team, respect our time. From: Brian Marquis [mailto:br...@quotepro.com] Sent: Monday, November 08, 2010 9:33 AM To: 'prototype-scriptaculous@googlegroups.com' Subject: RE: [Proto-Scripty] Re: hash.__properties is undefined I also have an issue with the Hash class. We have about 20 live

RE: [Proto-Scripty] Do somthing only after two Ajax calls return results

2010-11-22 Thread Brian Marquis
var watcher = { watching: false, start: function() { watching = true; Ajax.Responders.register({ onComplete: function() { if ( watching Ajax.activeRequestCount == 0 ) { finalize(); } } }); stop: function() { watching =

RE: [Proto-Scripty] Re: How to create math manipulatives

2010-11-22 Thread Brian Marquis
You can use Form.Observer to watch for changes to any values in a form. This assumes you have assigned the name attribute to each of your form fields. Without that, the getValue calls will return nothing. See http://www.prototypejs.org/api/timedObserver/form-observer for more details.

RE: [Proto-Scripty] Do somthing only after two Ajax calls return results

2010-11-22 Thread Brian Marquis
() { if ( Ajax.activeRequestCount == 0 ) { finalize(); } } } }; From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Brian Marquis Sent: Monday, November 22, 2010 9:43 AM To: prototype-scriptaculous@googlegroups.com

RE: [Proto-Scripty] JavaScript from AJAX response is not being available

2012-03-22 Thread Brian Marquis
Also, prototype provides methods for accessing elements and content which are preferred since they are designed to account for browser differences. Specifically, $('test_div').update(reponse.responseText); See the docs on Element.update for more details. Brian Marquis | Quotepro® | Senior

RE: [Proto-Scripty] syntax error at line 604 of prototype.js 1.6.0.3 after an Ajax call

2012-03-27 Thread Brian Marquis
There is no such thing as a patch for a catch statement. Two possibilities: 1. The error line or file is being misreported 2. There is a syntax error in your callback function. Brian Marquis | Quotepro® | Senior Developer | b...@quotepro.com | Phone: 312.654.8045 x122 / Fax: 312.654.1285

Re: [Proto-Scripty] Ajax.Updater output garbled only on iPhone first load

2012-04-03 Thread Brian Marquis
Not sure if you are still having issues with this. Might be a dom loading issue. Try changing to window onload instead of onready. On Apr 1, 2012, at 9:25 PM, Junkshops wrote: Hi all, I'm stumped on an iPhone only problem (works fine on Android, IE, FF, Opera, Chrome, Safari) so I'm hoping

[Proto-Scripty] RE: Ajax.Updater output garbled only on iPhone first load

2012-04-04 Thread Brian Marquis
This turned out to be a page loading/timing issue. The original poster resolved it by switching from document.observe('dom:loaded… to Event.observe(window,'load'… Brian Marquis | Quotepro® | Senior Developer | mailto:b...@quotepro.com b...@quotepro.com | Phone: 312.654.8045 x122 / Fax

[Proto-Scripty] Re: Prototype v1.6.0.2 - Changing $ Dollar Currency to £ Sterling

2012-04-19 Thread Brian Marquis
I've encountered similar issues trying to resolve accented characters for spanish translations of my web sites. The quickest way I've found to resolve character set issues was to replace character codes with the html entity for that symbol. Having said that, try using pound; instead.

[Proto-Scripty] Re: Prototype v1.6.0.2 - Changing $ Dollar Currency to £ Sterling

2012-04-19 Thread Brian Marquis
Trying using the html entity instead: pound; -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/7ZIfHS5aIq0J. To post to this group,

RE: [Proto-Scripty] Tactical Advice: Many rows, one checkbox per row

2012-04-25 Thread Brian Marquis
for graceful degradation. Brian Marquis | QuoteproR | Senior Developer | mailto:b...@quotepro.com b...@quotepro.com | Phone: 312.654.8045 x122 / Fax: 312.654.1285 image001 The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee

RE: [Proto-Scripty] Tactical Advice: Many rows, one checkbox per row

2012-04-25 Thread Brian Marquis
,function(event) { var element = Event.element(event); if ( element.name == ApprovedSubscribers ) { new Ajax.Request( url, $H({ RecordId: element.value, Checked: element.checked })); } }); Brian Marquis | QuoteproR | Senior Developer | mailto:b...@quotepro.com b...@quotepro.com

RE: [Proto-Scripty] Enumerations and Invoke

2012-05-07 Thread Brian Marquis
You could also do this with each. $$('div.mydivs').each(myFunction); myFunction will be passed the current element and the index of that element. Brian Marquis | QuoteproR | Senior Developer | mailto:b...@quotepro.com b...@quotepro.com | Phone: 312.654.8045 x122 / Fax: 312.654.1285