[pLog-svn] r5703 - plog/trunk/js/ui

Oscar Renalias oscar at renalias.net
Sun Jul 22 08:04:00 EDT 2007


I ported some of the dom selectors from Prototype to the Lifetype.Dom  
namespace, so we can now use Lifetype.Dom.$, Lifetype.Dom.F and so on  
(I will also commit a patch to shorten Lifetype to LT so that we can  
just say LT.Dom.$)

Additionally YUI has the YAHOO.util.Dom group of functions where  
there's a few interesting DOM selection operations  
(getElementsByClassName, getElemenysBy, etc) Have a look at the API  
documentation if interested: http://developer.yahoo.com/yui/docs/ 
YAHOO.util.Dom.html

I think we should stick to one library, anyway.

On 22 Jul 2007, at 13:38, Mark Wu wrote:

> I think YUI lacks of some dom element selector, it only provide  
> some effect
> , widget but no dom selecttor ...
>
> Maybe we can combine YUI-EXT's domquery or jQuery to make the rest  
> of code
> looks more clean.
>
> Like:
>
> document.getElementsById('postCommentsList') can trun to
> E('postCommentsList')  or $('postCommentsList);
>
> Please reference to :
> http://extjs.com/deploy/ext/docs/output/Ext.DomQuery.html
>
> Mark
>
> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Oscar  
> Renalias
> Sent: Sunday, July 22, 2007 6:19 PM
> To: LifeType Developer List
> Subject: Re: [pLog-svn] r5703 - plog/trunk/js/ui
>
> We're using the Yahoo UI library (YUI), but these toolkits and  
> frameworks
> can only do so much. There's a lot of application-specific stuff  
> that we
> still need to code ourselves.
>
> On 22 Jul 2007, at 13:16, Ammar Ibrahim wrote:
>
>> Have you guys considered using a JS toolkit? This will simplify alot
>> of the JS stuff.
>>
>> On 7/21/07, oscar at devel.lifetype.net <oscar at devel.lifetype.net>
>> wrote: Author: oscar
>> Date: 2007-07-20 18:30:31 -0400 (Fri, 20 Jul 2007) New Revision: 5703
>>
>> Modified:
>>    plog/trunk/js/ui/plogui.js
>> Log:
>> This code is not needed anymore
>>
>>
>> Modified: plog/trunk/js/ui/plogui.js
>> ===================================================================
>> --- plog/trunk/js/ui/plogui.js  2007-07-20 22:29:26 UTC (rev 5702)
>> +++ plog/trunk/js/ui/plogui.js  2007-07-20 22:30:31 UTC (rev 5703)
>> @@ -1,41 +1,3 @@
>> -function submitCommentsList(op)
>> -{
>> -       if ( op == 'changeCommentsStatus' )
>> -       {
>> -               if ( document.getElementById
>> ("postCommentsList").commentStatus.value == -1 )
>> -               window.alert(errorCommentStatusMsg);
>> -               else
>> -               {
>> -                       document.getElementById
>> ("postCommentsList").op.value = op;
>> -                       document.getElementById
>> ("postCommentsList").submit();
>> -               }
>> -       }
>> -       else
>> -       {
>> -               document.getElementById
>> ("postCommentsList").op.value = op;
>> -               document.getElementById ("postCommentsList").submit 
>> ();
>> -       }
>> -}
>> -
>> -function submitTrackbacksList(op)
>> -{
>> -       if ( op == 'changeTrackbacksStatus' )
>> -       {
>> -               if ( document.getElementById
>> ("postTrackbacksList").trackbackStatus.value == -1 )
>> -               window.alert(errorTrackbackStatusMsg);
>> -               else
>> -               {
>> -                       document.getElementById
>> ("postTrackbacksList").op.value = op;
>> -                       document.getElementById
>> ("postTrackbacksList").submit();
>> -               }
>> -       }
>> -       else
>> -       {
>> -               document.getElementById
>> ("postTrackbacksList").op.value = op;
>> -               document.getElementById("postTrackbacksList").submit
>> ();
>> -       }
>> -}
>> -
>> function submitLinksList(op)
>> {
>>         document.getElementById("links").op.value = op;
>>
>> _______________________________________________
>> pLog-svn mailing list
>> pLog-svn at devel.lifetype.net
>> http://limedaley.com/mailman/listinfo/plog-svn
>>
>> _______________________________________________
>> pLog-svn mailing list
>> pLog-svn at devel.lifetype.net
>> http://limedaley.com/mailman/listinfo/plog-svn
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>



More information about the pLog-svn mailing list