On Friday 02 March 2001 3:40, Garth Wallace wrote:
| "Erik Arvidsson" <[EMAIL PROTECTED]> wrote in message
| 97ma90$[EMAIL PROTECTED]">news:97ma90$[EMAIL PROTECTED]...
|
| > Maybe I'm missing something but the following should create an object
| > with the type text/html that is editable and the value of the object
| > should be passed along in a form submission.
| >
| > <form action="">
| > <object name="htmlData" type="text/html" style="width: 100px; height:
| 100px;
|
| > border: 1px solid red;"></object>
| > <button onclick="this.form.submit()">Submit</button>
| > </form>
|
| Actually, no, it shouldn't. In fact, it shouldn't do
| much of anything...an OBJECT needs a CLASSID
| (for Java) or DATA (for just about anything else)
| attribute in order to display anything inside.
OBJECT doesn't need CLASSID, while DATA is, of course, is needed to see
something.
But I doubt that it is required.
<object name="htmlData" id="aaa" type="text/html" style="width: 100px; height:
100px; border: 1px solid red;"></object>
should just create 100x100 pixels frame, and put nothing into it (as DATA is
missing)
You can modify object content later, like:
myobj = document.getElementById("aaa");
myobj.data = "myhtmlpage.html";
P.S. Don't forget to put ID in OBJECT definition. You will need it to access
objects, in easy and convinient way.
--
Vadim Plessky
http://kde2.newmail.ru (English)
http://kde2.newmail.ru/index_rus.html (Russian)
Do you have Arial font installed? Just test it!
http://kde2.newmail.ru/font_test_arial.html