The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Migrating from CBE to X

Hi Folks: I have a CBE-based component that is used for doing online mapping works just fine. However, I've been toying with the idea of moving it forward to the X library. Seems a bit easier for long term maintenance and is getting more active development.

So, most everything moves easily, except one. In X there doesn't seem to be a way to programmatically create dynamic elements. Was that intentional, am I missing something obvious?

Back to the issue at hand. Thanks for the information. I have to admit that I've lived a sheltered life and have always worked through some cross browser library or another for this type of stuff. If the rest of X supports NN4 then the xCreateElement function sounds like a reasonable addition.

xCreateElement function addition ?

As Steve I'm working on a DHTML interface for a webmapping tool. Trying to adaptate his code, I agree to say that a migration to X might be a good thing.
But we have a problem to create elements dynamicaly. No xCreateElement function is implemented at this time. Although, in my case, I need to have a complete cross-browser compatibility, including support for NN4.
Is this function going to be in the next versions ? May I create it myself refering to the cbe one ?

As I was incorporating with great pleasure your codes, I got blocked when I tried to use the "mousedown" event whereas "mousemove" returns no problem.
(using : xAddEventListener(this.layer,'mousedown', mousedown_wrapper))

xCreateElement() not working in Opera

Be sure that I will give you some urls as soon as it is be possible. I'll comply with the LGPL licence.
From now, I have little compatibility problems. I've been using your new xCreateElement() function for the NN4 support. But I'm having problems with Opera (6.01 on XP). No element is created.