|
-
Oct 2nd, 2006, 07:44 PM
#1
Thread Starter
Fanatic Member
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!
Last edited by Ruku; Oct 4th, 2006 at 05:21 PM.
-
Oct 3rd, 2006, 03:58 AM
#2
Re: HTML object
You can manipulate the content of any and all HTML elements by learning proper DOM scripting.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 3rd, 2006, 04:06 AM
#3
-
Oct 4th, 2006, 05:21 PM
#4
Thread Starter
Fanatic Member
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
-
Oct 4th, 2006, 05:24 PM
#5
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 4th, 2006, 05:30 PM
#6
Thread Starter
Fanatic Member
Re: HTML object
let's see... "XML DOM Tutorial",
why do I keep finding XML DOM everywhere if XML is not necessary?
-
Oct 4th, 2006, 05:34 PM
#7
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.
-
Oct 4th, 2006, 05:34 PM
#8
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 4th, 2006, 05:36 PM
#9
Thread Starter
Fanatic Member
Re: HTML object
oki, was just wondering... thanks for pointers!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|