The effects.js comes up with a runtime error saying Error: element has no properties referring to the line of code: queue: { position:''end'', scope: (element.id || ''global''), limit:1 } Anyone got any idea why and how to fix it?? the code that I''m using is: <script src="/Scriptaculous/prototype.js" type="text/javascript"></ script> <script src="Scriptaculous/scriptaculous.js" type="text/javascript"></ script> <link href="HowWeWork/InfoPage.css" rel="stylesheet" type="text/css" /><body> <script type="text/javascript" language="javascript"> // <![CDATA[ Effect.Appear(''element_id''); // ]]> </script> <div class="info_Page"> <a href="#" onclick="Effect.toggle(''hidden_content1'',''blind''); return false"><H2>Deciding what vehicle you want </H2></a> <div id="hidden_content1" style="display:none"><span class="stuff"> <p>Five fountains tickled the progressive elephant. Two speedy cats grew up almost easily. Umpteen subways perused two obese dogs. Umpteen very bourgeois dwarves noisily telephoned Tokyo, even though five subways bought Springfield. One speedy elephant untangles Batman, because five aardvarks tickled Mercury. Quark grew up, then chrysanthemums laughed extremely cleverly. Five bourgeois lampstands tastes two televisions. Umpteen quite silly trailers easily fights Paul, even though two tickets bought one quixotic wart hog, however five obese subways tastes umpteen Klingons. Partly purple sheep </p> <dl> <dt>What you need to know before hand:-</dt> <dd>What you need to carry</dd> </dl> </span> </div> </div> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I cant see an element with id element_id (which you''re passing as a string) <script type="text/javascript" language="javascript"> // <![CDATA[ Effect.Appear(''element_id''); // ]]> </script> On 6/16/07, devilsapprentice <simont-OhwvFy933VCeKfPFwswN8g@public.gmane.org> wrote:> > > The effects.js comes up with a runtime error saying > > Error: element has no properties > > referring to the line of code: > > queue: { position:''end'', scope: (element.id || ''global''), limit:1 } > > Anyone got any idea why and how to fix it?? > > the code that I''m using is: > > <script src="/Scriptaculous/prototype.js" type="text/javascript"></ > script> > <script src="Scriptaculous/scriptaculous.js" type="text/javascript"></ > script> > > <link href="HowWeWork/InfoPage.css" rel="stylesheet" type="text/css" / > > > <body> > <script type="text/javascript" language="javascript"> > // <![CDATA[ > Effect.Appear(''element_id''); > // ]]> > </script> > > <div class="info_Page"> > > <a href="#" onclick="Effect.toggle(''hidden_content1'',''blind''); return > false"><H2>Deciding what vehicle you want </H2></a> > > <div id="hidden_content1" style="display:none"><span class="stuff"> > > <p>Five fountains tickled the progressive elephant. > Two speedy cats grew up almost easily. > Umpteen subways perused two obese dogs. Umpteen very bourgeois > dwarves noisily telephoned Tokyo, even though five subways bought > Springfield. One speedy elephant untangles Batman, because five > aardvarks tickled Mercury. > Quark grew up, then chrysanthemums laughed extremely cleverly. Five > bourgeois lampstands tastes two televisions. Umpteen quite silly > trailers easily fights Paul, even though two tickets bought one > quixotic wart hog, however five obese subways tastes umpteen Klingons. > Partly purple sheep > </p> > > <dl> > <dt>What you need to know before hand:-</dt> > <dd>What you need to carry</dd> > </dl> > </span> > </div> > </div> > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Cheers Gareth, silly mistake - cheers for the help On 16 Jun, 05:43, "Gareth Evans" <agr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I cant see an element with id element_id (which you''re passing as a string) > > <script type="text/javascript" language="javascript"> > // <![CDATA[ > Effect.Appear(''element_id''); > // ]]> > </script> > > On 6/16/07, devilsapprentice <sim...-OhwvFy933VCeKfPFwswN8g@public.gmane.org> wrote: > > > > > The effects.js comes up with a runtime error saying > > > Error: element has no properties > > > referring to the line of code: > > > queue: { position:''end'', scope: (element.id || ''global''), limit:1 } > > > Anyone got any idea why and how to fix it?? > > > the code that I''m using is: > > > <script src="/Scriptaculous/prototype.js" type="text/javascript"></ > > script> > > <script src="Scriptaculous/scriptaculous.js" type="text/javascript"></ > > script> > > > <link href="HowWeWork/InfoPage.css" rel="stylesheet" type="text/css" / > > > <body> > > <script type="text/javascript" language="javascript"> > > // <![CDATA[ > > Effect.Appear(''element_id''); > > // ]]> > > </script> > > > <div class="info_Page"> > > > <a href="#" onclick="Effect.toggle(''hidden_content1'',''blind''); return > > false"><H2>Deciding what vehicle you want </H2></a> > > > <div id="hidden_content1" style="display:none"><span class="stuff"> > > > <p>Five fountains tickled the progressive elephant. > > Two speedy cats grew up almost easily. > > Umpteen subways perused two obese dogs. Umpteen very bourgeois > > dwarves noisily telephoned Tokyo, even though five subways bought > > Springfield. One speedy elephant untangles Batman, because five > > aardvarks tickled Mercury. > > Quark grew up, then chrysanthemums laughed extremely cleverly. Five > > bourgeois lampstands tastes two televisions. Umpteen quite silly > > trailers easily fights Paul, even though two tickets bought one > > quixotic wart hog, however five obese subways tastes umpteen Klingons. > > Partly purple sheep > > </p> > > > <dl> > > <dt>What you need to know before hand:-</dt> > > <dd>What you need to carry</dd> > > </dl> > > </span> > > </div> > > </div>--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---