Hi, > Prototype (1.6.1) doesn't work with firefox 3 or 3.5!!
Not to put too fine a point on it, but ask yourself: How likely is that, *really*? > ...it throws a ton of errors (all innocuous like "toJSON does not > always return a value") and it won't run any other code! Look at your add-ons list, you appear to have some kind of "lint" style add-on installed. This is not default Firefox behavior. (And I suspect it *does* run further code, unless the add-on in question is seriously broken.) It's perfectly valid for a JavaScript function to have code paths that issue a return statement with a value and also have code paths that either don't issue a return (just letting the execution path fall out of the function) or do so with no explicitly- defined value; all it means is that the return value is `undefined` (literally). This is per spec. I don't happen to be fan of this style of code, but it's perfectly valid. HTH, -- T.J. Crowder tj / crowder software / com www.crowdersoftware.com On Sep 21, 7:57 pm, Don Rhummy <donrhu...@gmail.com> wrote: > I'm trying to use the prototype framework (prototype.js) with firefox > but it throws a ton of errors (all innocuous like "toJSON does not > always return a value") and it won't run any other code! > > All I'm doing is: > > 1. Including the prototype.js file > > 2. alert( "some code was called" ); > > it never runs the alert statement (I had other stuff before but have > distilled it just to this) > > It DOES run in Opera 10. > > What might be wrong? --~--~---------~--~----~------------~-------~--~----~ 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 from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---