Hi David, Thanks for replying.
We have a page which calls in a saje.js in the header, and this file contains the prototype code. We have now just recently tried to embed facebook connect into our pages - the way it works is a user will try and submit a comment to an article, and at the same time, submit it to their facebook account; however, when the form gets submitted, IE and Chrome give us the javascript error relating to the Array.prototype.toString function. This is because the facebook call makes references to their own prototype library. At the moment, we are currently exploring removing that function from our library, and testing to see the impact of it, but it would be good to know if there is a workaround. Thanks, Shen On 17 Dec, 09:41, david <[email protected]> wrote: > Hi cannonballer , > > First why do you need two prototype on the same page, if you need to > modify a behaviour of a particular method, just use the magic wrap() > function's method. > To answer to your question, I'm not sure it's so easy to put prototype > two times in your pages. > > -- > david > > On 15 déc, 11:36, cannonballer <[email protected]> wrote: > > > Hi, > > > We are using prototype.js on our site and we call a function called > > Array.prototype.toString() - this function is also called > > fromhttp://www.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php > > when a > > user tries to communicate with facebook connect > > > the JS error we see is: > > Message: Object doesn't support this property or method > > Line: 13 > > Char: 1273 > > Code: 0 > > URI:http://www.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php > > > this error is seen in IE and google chrome > > > This was not happening a week ago, so it looks like Facebook have > > changed something on their end. I have submitted a bug report to their > > developer site, but am not sure if they will change fix it. > > > Is there a way to have 2 copies of prototype.js working on the same > > page? > > > Cheers. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
