-
HTML object
Is there anything similar to a vb label object in html?
I currently am changing the value of a textbox, but the user can enter data on the textbox... and the textbox does not look very good...
If I could apply the .value to a <div id="myid"> or something that would be awesome, but I can't!
-
Re: HTML object
You can manipulate the content of any and all HTML elements by learning proper DOM scripting.
-
Re: HTML object
-
Re: HTML object
thx... gonna have to go for xml I gues...
I'm used to JS, php, asp, java & flashscript... but completelly new to xml :p
-
Re: HTML object
This has nothing to do with XML. We're talking about the proper JavaScript way of accessing the in-memory representation of the HTML here.
Apparently you're not used to JS, or at least only in the context of ASP.
-
Re: HTML object
let's see... "XML DOM Tutorial",
why do I keep finding XML DOM everywhere if XML is not necessary? :wave:
-
Re: HTML object
The DOM is most useful in dealing with XML but it is more frequently used with HTML documents. The DOM API can theoretically be applied to any SGML-based language, including HTML and XML and their subsets such as XHTML.
Javascript provides a built-in implementation of the DOM as do many other programming libraries.
-
Re: HTML object
Because the DOM is an API to access a certain type of tree data structure which happens to be the same as the one that XML models. OK, not happens to. DOM was originally designed for XML. But HTML models the same structure, and that's what you use DOM for in browsers.
-
Re: HTML object
oki, was just wondering... thanks for pointers! :bigyello: