On Dec 10, 2010, at 8:56 PM, ext Samuel Smith wrote:

> Listers,

This doesn't sound like an OpenLayers question. This sounds like
a Javascript/DOM question, and further, sounds like you're trying to
use an HTML DOM to create XML documents. If you want XML documents,
you probably want an XML Serializer.

Good luck.

-- Chris

>  
> Successfully using the following snippet to add an INPUT tag to a TD, within 
> a TR, within a TBODY, within a TABLE (etc)!
>  
> cb = document.createElement("INPUT");
> cb.type = "checkbox";
>  
> td = document.createElement("TD");
> td.appendChild(cb);
> tr.appendChild(td);
> tbody.appendChild(tr);
>  
> The output looks like ~this~:
>  
> <TR><TD><INPUT type=checkbox></TD></TR>
>  
> Does anyone know how I get my INPUT to close and my checkbox to quote? Eg ...
>  
> <TR><TD><INPUT type=”checkbox” /></TD></TR>
>  
> Will play much nicer with (Ie is imperative to) later attempts to parse as 
> XML.
>  
> Cheers, Samo
>  
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to