<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:st1 = "urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN
class=796182817-11062007>Hi, updates..</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN
class=796182817-11062007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN
class=796182817-11062007> I've found that it seems to be
related to the onLoad method invocation. Somebody can confirm me if the onLoad
event is triggered before or after the scripts of the page can be used (invoke
it's objects, etc)?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN
class=796182817-11062007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN
class=796182817-11062007> If I don't call objects on the
onLoad (of the page, the one that is in the script part of <BODY>) then
the error don't happen but I'm unable to understand exactly why it's behavior is
that,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN
class=796182817-11062007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face="Trebuchet MS" color=#0000ff size=2><SPAN
class=796182817-11062007> thanks,</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV align=left><SPAN class=250542422-20122006>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left><st1:PersonName
w:st="on" ProductID="Sebastian Sastre "><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Sebastian
Sastre<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></st1:PersonName></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p> </o:p></SPAN></SPAN><BR></P></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=es dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> seaside-bounces@lists.squeakfoundation.org
[mailto:seaside-bounces@lists.squeakfoundation.org] <B>En nombre de
</B>Sebastian Sastre<BR><B>Enviado el:</B> Domingo, 10 de Junio de 2007
19:08<BR><B>Para:</B> 'Seaside - general discussion'<BR><B>Asunto:</B>
[Seaside] "Element.extend is not a function" anybody?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face="Trebuchet MS" size=2><FONT face="Times New Roman" size=3>Hi
there, <BR></FONT>
<P> I've see a couple of questions <SPAN
class=671115921-10062007>in the Prototype list </SPAN>about this but none with
a direct <BR>answer. <SPAN class=671115921-10062007>I've also asked there
but haven't had a single answer about that in two days. I'm starting to
suspect I should know better what happen at load page time to see if
everything is ok in this Seaside component.</SPAN></P>
<P><SPAN class=671115921-10062007></SPAN> The thing is that <SPAN
class=671115921-10062007>a couple of days ago </SPAN>I've starting to see this
message with <BR>Firebug. <SPAN class=671115921-10062007>Anybody see this
sometimes? Under</SPAN><SPAN class=671115921-10062007> </SPAN>which situation
could possibly be? <BR></P>
<P><SPAN class=671115921-10062007>Message is:</SPAN></P>
<P>Element.extend is not a function <BR></P>
<P>I'm using <BR></P>
<P>var Prototype = { <BR>10 Version: '1.5.1_rc1', <BR>... <BR></P>
<P>in Firefox 2.0.0.4 <BR></P>
<P> Debuggin from my own code just after it calls a <BR></P>
<P>var candidate = $(anElementId) <BR></P>
<P> I followed this: <BR></P>
<P>function $(element) { <BR>1227 if (arguments.length > 1) { <BR>1228 for
(var i = 0, elements = [], length = arguments.length; i < <BR>length; i++)
<BR>1229 elements.push($(arguments[i])); <BR>1230 return elements; <BR>1231 }
<BR>1232 if (typeof element == 'string') <BR>1233 element =
document.getElementById(element); <BR>1234 return Element.extend(element);
<BR>1235} <BR></P>
<P>and executing line by line I saw that it reaches line 1233 with the
<BR>appropriate (unextended) element and when executing line 1234 it says
<BR>"Element.extend is not a function" <BR></P>
<P>Surely something basic is going on here but I'm unable to see what.
<BR>Does anybody see what is going on? <BR></P>
<P> thanks, <BR></P>
<P>Sebastian <BR>PS<SPAN class=671115921-10062007>1</SPAN>: all this code is
being executed starting from an invocation in the <BR>onLoad() of the script
of the page </P></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=671115921-10062007>PS2: I've
already tried, and had the same results, with the last version of Prototype
1.5.1 downloaded today from it's site (and processed the ' chars to
properly update the #prototypeJs method in SULibrary
class).</SPAN></FONT></DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN
class=671115921-10062007></SPAN></FONT> </DIV>
<DIV><FONT face="Trebuchet MS" size=2><SPAN class=671115921-10062007>PD3: is
for the framework I've mentioned in the previous mail I've sent
today</SPAN></FONT></DIV>
<DIV align=left><SPAN class=250542422-20122006>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left><st1:PersonName
w:st="on" ProductID="Sebastian Sastre "><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"></SPAN></st1:PersonName> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt" align=left><st1:PersonName
w:st="on" ProductID="Sebastian Sastre "><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"></SPAN></st1:PersonName> </P></DIV></SPAN>
<DIV><FONT face="Trebuchet MS"
size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>