I''m starting to learn to use Prototype (v1.5.1.1) along with Mootools. However I keep bumping into the same problem: All of the inserts result in the error "iterator is not a function" at line 542 of Prototype memo = iterator(memo, value, index); Am I missing something obvious here? I''m wondering if there''s an incompatibility between Prototype and Domino (which I''m using as the web server)? Does anyone have any ideas on this? I can post some of the code that gets generated if that helps but I suspect that it''s something more fundamental like the codepage not being what Prototype or Domino expects. Thanks, Pseudonym --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 7, 2007 1:58 PM, Pseudonym <rhodri.howell-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Does anyone have any ideas on this? I can post some of the code that > gets generated if that helps but I suspect that it''s something more > fundamental like the codepage not being what Prototype or Domino > expects.Javascript (and therefore Prototype) operate on the client side, so it''s _extremely_ unlikely that an incompatibility with the web server is causing the problem. However, it''s hard to say what the problem is without seeing the code that''s generating the error. I mean, I _could_ give you a generic explanation, but it will be little more than a restatement of the error message you''re getting. :Dan Dorman --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for your response. I''ve actually managed to prove on a test server that the fact that Domino doesn''t use UTF-8 by default isn''t the root cause. This is an attempt to mimic the code sample at http://demos.mootools.net/Fx.Slide however I get the same error at the same line with several other tests. Prototype and mootools scriptlibraries are the latest non-beta downloads from their respective websites. HTML generated by Domino as follows: <html> <head> <meta http-equiv="content-type" content="text/html; charset=us- ascii"> <title>Moo Test</title><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <meta http-equiv="cache-control"content="no-cache" /> <base href="http://ymt-gwsv2/web/appwork.nsf/" /> <script type="text/javascript" src="prototype.js"></script> <script type="text/javascript" src="mootools.js"></script> <script type="text/javascript" src="mootest.js"></script> <link href="/web/appwork.nsf/style.css?openpage" rel="stylesheet" type="text/css" /> <script language="JavaScript" type="text/javascript"> <!-- document._domino_target = "_self"; function _doClick(v, o, t) { var url="/web/appwork.nsf/fmMOOFX?ReadForm&Click=" + v; if (o.href != null) o.href = url; else { if (t == null) t = document._domino_target; window.open(url, t); } } // --> </script> </head> <body text="#000000" bgcolor="#FFFFFF"> <form action=""><a id="slideout" href="#">slideout</a> | <a id="slidein" href="#">slidein</a> | <a id="toggle" href="#">toggle</a> | <a id="hide" href="#">hide</a> <div id="divmisc"><tt><font size="4">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</font></tt></div> <input name="Form" type="hidden" value="fmMOOFX"> <input name="f_FormName" type="hidden" value="MooFX Test"> <input name="HTTP_Referer" type="hidden" value=""> <input name="HTTP_User_Agent" type="hidden" value="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.9) Gecko/20071025 Firefox/ 2.0.0.9"> <input name="Query_String_Decoded" type="hidden" value="ReadForm"> <input name="Server_Name" type="hidden" value="xxxxxxxxx"> <input name="Remote_Host" type="hidden" value=""> <input name="Remote_Addr" type="hidden" value="xxx.xxx.xxx.xxx"> <input name="$V2AttachmentOptions" type="hidden" value="0"> <input name="f_WebDBName" type="hidden" value="web/appwork.nsf"> <input name="ArgNames" type="hidden" value=""> <input name="ArgValues" type="hidden" value=""> <input name="Query" type="hidden" value=""> <input name="CSSToUse" type="hidden" value=""> <input name="f_CSS" type="hidden" value="<link href="/web/ appwork.nsf/style.css?openpage" rel="stylesheet" type="text/css" />"></form> </body> </html> Javascript in mootest.js as follows: window.addEvent(''domready'', function() { var slide_misc = new Fx.Slide(''divmisc''); $(''slidein'').addEvent(''click'', function(e){ e = new Event(e); mySlide.slideIn(); e.stop(); return false; }); $(''slideout'').addEvent(''click'', function(e){ e = new Event(e); mySlide.slideOut(); e.stop(); return false; }); $(''toggle'').addEvent(''click'', function(e){ e = new Event(e); mySlide.toggle(); e.stop(); return false; }); $(''hide'').addEvent(''click'', function(e){ e = new Event(e); mySlide.hide(); e.stop(); return false; }); }); Thanks for your help... Pseudonym --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, I would suggest you used Prototype 1.6 (which has been released minutes ago) instead of 1.5.1.1. Secondly, I very much doubt that you can use both mootools and Prototype on the same page, as both of them cover really similar ground. I would suggest going with either one of those two libs. Regards, Tobie On Nov 7, 10:59 pm, Pseudonym <rhodri.how...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks for your response. I''ve actually managed to prove on a test > server that the fact that Domino doesn''t use UTF-8 by default isn''t > the root cause. This is an attempt to mimic the code sample athttp://demos.mootools.net/Fx.Slidehowever I get the same error at the > same line with several other tests. Prototype and mootools > scriptlibraries are the latest non-beta downloads from their > respective websites. > > HTML generated by Domino as follows: > > <html> > <head> > <meta http-equiv="content-type" content="text/html; charset=us- > ascii"> > <title>Moo Test</title><html xmlns="http://www.w3.org/1999/xhtml" > xml:lang="en" lang="en"> > <meta http-equiv="cache-control"content="no-cache" /> > <base href="http://ymt-gwsv2/web/appwork.nsf/" /> > <script type="text/javascript" src="prototype.js"></script> > <script type="text/javascript" src="mootools.js"></script> > <script type="text/javascript" src="mootest.js"></script> > <link href="/web/appwork.nsf/style.css?openpage" rel="stylesheet" > type="text/css" /> > > <script language="JavaScript" type="text/javascript"> > <!-- > document._domino_target = "_self"; > function _doClick(v, o, t) { > var url="/web/appwork.nsf/fmMOOFX?ReadForm&Click=" + v; > if (o.href != null) > o.href = url; > else { > if (t == null) > t = document._domino_target; > window.open(url, t); > } > > } > > // --> > > </script> > </head> > <body text="#000000" bgcolor="#FFFFFF"> > > <form action=""><a id="slideout" href="#">slideout</a> | <a > id="slidein" href="#">slidein</a> | <a id="toggle" href="#">toggle</a> > | <a id="hide" href="#">hide</a> > <div id="divmisc"><tt><font size="4">Lorem ipsum dolor sit amet, > consectetur adipisicing elit, sed do eiusmod tempor incididunt ut > labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud > exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. > Duis aute irure dolor in reprehenderit in voluptate velit esse cillum > dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non > proident, sunt in culpa qui officia deserunt mollit anim id est > laborum.</font></tt></div> > > <input name="Form" type="hidden" value="fmMOOFX"> > <input name="f_FormName" type="hidden" value="MooFX Test"> > <input name="HTTP_Referer" type="hidden" value=""> > <input name="HTTP_User_Agent" type="hidden" value="Mozilla/5.0 > (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.9) Gecko/20071025 Firefox/ > 2.0.0.9"> > <input name="Query_String_Decoded" type="hidden" value="ReadForm"> > <input name="Server_Name" type="hidden" value="xxxxxxxxx"> > <input name="Remote_Host" type="hidden" value=""> > <input name="Remote_Addr" type="hidden" value="xxx.xxx.xxx.xxx"> > <input name="$V2AttachmentOptions" type="hidden" value="0"> > <input name="f_WebDBName" type="hidden" value="web/appwork.nsf"> > <input name="ArgNames" type="hidden" value=""> > <input name="ArgValues" type="hidden" value=""> > <input name="Query" type="hidden" value=""> > <input name="CSSToUse" type="hidden" value=""> > <input name="f_CSS" type="hidden" value="<link href="/web/ > appwork.nsf/style.css?openpage" rel="stylesheet" > type="text/css" />"></form> > </body> > </html> > > Javascript in mootest.js as follows: > > window.addEvent(''domready'', function() { > > var slide_misc = new Fx.Slide(''divmisc''); > > $(''slidein'').addEvent(''click'', function(e){ > e = new Event(e); > mySlide.slideIn(); > e.stop(); > return false; > > }); > > $(''slideout'').addEvent(''click'', function(e){ > e = new Event(e); > mySlide.slideOut(); > e.stop(); > return false; > > }); > > $(''toggle'').addEvent(''click'', function(e){ > e = new Event(e); > mySlide.toggle(); > e.stop(); > return false; > > }); > > $(''hide'').addEvent(''click'', function(e){ > e = new Event(e); > mySlide.hide(); > e.stop(); > return false; > > }); > }); > > Thanks for your help... > > Pseudonym--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Got it working now: var slide_misc = new Fx.Slide(''divmisc''); should be var mySlide = new Fx.Slide(''divmisc''); There were a few other things I had wrong as well. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Mootools once began as an effects library (moofx) for prototype, much like scriptaculous, but they discontinued support for prototype when they created their own javascript library. A lot of the modules and methods in mootools are ''inspired'' from prototype (amongst others), so i is likely they will clash when used together on a page... Though it is safe to use the mootools effects library (moofx) as prototype doesn''t venture in that area of javascript.>From my own experience I found out that although you can download aspecial prototype version of moofx (http://moofx.mad4milk.net/ #prototype) it is far from bug-free. Greetz On Nov 8, 12:32 am, Pseudonym <rhodri.how...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Got it working now: > > var slide_misc = new Fx.Slide(''divmisc''); > > should be > > var mySlide = new Fx.Slide(''divmisc''); > > There were a few other things I had wrong as well.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---