• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Applet as DOM Object

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I need to load different applets based on the chosen hyperlink. I do not have problem in executing this code in Netscape but IE reports problem.

This is the applet I try to create

var app = document.createElement("applet");
app.name="myApp";
app.id="myApp";
app.code="hello.class";
app.archive="hello.jar"
app.width=860;
app.height=600;

var param = document.createElement("param");
param.name = "Nam";
param.value= "Smiley";
app.appendChild(param);

main.appendChild(app)

When I try to appecd Param as Child it reports error.

Expecting a solution for this problem

Thx
Anu
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I really think you need to use the setAttribute and not append it to the object like you were.

For example app.name="myApp"; would be....

app.setAttribute("name","myApp");

Eric
 
Anu Jv
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thx. Works Fine

Anu
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic