Old comments from project's wiki

1 view
Skip to first unread message

Lukasz Rajchel

unread,
Apr 16, 2009, 3:16:02 PM4/16/09
to jQuery DOM Elements Creator Support
Because I'm cleaning projects wiki and all the comments will be
removed I'm pasting them here in case someone still needs them.

-----

Comment by nnamuen.hc, Dec 05, 2008

Is this plugin still maintained? Will it be compatible with future
versions of jQuery? Why is it not listed under http://plugins.jquery.com/
?

-----

Comment by Lukasz.Rajchel, Dec 05, 2008

Yes, it is still maintained. jQuery Plugins Page url is
http://plugins.jquery.com/project/DOMEC But the versions posted there
are not up-to-date because I decided that I want to keep in one place
and Google Code gives more possibilities. But there is a link on
jQuery Page to this site where you can post issues, download latest
versions etc.

-----

Comment by noyesa, Dec 12, 2008

I just wanted to tell you that I appreciate your work on this
extension. It's pretty handy!

-----

Comment by javaki, Jan 29, 2009

Oh GOD! Very nice :)

-----

Comment by ebade2000, Today (4 hours ago)

Is it possible to create a textbox? How does someone go about creating
one using your plugin?

-----

Comment by Lukasz.Rajchel, Today (3 hours ago)

Of course you can create textbox. You can create any DOM object you
need.

$.create('textbox', {rows: 4, cols: 40}, 'initial text');

-----

Comment by ebade2000, Today (81 minutes ago)

It may be a correction but I was able to get a text box using the
following...

$.create('input', {'type': 'text', 'value':'Initial Text', 'name':
'elementname', 'id': 'elementid'});

I think you were referring to a textarea. :P

Another question, to add css styles, is there a way I can add it to
the attributes or am I just safe prepending it to the object?

-----

Comment by Lukasz.Rajchel, Today (64 minutes ago)

You can add a style or class property just as you do with type, value
etc. in the example above. You can also add styles after creating an
element. In both cases the effect should be more less the same.

$.create('input', {type: 'text', style: 'border: 1px solid, padding:
10px'}); should be the same as $.create('input', {type: 'text'}).css
('border', '1px solid').css('padding', '10px');

-----

Comment by ebade2000, Today (46 minutes ago)

That is cool, I meant appending (not prepending) in my last post and
that is similar to your last example but I do it a little different
but with the same result:

$.create('input', {type: 'text'}).css({border:'1px solid',
padding:'10px'});

Thanks for all your help.

-----
Reply all
Reply to author
Forward
0 new messages