[Sugar-devel] [Karma] changed jquery.karma.js to use 'name' property instead of ID

2009-09-12 Thread Bryan Berry
Felipe,
I changed id property for images, sounds, and surfaces to name instead.
Did this to avoid confusion with an html element's ID attribute.

I have changed adding_up to reflect this change

-- 
Bryan W. Berry
Technology Director
OLE Nepal, http://www.olenepal.org

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [Karma] changed jquery.karma.js to use 'name' property instead of ID

2009-09-12 Thread Lucian Branescu
Be careful, name is the historical precursor of id and it's valid in
XHTML Transitional for the same purpose.

2009/9/12 Bryan Berry br...@olenepal.org:
 Felipe,
 I changed id property for images, sounds, and surfaces to name instead.
 Did this to avoid confusion with an html element's ID attribute.

 I have changed adding_up to reflect this change

 --
 Bryan W. Berry
 Technology Director
 OLE Nepal, http://www.olenepal.org

 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [Karma] changed jquery.karma.js to use 'name' property instead of ID

2009-09-12 Thread Bryan Berry
sure, but we don't use 'name' in the html, only in the API for
referencing particular resources

for example

k.surfaces[scorebox] references the scorebox canvas
k.surfaces[timer] references the timer canvas
k.library.images[ball] references a  ball image preloaded in the
following code

k.init({ images [ {name:ball, file:ball.png}],
surfaces[{name:scorebox, canvas:scoreboxCanvas}]
});

On Sat, 2009-09-12 at 08:43 +0100, Lucian Branescu wrote:
 Be careful, name is the historical precursor of id and it's valid in
 XHTML Transitional for the same purpose.
 
 2009/9/12 Bryan Berry br...@olenepal.org:
  Felipe,
  I changed id property for images, sounds, and surfaces to name instead.
  Did this to avoid confusion with an html element's ID attribute.
 
  I have changed adding_up to reflect this change
 
  --
  Bryan W. Berry
  Technology Director
  OLE Nepal, http://www.olenepal.org
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
-- 
Bryan W. Berry
Technology Director
OLE Nepal, http://www.olenepal.org

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [Karma] changed jquery.karma.js to use 'name' property instead of ID

2009-09-12 Thread Bryan Berry
that said, i am tempted to use 'kid' as in 'karma id' to avoid just this
confusion

On Sat, 2009-09-12 at 08:43 +0100, Lucian Branescu wrote:
 Be careful, name is the historical precursor of id and it's valid in
 XHTML Transitional for the same purpose.
 
 2009/9/12 Bryan Berry br...@olenepal.org:
  Felipe,
  I changed id property for images, sounds, and surfaces to name instead.
  Did this to avoid confusion with an html element's ID attribute.
 
  I have changed adding_up to reflect this change
 
  --
  Bryan W. Berry
  Technology Director
  OLE Nepal, http://www.olenepal.org
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
-- 
Bryan W. Berry
Technology Director
OLE Nepal, http://www.olenepal.org

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [Karma] changed jquery.karma.js to use 'name' property instead of ID

2009-09-12 Thread Felipe López Toledo
I think things like this will continue happening. I suppose that other
libraries have had similar problems and I have not seen a jQuery-id or
dojo-id, although that I have not seen them so far does not mean that they
don't exist.
In this case I would like to continue using id, of course making it very
clear that the name we choose is for *internal use* of Karma.

btw. When I read kid I think in a little guy, not in a karma-id.


2009/9/12 Bryan Berry br...@olenepal.org

 that said, i am tempted to use 'kid' as in 'karma id' to avoid just this
 confusion

 On Sat, 2009-09-12 at 08:43 +0100, Lucian Branescu wrote:
  Be careful, name is the historical precursor of id and it's valid in
  XHTML Transitional for the same purpose.
 
  2009/9/12 Bryan Berry br...@olenepal.org:
   Felipe,
   I changed id property for images, sounds, and surfaces to name instead.
   Did this to avoid confusion with an html element's ID attribute.
  
   I have changed adding_up to reflect this change
  
   --
   Bryan W. Berry
   Technology Director
   OLE Nepal, http://www.olenepal.org
  
   ___
   Sugar-devel mailing list
   Sugar-devel@lists.sugarlabs.org
   http://lists.sugarlabs.org/listinfo/sugar-devel
  
 --
 Bryan W. Berry
 Technology Director
 OLE Nepal, http://www.olenepal.org




-- 
Felipe López Toledo
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [Karma] changed jquery.karma.js to use 'name' property instead of ID

2009-09-12 Thread Bryan Berry
ok, then do u want me to change it back to just 'id'?

On Sat, 2009-09-12 at 13:19 -0500, Felipe López Toledo wrote:
 I think things like this will continue happening. I suppose that other
 libraries have had similar problems and I have not seen a jQuery-id
 or dojo-id, although that I have not seen them so far does not mean
 that they don't exist. 
 In this case I would like to continue using id, of course making it
 very clear that the name we choose is for *internal use* of Karma. 
 
 
 btw. When I read kid I think in a little guy, not in a karma-id. 
 
 
 
 2009/9/12 Bryan Berry br...@olenepal.org
 that said, i am tempted to use 'kid' as in 'karma id' to avoid
 just this
 confusion
 
 On Sat, 2009-09-12 at 08:43 +0100, Lucian Branescu wrote:
 
 
  Be careful, name is the historical precursor of id and it's
 valid in
  XHTML Transitional for the same purpose.
 
  2009/9/12 Bryan Berry br...@olenepal.org:
   Felipe,
   I changed id property for images, sounds, and surfaces to
 name instead.
   Did this to avoid confusion with an html element's ID
 attribute.
  
   I have changed adding_up to reflect this change
  
   --
   Bryan W. Berry
   Technology Director
   OLE Nepal, http://www.olenepal.org
  
   ___
   Sugar-devel mailing list
   Sugar-devel@lists.sugarlabs.org
   http://lists.sugarlabs.org/listinfo/sugar-devel
  
 
 --
 
 Bryan W. Berry
 Technology Director
 OLE Nepal, http://www.olenepal.org
 
 
 
 
 
 -- 
 Felipe López Toledo
-- 
Bryan W. Berry
Technology Director
OLE Nepal, http://www.olenepal.org

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel