arrrrgggggg this is amazing !!!
another snippet i try was :
<html>
<head>
<script type="text/javascript">
window.onload = function()
{
var oPre = document.createElement('PRE');
oPre.innerHTML = 'I hope this will work :)';
document.getElementById('myP').appendChild(oPre);
}
</script>...
vongrunt, you're right, i didn't think of inline and block elements :)
here's what i found on w3c :
"The P element represents a paragraph. It cannot contain block-level elements (including P itself)."
http://www.w3.org/TR/1998/REC-html40-19980424/struct/text.html#edef-P
thanks so much for...
I do not really agree with that.
I'm ok on the no closing tag of P but in my example, if you change PRE with SPAN, it works ...
So why there's an innerHTML for SPAN and not for PRE or DIV ??
It's the same with only a textNode, if you only have some text, you can access to the innerHTML ...
Hi everybody,
I get something amazing with IE6.0, here's my snippet :
<html>
<head>
<script type="text/javascript">
window.onload = function()
{
document.getElementById('myP').innerHTML = '<pre>I hope this will work :)</pre>';
}
</script>
</head>
<body>
<p id="myP"></p>
</body>
</html>...
Hi Lbob,
It seems that your tag is not correct :
<SCRIPT language="JavaScrip"t src="jscript/mmenu.js" type="text/javascript"></SCRIPT>
"JavaScrip"t ??
Hi Tarwn,
In fact, here's my problem.
I'm working in an ActiveX DLL with differents class modules.
I create a templator class that read some htm files and replace some tokens with value of my database.
My problem is that data of my Database are used as string when I put them in my templator, so...
You have a Session Variable :
Session("USERID") = 1
You have a String :
String = "I have a string with Session(""USERID"") in him"
So now, how d'you display :
I have a string with 1 in him
Instead of :
I have a string with...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.