importing an xml node into an xhtml one

U

Une Bévue

I'd like to import an html node into an xhtml one.

the node is the table found in :

http://thoraval.yvon.free.fr/Table_layout/color_picker.html

(a color picker)

this don't work, even if i write the html as xhtml.

the sole "working" is when i extract the above file into an xml one :

http://thoraval.yvon.free.fr/Table_layout/color_picker.xml

in this case, the file contains the table only.


then, i've imported this table into another file, using XHR :

http://thoraval.yvon.free.fr/Table_layout/import_node.xhtml

if i inspect the DOM, i see both under Safari and firefox 2 the table
and all the nodes it contains, however, nothing appears on screen ???

from Safari's "Web Inspector" all of the computed styles are with :
width: 0px;
height:0px;

then, i wanted to "brute force" height and width, here i got error
saying element.style is undefined ???

some light upon that ?
 
S

SAM

Une Bévue a écrit :
I'd like to import an html node into an xhtml one.

Problem of syntax ?

not :
<tag id="myId" onclick="function("argument")">

but :
<tag id="myId" onclick="function('argument')">
or
<tag id='myId' onclick='function("argument")'>

or (bad ways)
<tag id=myId onclick=function("argument")>
<tag id=myId onclick=function('argument')>
 
U

Une Bévue

SAM said:
or
<tag id='myId' onclick='function("argument")'>

my xml file looks like :

<td bgcolor='#000000' onmouseover='showC("#000000")'
onclick='setC("#000000")'><img src='trans.png' /></td>


then, it seems, to me, to be correct syntactically otherwise the html
version would have been working.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,690
Latest member
MacGyver

Latest Threads

Top