Topic: addCreate -> addAssign innerHTML problem

Hello,

I'm having a problem in IE7 (I'm aware I'm using an old version of XajaX)
I'm using an XAJAX PHP function.

A few lines of code from that function:
$objResponse->addCreate('column'.$aComponent['column'],'li','widget-'.$nUserWidgetId);
...
$objResponse->addAssign('widget-'.$nUserWidgetId,"className",$sClassNames);
...
$objResponse->addAssign('widget-'.$nUserWidgetId,"innerHTML",$sWidgetHTML);
...

I create a LI first, later on I set the class.
After that I set the innerHTML of that LI.

In fireFox this works, but in IE7 I think the innerHTML is called too soon because the LI is not filled in the generated source.
Any idea why and any suggestions on fixing this?

Thanks in advance.
Smotsholle.

Re: addCreate -> addAssign innerHTML problem

To add to this.
Found out the problem is not the order in which things are handled.
The var $sWidgetHTML contains a chunk of HTML. When I put strip_tags around it it shows fine in IE, but with all the HTML tags inside it returns nothing.
Could it have something to do with the UTF encoding which is automatically on?

What encoding should I use, or what errors are there in my tags?
Does the XML parser misinterpret my HTML tags?

Re: addCreate -> addAssign innerHTML problem

To close this topic...

I found the solution. IE is very strict when it comes to HTML. I based this site on a component which deposits LI items without a containing UL. Adding the container UL fixed this.